next & prev button mouseover

actorid
scrawl 13 years ago
parent c125fba9d2
commit a3d99767f7

@ -25,3 +25,27 @@
[tx_menubook_take_pressed.dds]
x = 128
y = 32
[tx_menubook_next_idle.dds]
x = 256
y = 32
[tx_menubook_next_over.dds]
x = 384
y = 32
[tx_menubook_next_pressed.dds]
x = 0
y = 64
[tx_menubook_prev_idle.dds]
x = 128
y = 64
[tx_menubook_prev_over.dds]
x = 256
y = 64
[tx_menubook_prev_pressed.dds]
x = 384
y = 64

@ -7,12 +7,16 @@
<Widget type="ImageBox" skin="ImageBox" position_real="0 0 1 1" align="Top|Right" name="BookImage">
<Property key="ImageTexture" value="textures\tx_menubook.dds"/>
<Widget type="Button" skin="Next_btn" position="251 220 128 32" name="NextPageBTN"/>
<Widget type="Button" skin="Prev_btn" position="165 220 128 32" name="PrevPageBTN"/>
<Widget type="Button" skin="ButtonImage" position="75 220 128 32" name="TakeButton">
<Widget type="Button" skin="ButtonImage" position="251 220 96 24" name="NextPageBTN">
<Property key="ImageResource" value="MenuBook_Next"/>
</Widget>
<Widget type="Button" skin="ButtonImage" position="165 220 96 24" name="PrevPageBTN">
<Property key="ImageResource" value="MenuBook_Prev"/>
</Widget>
<Widget type="Button" skin="ButtonImage" position="75 220 96 24" name="TakeButton">
<Property key="ImageResource" value="MenuBook_Take"/>
</Widget>
<Widget type="Button" skin="ButtonImage" position="360 220 128 32" name="CloseButton">
<Widget type="Button" skin="ButtonImage" position="360 220 96 24" name="CloseButton">
<Property key="ImageResource" value="MenuBook_Close"/>
</Widget>

@ -7,9 +7,12 @@
<Widget type="ImageBox" skin="ImageBox" position_real="0 0 1 1" align="Top|Right" name="JImage">
<Property key="ImageTexture" value="textures\tx_menubook.dds"/>
<Widget type="Button" skin="Next_btn" position="370 220 128 32" name="NextPageBTN"/>
<Widget type="Button" skin="Prev_btn" position="80 220 128 32" name="PrevPageBTN"/>
<Widget type="Button" skin="ButtonImage" position="370 220 96 24" name="NextPageBTN">
<Property key="ImageResource" value="MenuBook_Next"/>
</Widget>
<Widget type="Button" skin="ButtonImage" position="80 220 96 24" name="PrevPageBTN">
<Property key="ImageResource" value="MenuBook_Prev"/>
</Widget>
<Widget type="EditBox" skin="MW_BookPage" position_real="0.15 0.1 0.3 0.8" name = "LeftText"/>
<Widget type="EditBox" skin="MW_BookPage" position_real="0.55 0.1 0.3 0.8" name = "RightText"/>
</Widget>

@ -1,18 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Skin">
<Skin name="Next_btn" size="128 32" texture="textures\tx_menubook_next_idle.dds">
<BasisSkin type="MainSkin" offset="0 0 128 32" align="ALIGN_VSTRETCH">
<State name="normal" offset="0 0 128 32"/>
</BasisSkin>
</Skin>
<Skin name="Prev_btn" size="128 32" texture="textures\tx_menubook_prev_idle.dds">
<BasisSkin type="MainSkin" offset="0 0 128 32" align="ALIGN_VSTRETCH">
<State name="normal" offset="0 0 128 32"/>
</BasisSkin>
</Skin>
<Skin name = "MW_BookClient" size = "10 10">
<Property key="FontName" value = "Default" />
<Property key="TextAlign" value = "Left Top" />

@ -38,7 +38,7 @@
</Resource>
<Resource type="ResourceImageSet" name="MenuBook_Close">
<Group name="States" texture="mwgui1" size="128 32">
<Group name="States" texture="mwgui1" size="96 24">
<Index name="disabled">
<Frame point="0 0"/>
</Index>
@ -55,7 +55,7 @@
</Resource>
<Resource type="ResourceImageSet" name="MenuBook_Take">
<Group name="States" texture="mwgui1" size="128 32">
<Group name="States" texture="mwgui1" size="96 24">
<Index name="disabled">
<Frame point="384 0"/>
</Index>
@ -71,9 +71,43 @@
</Group>
</Resource>
<Resource type="ResourceImageSet" name="MenuBook_Next">
<Group name="States" texture="mwgui1" size="96 24">
<Index name="disabled">
<Frame point="256 32"/>
</Index>
<Index name="normal">
<Frame point="256 32"/>
</Index>
<Index name="highlighted">
<Frame point="384 32"/>
</Index>
<Index name="pushed">
<Frame point="0 64"/>
</Index>
</Group>
</Resource>
<Resource type="ResourceImageSet" name="MenuBook_Prev">
<Group name="States" texture="mwgui1" size="96 24">
<Index name="disabled">
<Frame point="128 64"/>
</Index>
<Index name="normal">
<Frame point="128 64"/>
</Index>
<Index name="highlighted">
<Frame point="256 64"/>
</Index>
<Index name="pushed">
<Frame point="384 64"/>
</Index>
</Group>
</Resource>
<Resource type="ResourceLayout" name="ButtonImage" version="3.2.0">
<Widget type="Widget" skin="ButtonEmptySkin" position="20 20 16 16" name="Root">
<Widget type="Widget" skin="Default" position="20 20 16 16" name="Root">
<Property key="TextAlign" value="Center"/>
<Property key="FontName" value="Default"/>
<Property key="ModeImage" value="true"/>

@ -7,11 +7,11 @@
<Widget type="ImageBox" skin="ImageBox" position_real="0 0 1 1" name="ScrollImage">
<Property key="ImageTexture" value="textures\scroll.dds"/>
<Widget type="Button" skin="ButtonImage" position="12 18 128 32" name="TakeButton">
<Widget type="Button" skin="ButtonImage" position="12 18 96 24" name="TakeButton">
<Property key="ImageResource" value="MenuBook_Take"/>
</Widget>
<Widget type="Button" skin="ButtonImage" position="418 24 128 32" name="CloseButton">
<Widget type="Button" skin="ButtonImage" position="418 24 96 24" name="CloseButton">
<Property key="ImageResource" value="MenuBook_Close"/>
</Widget>

@ -1,15 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<MyGUI type="Skin">
<Skin name="Take_btn" size="128 32" texture="textures\tx_menubook_take_idle.dds">
<BasisSkin type="MainSkin" offset="0 0 128 32" align="ALIGN_VSTRETCH">
<State name="normal" offset="0 0 128 32"/>
</BasisSkin>
</Skin>
<Skin name="Close_btn" size="128 32" texture="textures\tx_menubook_close_idle.dds">
<BasisSkin type="MainSkin" offset="0 0 128 32" align="ALIGN_VSTRETCH">
<State name="normal" offset="0 0 128 32"/>
</BasisSkin>
</Skin>
</MyGUI>

Loading…
Cancel
Save