• 0.956193526249571

    posted a message on [SOLVED]found a blank button to use for secret achievement but it still shows border on hover.

    To fix the mouse hover still appearing you need to catch when the tooltip frame becomes visible.

    Also Text fields don't accept text keys. Either use a exact string match w/ escaped xml or property bind.  Tooltip fields can use text keys (see below). This also allows for localization to be used as well. 

     

     

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
        <Frame type="CommandPanel" name="GameUI/UIContainer/ConsoleUIContainer/CommandPanel" file="GameUI">
            <Frame type="CommandTooltip" name="CommandTooltip">
                <FadeTime val="0"/>
            </Frame>
        </Frame>
    
        <Frame type="InfoPanel" name="GameUI/UIContainer/ConsoleUIContainer/InfoPanel" file="GameUI">
            <Frame type="InfoPaneUnit" name="InfoPaneUnit">
    
                <Frame type="Frame" name="CacheTooltip">
                    <Anchor side="Top" relative="$parent" pos="Min" offset="0"/>
                    <Anchor side="Left" relative="$parent" pos="Min" offset="0"/>
                    <Visible val="False"/>
                    <Tooltip val="@Unit/Name/CommandCenter"/>
                </Frame>
    
                <StateGroup name="NameState">
                    <DefaultState val="UnitNameOff"/>
    
                    <State name="UnitNameOn">
                        <When type="Property" frame="NameLabel" Text="{CacheToolip/@Tooltip}"/>
                        <When type="Property" frame="$GameUI_CommandPanel/CommandButton00/NormalImage" Texture="Assets\Textures\btn-unit-terran-scv.dds"/>
                        <When type="Property" frame="$GameUI_CommandPanel/CommandButton00" Hovering="True"/>
                        <When type="Property" frame="$layer/CommandTooltip" Visible="True"/>
                        <Action type="SetProperty" frame="$layer/CommandTooltip" Alpha="0"/>
                    </State>
    
                    <State name="UnitNameOff">
                        <Action type="SetProperty" frame="$layer/CommandTooltip" Alpha="255"/>
                    </State>
                </StateGroup>
            </Frame>
        </Frame>
    </Desc>
    Posted in: Data
  • To post a comment, please or register a new account.