Implemented client_serverlist module! Close #200

* Will store servers that are not already in the list when logging in
* Can add servers manually if required too
* Fixed a bug in table.size
This commit is contained in:
BeniS
2013-02-24 00:41:21 +13:00
parent 2296e35174
commit 8e9f65779c
11 changed files with 444 additions and 12 deletions

View File

@@ -1,5 +1,19 @@
EnterGameWindow < MainWindow
ServerListButton < UIButton
size: 17 17
image-source: /images/topbuttons/minimap
image-color: #ffffffff
$hover !disabled:
image-color: #ffffff99
$pressed:
image-color: #ffffff44
$disabled:
image-color: #ffffff55
EnterGameWindow
id: enterGame
!text: tr('Enter Game')
@@ -41,13 +55,21 @@ EnterGameWindow
margin-top: 8
text-auto-resize: true
ServerListButton
id: serverListButton
anchors.right: parent.right
anchors.top: serverLabel.bottom
margin-top: 3
@onClick: ServerList.show()
TextEdit
id: serverHostTextEdit
!tooltip: tr('Make sure that your client uses\nthe correct game protocol version')
anchors.left: parent.left
anchors.right: parent.right
anchors.right: serverListButton.left
anchors.top: serverLabel.bottom
margin-top: 2
margin-right: 4
MenuLabel
id: protocolLabel