Author Topic: General information for interface makers  (Read 11008 times)

0 Members and 1 Guest are viewing this topic.

Offline Michal Marcinkowski

  • Creator of Soldat
  • Flagrunner
  • ******
  • Posts: 808
  • I ain't got time to bleed.
    • Soldat home page
General information for interface makers
« on: March 26, 2007, 08:53:44 am »
Some custom interfaces might not work properly in higher resolutions. This is because Soldat uses a trick to place the interface elements properly (interfaces are not scaled, so they don't look awful). Previously bar and amount elements were placed in an absolute position, now they are relative to their icon.

The algorithm is as follows:

Health and vest bar is placed relative to the health icon if health icon is used (size of health.bmp, greater than 1kb)
Jet bar is placed relative to jet icon if jet icon is used (size of jet.bmp greater than 1kb)
Ammo, Fire bar, weapon name and grenades amount are placed relative to the Ammo icon (ammo.bmp)

If the icon is not present (size smaller than 1kb) then the bars are located relative to the icon with most priority.

Relative position priority: Health.bmp < Jet.bmp < Ammo.bmp



So for example:

If Jet.bmp and Ammo.bmp are blank, their size is smaller than 1kb. Health icon (Health.bmp) is used for calculating the relative position for all bars. So when making the interface, align all elements using the health icon as the base.

If Jet.bmp and Ammo.bmp are present but Health.bmp is not then:
Jet bar is located relative to jet icon. Ammo related bars are located according to ammo icon.
Health and vest bar is located relative to ammo icon.
« Last Edit: February 24, 2016, 10:14:21 am by CCalp »

Offline ..::HHH::..

  • Soldier
  • **
  • Posts: 210
  • Dream Theater.. is the F**king best!
Re: Interfaces in 1.4
« Reply #1 on: March 26, 2007, 09:17:09 am »
hm.. cool! thanks for letting us know:)

Offline FliesLikeABrick

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 6144
    • Ultimate 13 Soldat
Re: Interfaces in 1.4
« Reply #2 on: March 26, 2007, 09:32:48 am »
maybe I'm just missing something, but what part of this might break some interfaces?

Offline Michal Marcinkowski

  • Creator of Soldat
  • Flagrunner
  • ******
  • Posts: 808
  • I ain't got time to bleed.
    • Soldat home page
Re: Interfaces in 1.4
« Reply #3 on: March 28, 2007, 05:29:29 am »
For example:
Health icon and ammo icon are present. You align the jet bar according to the health icon. Now when you run Soldat the in higher resolution the interface will be messed up. You should align the jet bar according to the ammo icon in this situation (because of the priority).

Offline The_Ninja

  • Soldier
  • **
  • Posts: 217
  • erm...
Re: Interfaces in 1.4
« Reply #4 on: April 16, 2007, 03:20:25 am »
thanks, i'll keep this in mind for when 1.4 finally does come out, thanks heaps..

ninja..

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Interfaces in 1.4
« Reply #5 on: May 27, 2007, 06:30:16 pm »
What about the ping dot?

Offline Meecrob

  • Major
  • *
  • Posts: 96
  • If god was a banana would jesus be an orange?
    • Mecksicko
Re: Interfaces in 1.4
« Reply #6 on: March 08, 2008, 12:48:26 am »
hmmmmm. interfaces....... havent made one of those yet. might try and make one. interesting