Very interesting I hope you get an answer as that would be very useful in my opinion. The only advice I have is to look at Helral's UI Layout Files Tutorial it should be in there hope that Helps. I'm not sure where to look either tough to find Hit Points and Shields. I'd think the Unit Panel.
My Projects:
Sorted Multiplayer Leader Board
Card Shuffle Dialog Demo
Air Wars Mass
Blizzard Fan since Starcraft. The Single Player story is AMAZING IMO, I can't wait for the Expansions. In Warcraft 3 I only enjoy the Custom Maps scene (& Blizzards...
This is a theory but I think the label size for the text isn't large enough to allow enough space for 10,000+ on one line. If you manage to increase the label size parameters it would likely fix that (Sorry I don't know if it is something you can modify or not). You would likely also have to move the icons shown otherwise large numbers would end up overlapping with the icons and it would look ugly.
The value labels are created dynamically and are connected to each other.
Things you can modify atm in WoL:
- position where the labels start, if the unit has shields, by moving the shield label around
- position where the labels start, if the unit has no shields, by moving the wireframe around
- alter the font style (which will result in different vertical sizes for the labels)
- alter the width of the labels (I think)
It's improved in HotS, so you can move the shield label to the left and the life label somewhere else and it will work.
The UI editor's layout changes work like the overriding method in aiur chef. So you open existing frames with
Could you post an example of this? I've played with it for hours with little success. I can't seem to do anything involving unitinfo labels.
Sure.
In my testmap, in theory, all labels would be stacked all the time with slightly different center positions. But the vertical position can be altered via the used font.
For example, the numbers on the bars in my map "Temple Siege 2" on bnet are the original labels and therefore always updated instantly:
(screenshot is outdated, btw)
If you select a unit without shields, the label starts more downwards as I placed the unit's wireframe accordingly and made it invisible. So, in the picture, the top label disappears.
In my testmap, in theory, all labels would be stacked all the time with slightly different center positions. But the vertical position can be altered via the used font.
For example, the numbers on the bars in my map "Temple Siege 2" on bnet are the original labels and therefore always updated instantly:
(screenshot is outdated, btw)
If you select a unit without shields, the label starts more downwards as I placed the unit's wireframe accordingly and made it invisible. So, in the picture, the top label disappears.
Hah, thank you! No clue what I did wrong. Think I was hung up on using "Label" or "InfoPane" instead of "Frame".
So do you got this working now? Congratulations if you do.
Rollback Post to RevisionRollBack
My Projects:
Sorted Multiplayer Leader Board
Card Shuffle Dialog Demo
Air Wars Mass
Blizzard Fan since Starcraft. The Single Player story is AMAZING IMO, I can't wait for the Expansions. In Warcraft 3 I only enjoy the Custom Maps scene (& Blizzards...
Those entries resize the UnitPanel frame to fullscreen. If you only resize it, it shouldn't matter as long as the UnitPanel is big enough. (Visibility of frames is still limited by their parent frame's size.)
I changed the whole UI in my map, so I made most frames fullscreen to avoid problems.
You don't need to set the style again. I just left it there to show you that you can change it.
Heya,
Does anyone have the SC2Layout file for fixing this (red box), to make shield/life/energy values over 10,000 not take up 2 lines?
Or happen to know the frame names?
Thanks!
Very interesting I hope you get an answer as that would be very useful in my opinion. The only advice I have is to look at Helral's UI Layout Files Tutorial it should be in there hope that Helps. I'm not sure where to look either tough to find Hit Points and Shields. I'd think the Unit Panel.
Yeah I just discovered the UI editor.
Can someone tell me why this doesn't work?
This is a theory but I think the label size for the text isn't large enough to allow enough space for 10,000+ on one line. If you manage to increase the label size parameters it would likely fix that (Sorry I don't know if it is something you can modify or not). You would likely also have to move the icons shown otherwise large numbers would end up overlapping with the icons and it would look ugly.
The value labels are created dynamically and are connected to each other.
Things you can modify atm in WoL:
- position where the labels start, if the unit has shields, by moving the shield label around
- position where the labels start, if the unit has no shields, by moving the wireframe around
- alter the font style (which will result in different vertical sizes for the labels)
- alter the width of the labels (I think)
It's improved in HotS, so you can move the shield label to the left and the life label somewhere else and it will work.
The UI editor's layout changes work like the overriding method in aiur chef. So you open existing frames with
Could you post an example of this? I've played with it for hours with little success. I can't seem to do anything involving unitinfo labels.
Sure.
In my testmap, in theory, all labels would be stacked all the time with slightly different center positions. But the vertical position can be altered via the used font.
For example, the numbers on the bars in my map "Temple Siege 2" on bnet are the original labels and therefore always updated instantly:
(screenshot is outdated, btw)
If you select a unit without shields, the label starts more downwards as I placed the unit's wireframe accordingly and made it invisible. So, in the picture, the top label disappears.
Hah, thank you! No clue what I did wrong. Think I was hung up on using "Label" or "InfoPane" instead of "Frame".
Thanks a lot, really.
So do you got this working now? Congratulations if you do.
Import this into your map if you're having trouble with vital values over 10,000 taking up 2 lines. It will fix everything. Thanks for the assistance!
I'm not sure that the 4 "<Anchor side="Left" relative="$parent/$parent/$parent/WorldPanel" pos="Min" offset="0"/>" entries are needed.
Nice, I wanted to do that, but I am a lazy ass:D
Those entries resize the UnitPanel frame to fullscreen. If you only resize it, it shouldn't matter as long as the UnitPanel is big enough. (Visibility of frames is still limited by their parent frame's size.)
I changed the whole UI in my map, so I made most frames fullscreen to avoid problems.
You don't need to set the style again. I just left it there to show you that you can change it.
So, this might be enough. Just create a new file in the UI module and paste the code into it.