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>
|
Reference in New Issue
Block a user