Added libarchive support to Dawn.
This commit is contained in:
@ -8,11 +8,11 @@
|
||||
<asset type="texture" name="button_background_inactive" /> -->
|
||||
<asset type="texture" name="button_background" />
|
||||
<asset type="texture" name="button_hover_element" />
|
||||
<asset type="texture" name="button_wings_down" />
|
||||
<asset type="texture" name="button_wings_inactive" />
|
||||
<asset type="texture" name="button_wings_open" />
|
||||
<asset type="texture" name="button_wings_down" ref="wingsDown" />
|
||||
<asset type="texture" name="button_wings_inactive" ref="wingsInactive" />
|
||||
<asset type="texture" name="button_wings_open" ref="wingsOpen" />
|
||||
|
||||
<UIEmpty alignment="64, 128, 400, 64" ref="uiItem" />
|
||||
<UIEmpty ref="uiItem" alignment="0, 0, 128, 32" />
|
||||
<UISimpleMenuItem ref="menuItem" />
|
||||
|
||||
<!-- Background -->
|
||||
@ -20,7 +20,7 @@
|
||||
<UIImage
|
||||
ref="backgroundLeft"
|
||||
texture="button_background"
|
||||
color="white"
|
||||
color="red"
|
||||
alignment="0, 0, 47, 0"
|
||||
alignX="left"
|
||||
alignY="stretch"
|
||||
@ -33,7 +33,7 @@
|
||||
<UIImage
|
||||
ref="backgroundMiddle"
|
||||
texture="button_background"
|
||||
color="white"
|
||||
color="red"
|
||||
alignment="47, 0, 47, 0"
|
||||
alignX="stretch"
|
||||
alignY="stretch"
|
||||
@ -47,7 +47,7 @@
|
||||
<UIImage
|
||||
ref="backgroundRight"
|
||||
texture="button_background"
|
||||
color="white"
|
||||
color="red"
|
||||
alignment="47, 0, 0, 0"
|
||||
alignX="right"
|
||||
alignY="stretch"
|
||||
@ -71,9 +71,9 @@
|
||||
<!-- Left Wing -->
|
||||
<item>
|
||||
<UIImage
|
||||
texture="button_wings_open"
|
||||
texture="button_wings_down"
|
||||
ref="wingsLeft"
|
||||
alignment="-80, -54, 134.15, 151.3"
|
||||
alignment="-40, -27, 67.075, 75.65"
|
||||
alignX="UI_COMPONENT_ALIGN_START"
|
||||
alignY="UI_COMPONENT_ALIGN_START"
|
||||
uvs="0, 0, 0.5, 1"
|
||||
@ -83,9 +83,9 @@
|
||||
<!-- Right Wing -->
|
||||
<item>
|
||||
<UIImage
|
||||
texture="button_wings_open"
|
||||
texture="button_wings_down"
|
||||
ref="wingsRight"
|
||||
alignment="134.15, -54, -80, 151.3"
|
||||
alignment="67, -27, -40, 75"
|
||||
alignX="UI_COMPONENT_ALIGN_END"
|
||||
alignY="UI_COMPONENT_ALIGN_START"
|
||||
uvs="0.5, 0, 1, 1"
|
||||
@ -97,10 +97,11 @@
|
||||
<UISimpleLabel
|
||||
ref="label"
|
||||
font="font_main"
|
||||
size="32"
|
||||
alignment="0, 12, 0, 12"
|
||||
alignX="center"
|
||||
size="16"
|
||||
alignment="0, 6, 0, 6"
|
||||
alignX="stretch"
|
||||
alignY="stretch"
|
||||
textAlign="center"
|
||||
>
|
||||
Hello Button.
|
||||
</UISimpleLabel>
|
||||
@ -109,10 +110,16 @@
|
||||
<code type="init">
|
||||
useEvent([&]{
|
||||
hoverDeocration->color = COLOR_WHITE;
|
||||
backgroundLeft->color = backgroundMiddle->color = backgroundRight->color = COLOR_BLUE;
|
||||
wingsLeft->texture = &wingsOpen->texture;
|
||||
wingsRight->texture = &wingsOpen->texture;
|
||||
}, menuItem->eventHoveredOn);
|
||||
|
||||
useEvent([&]{
|
||||
hoverDeocration->color = COLOR_TRANSPARENT;
|
||||
backgroundLeft->color = backgroundMiddle->color = backgroundRight->color = COLOR_RED;
|
||||
wingsLeft->texture = &wingsDown->texture;
|
||||
wingsRight->texture = &wingsDown->texture;
|
||||
}, menuItem->eventHoveredOff);
|
||||
</code>
|
||||
</prefab>
|
@ -28,10 +28,10 @@
|
||||
<UISimpleMenu />
|
||||
|
||||
<!-- <item ref="button0" prefab="prefabs/Button" menuX="0" menuY="0" /> -->
|
||||
<item ref="button0" alignment="0, 0, 32, 32" prefab="prefabs/Button" menuX="0" menuY="0" />
|
||||
<item ref="button1" alignment="180, 0, 32, 32" prefab="prefabs/Button" menuX="1" menuY="0" />
|
||||
<item ref="button2" alignment="0, 180, 32, 32" prefab="prefabs/Button" menuX="0" menuY="1" />
|
||||
<item ref="button3" alignment="180, 180, 32, 32" prefab="prefabs/Button" menuX="1" menuY="1" />
|
||||
<item ref="button0" alignment="0, 0, 128, 32" prefab="prefabs/Button" menuX="0" menuY="0" />
|
||||
<item ref="button1" alignment="192, 0, 128, 32" prefab="prefabs/Button" menuX="1" menuY="0" />
|
||||
<item ref="button2" alignment="0, 180, 128, 32" prefab="prefabs/Button" menuX="0" menuY="1" />
|
||||
<item ref="button3" alignment="192, 180, 128, 32" prefab="prefabs/Button" menuX="1" menuY="1" />
|
||||
|
||||
<!-- <item prefab="Button" ref="button0" alignment="0, 0, 0, 0" menuX="0" menuY="0" />
|
||||
<item prefab="Button" ref="button1" alignment="180, 0, 0, 0" menuX="1" menuY="0" />
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
tool_scene(${CMAKE_CURRENT_LIST_DIR}/SceneStandard.xml)
|
||||
tool_scene(${CMAKE_CURRENT_LIST_DIR}/SceneMonologue.xml)
|
||||
tool_scene(${CMAKE_CURRENT_LIST_DIR}/SceneMainMenu.xml)
|
||||
tool_vnscene(${CMAKE_CURRENT_LIST_DIR}/SceneInitial.xml)
|
||||
|
||||
include("${CMAKE_CURRENT_LIST_DIR}/test/CMakeLists.txt")
|
||||
|
53
assets/games/liminal/scenes/SceneMainMenu.xml
Normal file
53
assets/games/liminal/scenes/SceneMainMenu.xml
Normal file
@ -0,0 +1,53 @@
|
||||
<scene name="SceneMainMenu">
|
||||
<!-- Camera -->
|
||||
<item>
|
||||
<Camera ref="camera" />
|
||||
</item>
|
||||
|
||||
<!-- UI -->
|
||||
<item>
|
||||
<UICanvas ref="canvas" camera="camera" />
|
||||
|
||||
<!-- Menu -->
|
||||
<item>
|
||||
<UIMenuController />
|
||||
<UISimpleMenu />
|
||||
|
||||
<UIEmpty alignment="0, 0, 0, 0" alignX="center" alignY="center" />
|
||||
|
||||
<item>
|
||||
<UIImage alignment="0, 0, 32, 32" alignX="left" alignY="top" color="red" />
|
||||
</item>
|
||||
|
||||
<item>
|
||||
<UIImage alignment="0, 0, 8, 8" alignX="center" alignY="center" color="blue" />
|
||||
</item>
|
||||
|
||||
<item
|
||||
ref="button0"
|
||||
alignment="-400, 100, 128, 32"
|
||||
prefab="prefabs/Button"
|
||||
alignX="middle"
|
||||
menuX="0"
|
||||
menuY="0"
|
||||
/>
|
||||
<item
|
||||
ref="button1"
|
||||
alignment="0, 100, 128, 32"
|
||||
prefab="prefabs/Button"
|
||||
alignX="middle"
|
||||
menuX="1"
|
||||
menuY="0"
|
||||
/>
|
||||
<item
|
||||
ref="button2"
|
||||
alignment="400, 100, 128, 32"
|
||||
prefab="prefabs/Button"
|
||||
alignX="middle"
|
||||
menuX="2"
|
||||
menuY="0"
|
||||
/>
|
||||
</item>
|
||||
</item>
|
||||
|
||||
</scene>
|
Reference in New Issue
Block a user