• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

UI Layouts?

Status
Not open for further replies.
I still haven't figured out how to make them work, I'm trying to make the images for containers bigger, I tried this:

Went to inventorypanel, found
PHP:
    <Frame type="CommandButton" name="ContainerButtonTemplate" template="CommandButton/CommandButtonTemplate">
        <Width val="48"/>
        <Height val="48"/>
    </Frame>

I opened up my UIOverride which I use for the 'aiurchef' inventory, and did
PHP:
<Desc>
    <Frame type="BoardItem" name="BoardItemTemplate" file="TriggerWindowPanel">
        <Frame type="Image" name="BoardItemDivider">
            <Alpha val="0"/>
        </Frame>
    </Frame>

    <Frame type="Board" name="BoardTemplate" file="TriggerWindowPanel">
        <Frame type="Image" name="BackgroundImage">
            <Texture val="Assets\Textures\ui_aiurchef_frame_recipe.dds" layer="0"/>
            <Anchor side="Top" relative="$parent" pos="Min" offset="0"/>
            <Anchor side="Left" relative="$parent" pos="Min" offset="0"/>
            <Anchor side="Right" relative="$parent" pos="Max" offset="0"/>
            <Anchor side="Bottom" relative="$parent" pos="Max" offset="0"/>
        </Frame>
    </Frame>

    <Frame type="TimerWindow" name="TimerWindowTemplate" file="TriggerWindowPanel">
        <Frame type="Image" name="BackgroundImage">
            <Alpha val="0"/>
        </Frame>
    </Frame>
    
    <Frame type="InventoryPanel" name="GameUI/UIContainer/ConsoleUIContainer/InventoryPanel" file="GameUI">
        <Frame type="CommandTooltip" name="InventoryTooltip">
            <Anchor side="Bottom" relative="$parent" pos="Max" offset="-330"/>
            <Anchor side="Left" relative="$parent" pos="Mid" offset="0"/>
            <Anchor side="Right" relative="$parent" pos="Mid" offset="0"/>
        </Frame>
        
        <Frame type="InventoryContainer" name="InventoryButtons">
            <Anchor side="Bottom" relative="$parent" pos="Max" offset="-210"/>
            <Anchor side="Left" relative="$parent" pos="Mid" offset="0"/>
            <Anchor side="Right" relative="$parent" pos="Mid" offset="0"/>
            
            <Frame type="CommandButton" name="Button05">
                <Anchor side="Bottom" relative="$parent" pos="Max" offset="-28"/>
                <Anchor side="Right" relative="$parent" pos="Max" offset="-20"/>
                <Width val="76"/>
                <Height val="76"/>
            </Frame>
            <Frame type="CommandButton" name="Button04">
                <Width val="76"/>
                <Height val="76"/>
            </Frame>
            <Frame type="CommandButton" name="Button03">
                <Width val="76"/>
                <Height val="76"/>
            </Frame>
            <Frame type="CommandButton" name="Button02">
                <Width val="76"/>
                <Height val="76"/>
            </Frame>
            <Frame type="CommandButton" name="Button01">
                <Width val="76"/>
                <Height val="76"/>
            </Frame>
            <Frame type="CommandButton" name="Button00">
                <Width val="76"/>
                <Height val="76"/>
            </Frame>
            <Frame type="Frame" name="ContainerSizeFrame">
                <Anchor side="Top" relative="$parent/Button00" pos="Min" offset="-18"/>
                <Anchor side="Bottom" relative="$parent/Button00" pos="Max" offset="28"/>
                <Anchor side="Left" relative="$parent/Button00" pos="Min" offset="-20"/>
                <Anchor side="Right" relative="$parent/Button05" pos="Max" offset="20"/>
            </Frame>
            
            <Frame type="Image" name="BackgroundImage">
                <Anchor side="Top" relative="$parent" pos="Min" offset="0"/>
                <Anchor side="Bottom" relative="$parent" pos="Max" offset="0"/>
                <Anchor side="Left" relative="$parent" pos="Min" offset="0"/>
                <Anchor side="Right" relative="$parent" pos="Max" offset="0"/>
                <Texture val="@@UI/RevealPanelBorder"/>
                <TextureType val="Border"/>
                <RenderPriority val="500"/>
            </Frame>
        </Frame>
    </Frame>

    <Frame type="CommandButton" name="CommandButtonTemplate" template="CommandButton/CommandButtonTemplate">
        <CollapseLayout val="true"/>
        <Width val="76"/>
        <Height val="76"/>
        <TooltipFrame val="InventoryTooltip"/>
    </Frame>

    <Frame type="CommandButton" name="ContainerButtonTemplate" template="CommandButton/CommandButtonTemplate">
        <Width val="76"/>
        <Height val="76"/>
    </Frame>

    <Frame type="InventoryContainer" name="ContainerPanelTemplate">
        <AcceptsMouse val="true"/>
        <CollapseLayout val="true"/>
        <Width val="633"/>
        <Height val="696"/>
    </Frame> 
</Desc>

It doesn't work though, nothing at all has changed in containers.

Could anyone elaborate?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,225
How is this meant to be used? Some of the entries look like they are for use with dialog triggers as template options.

You using the correct combination of these natives?
native int DialogControlCreateFromTemplate (int dialog, int type, string inTemplate);
native int DialogControlCreateInPanelFromTemplate (int panel, int type, string inTemplate);
native int DialogControlHookup (int panel, int type, string inTemplate);
 
Status
Not open for further replies.
Top