tibia-client/modules/core_styles/styles/buttons.otui

61 lines
1.2 KiB
Plaintext
Raw Normal View History

2011-08-14 04:09:11 +02:00
Button < UIButton
2011-11-01 03:35:50 +01:00
font: verdana-11px-antialised
2011-08-28 19:49:15 +02:00
background-color: white
2011-08-20 22:30:41 +02:00
color: #f0ad4dff
2011-08-14 04:09:11 +02:00
size: 106 24
2011-10-29 22:47:16 +02:00
text-translate: 0 0
2011-08-14 04:09:11 +02:00
border-image:
2011-11-02 04:02:56 +01:00
source: /core_styles/images/button.png
2011-08-14 04:09:11 +02:00
border: 5
state.hover:
border-image:
2011-11-02 04:02:56 +01:00
source: /core_styles/images/button_hover.png
2011-08-14 04:09:11 +02:00
border: 5
state.pressed:
2011-08-14 04:09:11 +02:00
text-translate: 1 1
border-image:
2011-11-02 04:02:56 +01:00
source: /core_styles/images/button_down.png
2011-08-14 04:09:11 +02:00
border: 5
2011-08-26 20:56:56 +02:00
state.disabled:
color: #999999
background-color: #ffffff88
2011-11-01 17:41:15 +01:00
2011-11-03 20:07:07 +01:00
ToolTipButton < UIButton
onHoverChange: |
function(self, hovered)
if hovered then
ToolTip.display(self:getStyle().tooltip)
else
ToolTip:hide()
end
end
TopButton < ToolTipButton
2011-11-01 17:41:15 +01:00
background-color: white
size: 26 25
text-translate: 0 0
border-image:
2011-11-02 04:02:56 +01:00
source: /core_styles/images/top_button.png
2011-11-01 17:41:15 +01:00
size: 26 25
border: 3
state.hover:
border-image:
2011-11-02 04:02:56 +01:00
source: /core_styles/images/top_button.png
2011-11-01 17:41:15 +01:00
size: 26 25
offset: 26 0
border: 3
state.pressed:
text-translate: 1 1
border-image:
2011-11-02 04:02:56 +01:00
source: /core_styles/images/top_button.png
2011-11-01 17:41:15 +01:00
size: 26 25
offset: 52 0
border: 3
state.disabled:
background-color: #ffffff66