tibia-client/modules/client_entergame/characterlist.otui

117 lines
2.7 KiB
Plaintext
Raw Normal View History

CharacterWidget < UIWidget
height: 14
2011-08-26 20:00:22 +02:00
focusable: true
background-color: alpha
@onFocusChange: |
local children = self:getChildren()
for i=1,#children do
children[i]:setOn(self:isFocused())
end
2011-08-26 20:00:22 +02:00
2011-11-16 00:47:32 +01:00
$focus:
2011-08-26 20:00:22 +02:00
background-color: #ffffff22
Label
id: name
2011-08-26 20:00:22 +02:00
color: #ffffff
anchors.top: parent.top
anchors.left: parent.left
font: verdana-11px-monochrome
text-auto-resize: true
background-color: alpha
text-offset: 2 0
on: true
$!on:
color: #aaaaaa
Label
id: worldName
color: #ffffff
anchors.top: parent.top
anchors.right: parent.right
margin-right: 5
font: verdana-11px-monochrome
text-auto-resize: true
background-color: alpha
&baseText: '(%s)'
on: true
$!on:
color: #aaaaaa
2011-08-26 20:00:22 +02:00
MainWindow
id: charactersWindow
2012-04-26 18:45:25 +02:00
!text: tr('Character List')
size: 250 248
visible: false
2011-11-17 22:41:02 +01:00
@onEnter: CharacterList.doLogin()
@onEscape: CharacterList.destroy()
@onSetup: |
g_keyboard.bindKeyPress('Up', function() self:getChildById('characters'):focusPreviousChild(KeyboardFocusReason) end, self)
g_keyboard.bindKeyPress('Down', function() self:getChildById('characters'):focusNextChild(KeyboardFocusReason) end, self)
TextList
id: characters
2012-08-13 01:27:41 +02:00
anchors.top: parent.top
anchors.left: parent.left
anchors.right: characterListScrollBar.left
anchors.bottom: accountStatusLabel.top
2011-11-17 22:41:02 +01:00
margin-bottom: 5
2012-01-11 00:13:38 +01:00
padding: 1
focusable: false
2012-03-26 15:34:43 +02:00
vertical-scrollbar: characterListScrollBar
VerticalScrollBar
2012-03-26 15:34:43 +02:00
id: characterListScrollBar
2012-08-13 01:27:41 +02:00
anchors.top: parent.top
anchors.bottom: accountStatusLabel.top
anchors.right: parent.right
margin-bottom: 5
2012-03-26 15:34:43 +02:00
step: 14
2012-03-28 02:33:35 +02:00
pixels-scroll: true
2011-08-26 20:44:18 +02:00
Label
id: accountStatusLabel
2012-04-26 18:45:25 +02:00
!text: tr('Account Status:\nFree Account')
2011-08-26 20:44:18 +02:00
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: separator.top
2011-11-17 22:41:02 +01:00
margin-bottom: 5
text-auto-resize: true
2011-08-26 20:44:18 +02:00
HorizontalSeparator
id: separator
2011-08-26 20:44:18 +02:00
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: next.top
2011-11-17 22:41:02 +01:00
margin-bottom: 10
2011-08-26 20:44:18 +02:00
//CheckBox
// id: charAutoLoginBox
2012-04-26 18:45:25 +02:00
// !text: tr('Auto login')
// !tooltip: tr('Auto login selected character on next charlist load')
// anchors.left: parent.left
// anchors.right: parent.right
// anchors.bottom: next.top
2011-11-17 22:41:02 +01:00
// margin-bottom: 6
// margin-left: 18
// margin-right: 18
Button
id: buttonOk
2012-04-26 18:45:25 +02:00
!text: tr('Ok')
width: 64
anchors.right: next.left
anchors.bottom: parent.bottom
2012-01-11 13:06:50 +01:00
margin-right: 10
2011-11-16 00:47:32 +01:00
@onClick: CharacterList.doLogin()
Button
id: buttonCancel
2012-04-26 18:45:25 +02:00
!text: tr('Cancel')
width: 64
anchors.right: parent.right
anchors.bottom: parent.bottom
2012-02-07 01:41:53 +01:00
@onClick: CharacterList.destroy()