tibia-client/modules/client_entergame/characterlist.otui

135 lines
3.2 KiB
Plaintext
Raw Normal View History

CharacterWidget < UIWidget
height: 14
background-color: alpha
2013-01-26 21:40:03 +01:00
&updateOnStates: |
function(self)
local children = self:getChildren()
for i=1,#children do
children[i]:setOn(self:isFocused())
end
end
2013-01-26 21:40:03 +01:00
@onFocusChange: self:updateOnStates()
@onSetup: self:updateOnStates()
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
color: #bbbbbb
anchors.top: parent.top
anchors.left: parent.left
font: verdana-11px-monochrome
text-auto-resize: true
background-color: alpha
text-offset: 2 0
$on:
color: #ffffff
Label
id: worldName
color: #bbbbbb
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:
color: #ffffff
2011-08-26 20:00:22 +02:00
MainWindow
id: charactersWindow
2012-04-26 18:45:25 +02:00
!text: tr('Character List')
visible: false
2011-11-17 22:41:02 +01:00
@onEnter: CharacterList.doLogin()
@onEscape: CharacterList.hide(true)
@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)
if g_game.getFeature(GamePreviewState) then
self:setSize({width = 350, height = 400})
else
self:setSize({width = 250, height = 248})
end
TextList
id: characters
background-color: #565656
2012-08-13 01:27:41 +02:00
anchors.top: parent.top
anchors.left: parent.left
anchors.right: characterListScrollBar.left
anchors.bottom: accountStatusCaption.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
2013-01-26 21:40:03 +01:00
auto-focus: first
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: accountStatusCaption.top
2012-08-13 01:27:41 +02:00
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
Label
id: accountStatusCaption
2013-01-24 12:33:44 +01:00
!text: tr('Account Status') .. ':'
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: next.top
margin-bottom: 1
2011-08-26 20:44:18 +02:00
Label
id: accountStatusLabel
!text: tr('Free 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
$on:
color: #FF0000
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
@onClick: CharacterList.hide(true)