Added basic UI
This commit is contained in:
parent
c0e12fe9e9
commit
1ced6e0852
33
Config/XUi/controls.xml
Normal file
33
Config/XUi/controls.xml
Normal file
@ -0,0 +1,33 @@
|
||||
<Config>
|
||||
<append xpath="windows/">
|
||||
|
||||
<snakeincubator_stack controller="SnakeIncubatorStack" on_scroll="false" allow_dropping="true" prefix_id="false" show_favorites="false">
|
||||
<rect controller="SnakeIncubatorStack" style="itemStack, hover" collider_scale="1.0" on_scroll="${on_scroll}" allow_dropping="${allow_dropping}" prefix_id="${prefix_id}" show_favorites="${show_favorites}" tooltip="{tooltip}" >
|
||||
<sprite depth="2" name="backgroundMain" sprite="menu_empty3px" pos="-3,3" width="78" height="78" color="[black]" type="sliced" fillcenter="false" />
|
||||
<sprite depth="3" name="background" sprite="menu_empty3px" width="73" height="73" color="{selectionbordercolor}" type="sliced" globalopacity="true" fillcenter="false"/>
|
||||
<sprite depth="2" name="highlightOverlay" width="72" height="72" color="{backgroundcolor}" pos="0,0" type="sliced" globalopacity="true"/>
|
||||
|
||||
<texture depth="3" name="backgroundTexture" material="Materials/Transparent Colored" size="73,73" globalopacity="true"/>
|
||||
<sprite depth="8" name="favoriteIcon" width="24" height="24" sprite="server_favorite" pos="2,-2" foregroundlayer="true" visible="{isfavorite}"/>
|
||||
<sprite depth="6" name="itemIcon" width="64" height="64" atlas="{itematlas}" sprite="{itemicon}" pos="35,-35" pivot="center" foregroundlayer="true" color="{iconcolor}" visible="{showitem}" />
|
||||
<sprite depth="6" name="fillIcon" width="40" height="40" sprite="ui_game_symbol_hunger" pos="35,-35" pivot="center" foregroundlayer="true" color="[darkGrey]" visible="{showempty}" />
|
||||
|
||||
<sprite depth="3" name="durabilityBackground" width="70" height="10" sprite="menu_empty3px" color="[darkGrey]" type="sliced" pos="1, -60" foregroundlayer="true" visible="{hasdurability}" />
|
||||
<filledsprite depth="4" name="durability" width="70" height="10" sprite="menu_empty2px" color="{durabilitycolor}" fill="{durabilityfill}" type="filled" pos="1, -60" foregroundlayer="true" visible="{hasdurability}" />
|
||||
|
||||
<sprite depth="5" name="disabledOverlay" width="72" height="72" color="[darkGrey_half_alpha]" pos="1,-1" type="sliced" visible="false"/>
|
||||
|
||||
<label depth="7" name="stackValue" pos="-2,-45" width="70" height="28" text="{itemcount}" font_size="26" effect="outline" justify="{#hasdurability ? 'Center' : 'Right'}" />
|
||||
<label depth="7" name="timer" pos="35,-38" width="70" height="24" font_size="24" justify="center" pivot="center" effect="outline" color="[beige]"/>
|
||||
<sprite depth="9" name="cancel" sprite="ui_game_symbol_x" width="70" height="70" color="255,0,0,255" type="sliced" visible="false" foregroundlayer="true"/>
|
||||
<sprite depth="13" name="assembleIcon" size="40,40" sprite="{stacklockicon}" color="{stacklockcolor}" visible="{isassemblelocked}" pos="14,-14" foregroundlayer="true" />
|
||||
|
||||
<rect pos="66, 0" width="64" height="74" visible="{hasfill}">
|
||||
<sprite width="6" height="73" depth="3" pos="1,0" color="[darkGrey]" globalopacity="false" type="sliced" />
|
||||
<filledsprite depth="5" pos="1,1" width="6" name="BarContent" color="{fillcolor}" globalopacity="false" type="filled" fill="{waterfill}" filldirection="Vertical" />
|
||||
</rect>
|
||||
</rect>
|
||||
</snakeincubator_stack>
|
||||
|
||||
</append>
|
||||
</Config>
|
||||
38
Config/XUi/windows.xml
Normal file
38
Config/XUi/windows.xml
Normal file
@ -0,0 +1,38 @@
|
||||
<Config>
|
||||
<append xpath="windows/">
|
||||
|
||||
<window name="windowSnakeIncubator" width="{windowWidth}" height="378" controller="SnakeIncubatorWindow" panel="Left" anchor_side="bottomright" visible="false" cursor_area="true" >
|
||||
<panel name="header" height="43" depth="0" disableautobackground="true" anchor_left="queue,0,-3" anchor_right="queue,1,0" >
|
||||
<sprite depth="1" name="headerbackground" sprite="ui_game_panel_header" anchor_left="queue,0,-3" anchor_right="queue,1,0" />
|
||||
<sprite depth="3" name="windowIcon" style="icon32px" pivot="center" pos="21,-21" sprite="ui_game_symbol_loot_sack" />
|
||||
<label depth="2" name="lootName" pos="39,-6" width="180" height="32" text_key="xuiSnakeIncubator" font_size="32" />
|
||||
|
||||
<rect anchor_left="queue,1,-300" anchor_right="queue,1,0" pivot="topleft" pos="0,0" controller="ContainerStandardControls" createuiwidget="true" visible="false">
|
||||
</rect>
|
||||
|
||||
</panel>
|
||||
<rect name="content" pos="3,-49" >
|
||||
<sprite depth="0" name="bg" color="255,255,255,1" type="sliced" sprite="menu_empty" anchor_left="queue,0,-3" anchor_bottom="queue,0,0" anchor_right="queue,1,0" anchor_top="queue,1,49" />
|
||||
<grid depth="12" name="queue" rows="1" cols="3" cell_width="75" cell_height="75" repeat_content="true" controller="SnakeIncubatorContainer" required_item="drinkJarEmpty">
|
||||
<snakeincubator_stack controller="SnakeIncubatorStack" override_stack_count="1" name="0"/>
|
||||
</grid>
|
||||
</rect>
|
||||
</window>
|
||||
|
||||
<window name="windowSnakeIncubatorMods" width="228" height="121" panel="Right" cursor_area="true" >
|
||||
<panel style="header.panel">
|
||||
<sprite style="header.icon" sprite="ui_game_symbol_assemble"/>
|
||||
<label style="header.name" text="MODS" text_key="xuiTools" />
|
||||
</panel>
|
||||
|
||||
<rect name="content" depth="0" pos="0,-46" height="75" disablefallthrough="true">
|
||||
|
||||
<grid name="inventory" rows="1" cols="2" pos="3,-3" cell_width="75" cell_height="75" controller="SnakeIncubatorModGrid" repeat_content="true"
|
||||
required_mods="toolDewGatherer,toolDewTarp" required_mods_only="true">
|
||||
<item_stack controller="RequiredItemStack" name="0"/>
|
||||
</grid>
|
||||
</rect>
|
||||
</window>
|
||||
|
||||
</append>
|
||||
</Config>
|
||||
Loading…
x
Reference in New Issue
Block a user