Author Topic: UI and damagebars  (Read 2897 times)

Offline Agaton

  • Antweight
  • Posts: 65
  • Rep: 0
    • View Profile
    • You can buy my stuff here!
    • Awards
UI and damagebars
« on: September 06, 2014, 01:17:21 PM »
So I been tinkering around the UI files but I yet found a way to change the size of damagebars. As you know, the armor bar is shorter than both battery/psi but I don't know how this was achieved. I wanted to create a template where "alert" was removed and instead the armor bar would be the same size as the others.  Anyone know if this is possible?

« Last Edit: September 06, 2014, 02:23:54 PM by Agaton »

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: UI and damagebars
« Reply #1 on: September 06, 2014, 08:09:21 PM »
I'm pretty sure that you can edit UI/common/statusmeters.gib to get the status meter to look like that.

Offline Agaton

  • Antweight
  • Posts: 65
  • Rep: 0
    • View Profile
    • You can buy my stuff here!
    • Awards
Re: UI and damagebars
« Reply #2 on: September 07, 2014, 12:04:13 PM »
Thats what I thought but I cant find it. It could have been Size but I can't seem to change the width of the sprite and creating a new sprite doesn't help either. The other variables are Position and ChildOrder. I dont see any other variables telling how big the area filled by the sprite should be or how many times the sprite should repeat itself etc. I cant find the "alert signal" either. Might miss something but all this trial and error makes me dizzy.

picture showing the differences:

(FileDiff for Sublime is used to compare btw if interested)

Offline I Like Tacos

  • Lightweight
  • Posts: 177
  • Rep: 4
    • View Profile
    • Awards
Re: UI and damagebars
« Reply #3 on: September 07, 2014, 12:39:41 PM »
To make the health bar longer it should just be the size. try using the values the other status bars have.
The flashing alert thing is hard coded into the game, so it isn't in the .gib. In stock it completely covers the health bar and when the dsl ui was made they just worked around the flashing bar.
Also don't mess with the child order variable, it will probably just crash your game.

Offline Agaton

  • Antweight
  • Posts: 65
  • Rep: 0
    • View Profile
    • You can buy my stuff here!
    • Awards
Re: UI and damagebars
« Reply #4 on: September 16, 2014, 05:28:09 AM »
I've done so but doesn't work for me sadly. I can stretch the height of the sprite but the width stays the same no matter what numbers I enter. It might be that the sprite should not change in size, instead its repeated x times and it that case I start to believe that it's hardcoded as well. Either that or its getting overridden.