Jump to content

UI Xml Tags and layering


photo

Recommended Posts

Posted

I want to do nested vbox and label and other tags , but not able to get it easily. I did the same but its not  working .I amd attaching my code for  the reference. In this my text is not visible. not sure what is going wrong image.thumb.png.fe4d08ac302f833bf8e517fba7a2d19f.png

<?xml version="1.0" encoding="utf-8"?>
<ui version="1.0">
    <vbox name="BgImage" align="overlap,expand">
        <sprite name="Background" texture="UI/newMainMenuBackground.png" align="expand" />
        <sprite name="Mirage" texture="UI/Mirage front View1 1.png" align="overlap,center"
            width="1164"
            height="980" />
        <vbox name="MainPanel" background="1" color="#0D131ADD" align="overlap" width="1872"
            height="898" pos_x="24" pos_y="134">
            <vbox name="CenterPanel" background="1" color="#151D2ADD" align="overlap" width="674"
                height="574" pos_x="623" pos_y="278">
                <label name="MainMenu::blue_slot_1_text" export="1" align="overlap" pos_x="74"
                    color="#FF0000"
                    pos_y="298" width="700" height="24">
                    <text size="32" color="#CCCCCC">Mission Setup</text>
                </label>
            </vbox>
        </vbox>
    </vbox>
</ui>
×
×
  • Create New...