So how do you modify how the information is displayed there then?
You do that by modifying the Template. Yes you can modify templates.
Have you noticed how at the end of the frame you modify you normally say ' file="GameUI" ' ?
Well this defines what the source file is. The GameUI file is the source file for everything that is initially shown and never altered.
Say I wanted to modify the EquipmentIcon. This Icon is generated when you select an unit. It is not visible by default, and not accessible.
You see the three icons above with the red border. Well I've modified them with the following little snippit:
This is easy after all isn't it. Well what can and can't you do with this, is for you to find out. I've only been back to the SC2Editor for 3 hours.
Enjoy this little piece of knowledge.
So what about the command panel where the units actions are listed?
These are not runtime created elements. They're actually created while the game is loading. You can find each button (00 through 15) with the following code:
Good question. I've several things through the UI but nothing worked so far.
You can however change the image used, so if you set it to transparent images they're gone.
Add these lines to your Assets.txt file which you import into your map.
Edit:
Right, I just figured out why my change wasn't working. The game changes the visible state of the images for the checkboxes. Therefor <Visible val='false'/> won't work. What does work is moving them offscreen:
You might be thinking like, everything is already predefined in the UI. Well it is and it isn't. Kinda odd isn't it?
Well let's take a look at what we know, take the InfoPaneUnit for example:
Let's look into the EquipmentPanel part. This panel displays:
Now zooming in on the description of the frame:
So how do you modify how the information is displayed there then? You do that by modifying the Template. Yes you can modify templates.
Have you noticed how at the end of the frame you modify you normally say ' file="GameUI" ' ? Well this defines what the source file is. The GameUI file is the source file for everything that is initially shown and never altered.
Say I wanted to modify the EquipmentIcon. This Icon is generated when you select an unit. It is not visible by default, and not accessible.
You see the three icons above with the red border. Well I've modified them with the following little snippit:
The result you can see below:
To also get rid of the overlay image I can change the snippit to be like this:
And here's the result:
This is easy after all isn't it. Well what can and can't you do with this, is for you to find out. I've only been back to the SC2Editor for 3 hours. Enjoy this little piece of knowledge.
Questions
These are not runtime created elements. They're actually created while the game is loading. You can find each button (00 through 15) with the following code:
where
##
is the button number.what about the checkboxes of the objective panel? i was unable to remove them.
Good question. I've several things through the UI but nothing worked so far.
You can however change the image used, so if you set it to transparent images they're gone.
Add these lines to your Assets.txt file which you import into your map.
Edit: Right, I just figured out why my change wasn't working. The game changes the visible state of the images for the checkboxes. Therefor <Visible val='false'/> won't work. What does work is moving them offscreen:
Added to the Tutorial wiki in my signature. Nice information.
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here