• 0

    posted a message on Weird UI editor stuff

    So I am learning how to create UI for an arcade map using UI editor, and this is what I've come up with:

     

    The same button appears twice on the layout for some reason. Why?

    Is this something to do with dimension?

     

    If you curious about the code:

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
        <Frame type="Frame" name="MonobattlesSetupTemplate">
            <Height val="250"/>
            <Width val="250"/>
            <Anchor side="Top" relative="$parent" pos="Mid" offset="0"/>
            <Anchor side="Left" relative="$parent" pos="Mid" offset="0"/>
    
            <Frame type="Image" name="DialogImage">
                <Height val="25"/>
                <Width val="25"/>
                <Anchor side="Top" relative="$parent" pos="Min" offset="5"/>
                <Anchor side="Left" relative="$parent" pos="Min" offset="5"/>
            </Frame>
    
            <Frame type="Label" name="DialogBody">
                <Height val="250"/>
                <Width val="200"/>
                <Anchor side="Top" relative="$parent" pos="Min" offset="0"/>
                <Anchor side="Left" relative="$parent" pos="Min" offset="50"/>
            </Frame>
    
            <Frame type="Button" name="TestButton" template="StandardBattlenetTemplates/StandardBattlenetMiniButtonTemplate">
                <Height val="250"/>
                <Width val="200"/>
                <Anchor side="Top" relative="$parent" pos="Min" offset="50"/>
                <Anchor side="Left" relative="$parent" pos="Min" offset="0"/>
                <Text val="AZAZA TEST BUUUTTUTUTUTUTUON"/>
            </Frame>
        </Frame>
    </Desc>
    

     

     And triggers:

            ------- Creating main dialog
            Dialog - Create a Modal dialog of size (1000, 1000) at (0, 0) relative to Center of screen
            Variable - Set MonoSetupUIPanel = (Last created dialog)
            Dialog - Set MonoSetupUIPanel to be fullscreen True
            Dialog - Hide the background image of MonoSetupUIPanel
            Dialog - Create a Panel for dialog MonoSetupUIPanel using the template MonobattlesSetup/MonobattlesSetupTemplate
            ------- Attaching to it's contents
            Dialog - Create a Image for dialog MonoSetupUIPanel using the template MonobattlesSetup/MonobattlesSetupTemplate/DialogImage
            Variable - Set MonoSetupUIPanelImage = (Last created dialog item)
            Dialog - Set MonoSetupUIPanelImage image to Assets\Textures\btn-unit-terran-marine.dds for (All players)
            Dialog - Create a Label for dialog MonoSetupUIPanel using the template MonobattlesSetup/MonobattlesSetupTemplate/DialogBody
            Variable - Set MonoSetupUIPanelLabel = (Last created dialog item)
            Dialog - Set MonoSetupUIPanelLabel text to ""azaizazaza"" for (All players)
            Dialog - Create a Button for dialog MonoSetupUIPanel using the template MonobattlesSetup/MonobattlesSetupTemplate/TestButton
            ------- Done
            Dialog - Show MonoSetupUIPanel for (All players)
            ------- DELETE EVERYTHING BELOW
            General - Wait 524287.0 Real Time seconds
    

     

    Posted in: UI Development
  • To post a comment, please or register a new account.