Rework auto focus behavior, closes #222

This commit is contained in:
Eduardo Bart
2013-01-26 17:06:25 -02:00
parent 7e01306fc6
commit 4f8f02acad
13 changed files with 126 additions and 55 deletions

View File

@@ -13,21 +13,21 @@ CharacterWidget < UIWidget
Label
id: name
color: #ffffff
color: #aaaaaa
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
$on:
color: #ffffff
Label
id: worldName
color: #ffffff
color: #aaaaaa
anchors.top: parent.top
anchors.right: parent.right
margin-right: 5
@@ -35,10 +35,9 @@ CharacterWidget < UIWidget
text-auto-resize: true
background-color: alpha
&baseText: '(%s)'
on: true
$!on:
color: #aaaaaa
$on:
color: #ffffff
MainWindow
id: charactersWindow

View File

@@ -97,7 +97,6 @@ function EnterGame.init()
enterGame:getChildById('serverPortTextEdit'):setText(port)
enterGame:getChildById('autoLoginBox'):setChecked(autologin)
enterGame:getChildById('rememberPasswordBox'):setChecked(#account > 0)
enterGame:getChildById('accountNameTextEdit'):focus()
protocolBox = enterGame:getChildById('protocolComboBox')
protocolBox.onOptionChange = onChangeProtocol