SC2Mapster Forums

Development > UI Development

ObjectivePanel frame cannot be found.

  • 5 posts
    #1 Dec 22, 2012 at 21:14 UTC - 0 likes

    I'm wanting the move the ObjectivePanel to the mid right underneath my Minimap which is at the top right. I went through the GameUI layout and found that the ObjectivePanel is located at "GameUI/UIContainer/ConsoleUIContainer/FullscreenUpperContainer/ObjectivePanel". When I set the anchors and then try to save then it errors saying...

    "[12/22/2012 5:02:41 PM] UI: File [Objectives_Panel.SC2Layout] Line [6] Column [5]. Failed to locate specified Desc [GameUI/UIContainer/ConsoleUIContainer/FullscreenUpperContainer/ObjectivePanel].
    [12/22/2012 5:02:41 PM] UI: File [Objectives_Panel.SC2Layout] Line [6] Column [5]. Could not find Frame Desc [GameUI/UIContainer/ConsoleUIContainer/FullscreenUpperContainer/ObjectivePanel] in File Desc"

    Which to me doesn't make sense, since I got it's location from the GameUI layout.

    http://www.sc2pod.com/achievement.php?id=13914

    #2 Dec 24, 2012 at 01:12 UTC - 0 likes

    @Projekton: Go

    Use for the file tag GameUI, and not Desc.
    and you cannot set values for Desc itself.

    Could you perhaps post yout XML file then we can better see what is wrong with it.

    Helral's Lair
    Meow meoow meeow. I'm ze evil SC2MapsterKitten.

    UI Tutorials listing

    current projects:

    #3 Dec 29, 2012 at 00:06 UTC - 0 likes

    @Helral: Go

    I got the exact same type of error message popping up. I want to change the inventory's layout, so I tried to override part of the "InventoryPanel" layout and simply make the inventory container twice as large (from 400x440 to 800x880).

    The xml snippet:

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
        <Frame type="InventoryContainer" name="GameUI/UIContainer/ConsoleUIContainer/InventoryPanel/ContainerPanelTemplate" file="GameUI">
            <AcceptsMouse val="true"/>
            <CollapseLayout val="true"/>
            <Width val="800"/>
            <Height val="880"/>
        </Frame>
    </Desc>
    

    it gives me the errors:

    UI: File [CustomInventory.SC2Layout] Line [8] Column [5]. Failed to locate specified Desc [GameUI/UIContainer/ConsoleUIContainer/InventoryPanel/ContainerPanelTemplate].

    UI: File [CustomInventory.SC2Layout] Line [8] Column [5]. Could not find Frame Desc [GameUI/UIContainer/ConsoleUIContainer/InventoryPanel/ContainerPanelTemplate] in File Desc [GameUI].

    #4 Dec 29, 2012 at 17:36 UTC - 0 likes
    Quote from bakonking: Go

    @Helral: Go

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <Desc>
        <Frame type="InventoryContainer" name="GameUI/UIContainer/ConsoleUIContainer/InventoryPanel/ContainerPanelTemplate" file="GameUI">
            <AcceptsMouse val="true"/>
            <CollapseLayout val="true"/>
            <Width val="800"/>
            <Height val="880"/>
        </Frame>
    </Desc>
    

    the specified name is incorrect:
    name="GameUI/UIContainer/ConsoleUIContainer/InventoryPanel/ContainerPanelTemplate"
    first of all the word template isn't used in actual frame names.

    the correct name for the First inventory page is:
    name="GameUI/UIContainer/ConsoleUIContainer/InventoryPanel/ContainerPanel00"

    end with 01 for 2nd, 02 for 3rd, etc.

    #5 Dec 31, 2012 at 21:24 UTC - 0 likes

    @Helral: Go

    Thanks! Got the syntax down. The whole template issue was giving me trouble. By the way your big xml name list is absolutely invaluable for this UI work.

  • 5 posts

You must login to post a comment. Don't have an account? Register to get one!