I'm afraid I don't know how to adjust the Assets.txt file. That was something I was wondering about before, actually. Could you quickly walk me through it?
EDIT:
That sounded a little dumb. I DO know how to use notepad, what I was mainly referring to was how to find the Assets.txt file and update/replace it.
did you also try adjusting layer 0 instead of 1? ;p since layer 1 is used for the cooldown mechanic. although layer 0 is prolly overwritten by the game itself...
maybe add a layer 2 in which you place your image, but you ll need to increase the layercount then.
I tried what you suggested. I got closer, sort of. Adding an extra layer, I was only able to add the texture I wanted to a new layer (layer 2). Using layers 0 or 1 is apparently forbidden. Unfortunately, when adding the texture to layer 3, it just eats up the whole button and the ability icon disappears.
At this point, I'm just going to give up until either someone has a breakthrough, or I can find an example of this actually being done.
Sorry, that was some kind of typo when I put it into the browser. In my override file, those aren't there.
EDIT:
Double-checked just to make sure. I re-wrote the parts you pointed out to make sure I DIDN'T mess that up and sure enough it still uses the default instead of the new texture files.
Hmm... I'm stumped. I tried what you said, modifying the target button itself, but it still seems to reference the template/default instead of making my changes, unless I'm doing something horribly wrong (and I admit I'm not even the slightest bit good at this).
Here is what I have in that section of the Override file:
I have a, hopefully, simple question for the UI gurus. I want to change the button borders (normal and hover) for the Command Card Buttons. I've been stumbling around it for a while, trying to override the GameButton.sc2layout contents in my own override file, but haven't gotten anything to work. Could someone give me a fast rundown, or at least point me in the right direction? Thanks.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
@Helral: Go
Mad props. Works perfectly!
Thank you so much. Now I can continue on with the art part and stop beating my head against my keyboard.
@Helral: Go
I'm afraid I don't know how to adjust the Assets.txt file. That was something I was wondering about before, actually. Could you quickly walk me through it?
EDIT:
That sounded a little dumb. I DO know how to use notepad, what I was mainly referring to was how to find the Assets.txt file and update/replace it.
I tried what you suggested. I got closer, sort of. Adding an extra layer, I was only able to add the texture I wanted to a new layer (layer 2). Using layers 0 or 1 is apparently forbidden. Unfortunately, when adding the texture to layer 3, it just eats up the whole button and the ability icon disappears.
At this point, I'm just going to give up until either someone has a breakthrough, or I can find an example of this actually being done.
Thanks again though for all the help :)
@Helral:
Sorry, that was some kind of typo when I put it into the browser. In my override file, those aren't there.
EDIT:
Double-checked just to make sure. I re-wrote the parts you pointed out to make sure I DIDN'T mess that up and sure enough it still uses the default instead of the new texture files.
Hmm... I'm stumped. I tried what you said, modifying the target button itself, but it still seems to reference the template/default instead of making my changes, unless I'm doing something horribly wrong (and I admit I'm not even the slightest bit good at this).
Here is what I have in that section of the Override file:
<Frame type="CommandPanel" name="GameUI/UIContainer/ConsoleUIContainer/CommandPanel" file="GameUI">
<Width val="1400"/>
<Height val="137"/>
<Anchor side="Left" relative="$parent" pos="Mid" offset="0"/>
<Anchor side="Right" relative="$parent" pos="Mid" offset="0"/>
<Anchor side="Bottom" relative="$parent" pos="Max" offset="-20"/>
<! Tooltip >
<Frame type="CommandTooltip" name="CommandTooltip" template="CommandButton/CommandTooltipTemplate">
<Anchor side="Bottom" relative="$parent" pos="Max" offset="-270"/>
<Anchor side="Right" relative="$parent" pos="Max" offset="0"/>
</Frame>
<! Custom image for the hotbar I've created >
<Frame type="Image" name="hotbar">
<Width val="1310"/>
<Height val="133"/>
<Anchor side="Top" relative="$parent" pos="Mid" offset="0"/>
<Anchor side="Bottom" relative="$parent" pos="Mid" offset="0"/>
<Anchor side="Right" relative="$parent" pos="Mid" offset="0"/>
<Anchor side="Left" relative="$parent" pos="Mid" offset="0"/>
<texture val="Assets\Textures\hotbar.tga" layer="0"/>
<RenderPriority val="100"/>
</Frame>
<! Test Button I'm trying to change: All I want to do is change the texture file. So far I've tried both .tga and .dss formats >
<Frame type="CommandButton" name="CommandButton00">
<Anchor side="Top" relative="$parent" pos="Min" offset="30"/>
<Anchor side="Left" relative="$parent" pos="Min" offset="120"/>
<Frame type="Image" name="NormalImage">
<texture val="Assets\Textures\btn_border_red.dds" layer="1"/>
</Frame>
<Frame type="Image" name="HoverImage">
<texture val="Assets\Textures\btn_border_red.dds" layer="1"/>
</Frame>
<Frame type="Image" name="AutoCastImage">
<texture val="Assets\Textures\btn_border_red.tga" layer="0"/>
</Frame>
</Frame>
Note that for the Frame Command Button I tried it by adding in the "template='CommandButtonTemplate'" and also without it.
Thanks for the help, hopefully it's just a dumb mistake on my part.
Excellent! Thank you very much for the speedy response. I will try that right away.
I have a, hopefully, simple question for the UI gurus. I want to change the button borders (normal and hover) for the Command Card Buttons. I've been stumbling around it for a while, trying to override the GameButton.sc2layout contents in my own override file, but haven't gotten anything to work. Could someone give me a fast rundown, or at least point me in the right direction? Thanks.