I'm trying to create a custom button using sc2layout, however I'm not able to apply the normal and hover textures of the button :|
I copied various examples from the original UI Data but nothing is working.
Any suggestion on how should I fix it?
here is my xml code
<Frametype="Button"name="CameraRotateLeft"><NormalImageval="NormalImage"/><HoverImageval="HoverImage"/><Anchorside="Top"relative="$parent/PingButton"pos="Min"offset="0"/><Anchorside="Left"relative="$parent/PingButton"pos="Max"offset="0"/><Widthval="48"/><Heightval="48"/><Tooltipval="Rotate camera counterclockwise"/><ClickSoundval="@UI_GenericButton"/><Frametype="Image"name="NormalImage"><LayerCountval="2"/><StateCountval="3"/><TextureTypeval="Normal"layer="0"/><LayerColorval="##StandardButtonBorder"layer="0"/><Textureval="@@UI/TechGlossaryButtonNormal"/><RenderPriorityval="1"/></Frame><Frametype="Image"name="HoverImage"><LayerCountval="2"/><StateCountval="3"/><TextureTypeval="Normal"layer="0"/><LayerColorval="##StandardButtonBorder"layer="0"/><Textureval="@@UI/TechGlossaryButtonHover"/><RenderPriorityval="1"/></Frame><Frametype="Image"name="Icon"><Anchorside="Top"relative="$parent"pos="Min"offset="0"/><Anchorside="Left"relative="$parent"pos="Min"offset="0"/><Anchorside="Bottom"relative="$parent"pos="Max"offset="0"/><Anchorside="Right"relative="$parent"pos="Max"offset="0"/><Textureval="Assets\Textures\btn-camera-rotate-left.dds"layer="0"/><RenderPriorityval="2"/></Frame></Frame>
Ok I was able to find the correct syntax for buttons, here is my code and the result in game
<Frametype="Button"name="CameraRotateLeftButton"><NormalImageval="NormalImage"/><HoverImageval="HoverImage"/><Anchorside="Top"relative="$parent/PingButton"pos="Min"offset="0"/><Anchorside="Left"relative="$parent/PingButton"pos="Max"offset="0"/><Widthval="48"/><Heightval="48"/><Tooltipval="(Ctrl+Q) Rotate camera counterclockwise"/><ClickSoundval="@UI_GenericButton"/><Styleval="StandardButton"/><CollapseLayoutval="true"/><Shortcutval="Control+Q"/><Frametype="Image"name="NormalImage"><Anchorside="Top"relative="$parent"pos="Min"offset="-4"/><Anchorside="Left"relative="$parent"pos="Min"offset="-4"/><Anchorside="Bottom"relative="$parent"pos="Max"offset="4"/><Anchorside="Right"relative="$parent"pos="Max"offset="4"/><Textureval="Assets\Textures\ui_ingame_help_glossary_zerg_normalandpressed.dds"layer="0"/><TextureTypeval="Normal"layer="0"/><Tiledval="false"layer="0"/><StateCountval="3"layer="0"/><StateIndexval="0"layer="0"/><DisabledAlphaval="60"/><RenderPriorityval="1"/><Visibleval="false"/></Frame><Frametype="Image"name="HoverImage"><Anchorside="Top"relative="$parent"pos="Min"offset="-4"/><Anchorside="Left"relative="$parent"pos="Min"offset="-4"/><Anchorside="Bottom"relative="$parent"pos="Max"offset="4"/><Anchorside="Right"relative="$parent"pos="Max"offset="4"/><Textureval="Assets\Textures\ui_ingame_help_glossary_zerg_normaloverandpressedover.dds"layer="0"/><TextureTypeval="Normal"layer="0"/><Tiledval="false"layer="0"/><StateCountval="3"layer="0"/><StateIndexval="0"layer="0"/><DisabledAlphaval="60"/><RenderPriorityval="1"/><Visibleval="false"/></Frame><Frametype="Image"name="Icon"><Anchorside="Top"relative="$parent"pos="Min"offset="4"/><Anchorside="Left"relative="$parent"pos="Min"offset="4"/><Anchorside="Bottom"relative="$parent"pos="Max"offset="-4"/><Anchorside="Right"relative="$parent"pos="Max"offset="-4"/><Textureval="Assets\Textures\btn-camera-rotate-left.dds"layer="0"/><RenderPriorityval="2"/><Visibleval="true"/></Frame></Frame>
I'm trying to create a custom button using sc2layout, however I'm not able to apply the normal and hover textures of the button :|
I copied various examples from the original UI Data but nothing is working.
Any suggestion on how should I fix it?
here is my xml code
and here is how it appears
Ok I was able to find the correct syntax for buttons, here is my code and the result in game