Merge pull request #3859 from ScottNZ/irc

Add IRC client to the serverbrowser
This commit is contained in:
Matthias Mailänder
2013-10-05 00:43:49 -07:00
33 changed files with 1965 additions and 140 deletions

68
mods/cnc/chrome/irc.yaml Normal file
View File

@@ -0,0 +1,68 @@
Container@SERVERBROWSER_IRC:
Logic:IrcLogic
Width:700
Height:250
Children:
Container@IRC_CONTAINER:
Width:PARENT_RIGHT
Height:PARENT_BOTTOM
Children:
ScrollPanel@HISTORY_PANEL:
Width:565
Height:PARENT_BOTTOM - 30
ItemSpacing:5
Label@HISTORY_TEMPLATE:
X:5
Width:530
Height:25
WordWrap:True
TextField@INPUT_BOX:
Y:PARENT_BOTTOM - 25
Width:565
Height:25
ScrollPanel@NICKNAME_PANEL:
X:570
Width:130
Height:PARENT_BOTTOM - 30
Label@NICKNAME_TEMPLATE:
X:5
Button@DISCONNECT_BUTTON:
X:570
Y:PARENT_BOTTOM - 25
Width:130
Height:25
Text:Disconnect
Font:Bold
Background@IRC_CONNECT_BG:
Width:PARENT_RIGHT
Height:PARENT_BOTTOM
Background:scrollpanel-bg
Children:
Label@GLOBAL_CHAT_LABEL:
Y:PARENT_BOTTOM / 4
Width:PARENT_RIGHT
Align:Center
Text:Global Chat
Font:Bold
Label@NICKNAME_LABEL:
X:200
Y:PARENT_BOTTOM / 4 + 35
Text:Nickname:
TextField@NICKNAME_BOX:
X:270
Y:PARENT_BOTTOM / 4 + 25
Width:150
Height:25
Checkbox@CONNECT_AUTOMATICALLY_CHECKBOX:
X:270
Y:PARENT_BOTTOM / 4 + 75
Height:20
Width:180
Text:Connect Automatically
Button@CONNECT_BUTTON:
X:430
Y:PARENT_BOTTOM / 4 + 25
Width:100
Height:25
Text:Connect
Font:Bold

View File

@@ -1,27 +1,31 @@
Container@SERVERBROWSER_PANEL:
Logic:ServerBrowserLogic
X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - 500)/2
Width:540
Height:535
Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:730
Height:645
Children:
Label@TITLE:
Text:Find Server
Width:540
Y:0-25
Width:740
Y:0-10
Font:BigBold
Contrast:true
Align:Center
Background@bg:
Width:540
Height:500
Width:730
Height:600
Background:panel-black
Y:15
Children:
Container@IRC_ROOT:
X:15
Y:15
ScrollPanel@SERVER_LIST:
X:15
Y:30
Width:510
Height:450
Y:280
Width:700
Height:300
Children:
ScrollItem@SERVER_TEMPLATE:
Width:PARENT_RIGHT-27
@@ -76,7 +80,7 @@ Container@SERVERBROWSER_PANEL:
Height:25
Label@PROGRESS_LABEL:
X:(PARENT_RIGHT - WIDTH) / 2
Y:PARENT_BOTTOM / 2 - HEIGHT
Y:PARENT_BOTTOM / 2 - HEIGHT + (280 / 2)
Width:710
Height:25
Font:Bold
@@ -85,20 +89,20 @@ Container@SERVERBROWSER_PANEL:
Button@BACK_BUTTON:
Key:escape
X:0
Y:499
Y:614
Width:140
Height:35
Text:Back
Button@REFRESH_BUTTON:
X:250
Y:499
X:PARENT_RIGHT - 140 - 10 - 140
Y:614
Width:140
Height:35
Text:Refresh
Button@JOIN_BUTTON:
Key:return
X:400
Y:499
X:PARENT_RIGHT - 140
Y:614
Width:140
Height:35
Text:Join
Text:Join

View File

@@ -85,6 +85,7 @@ ChromeLayout:
mods/cnc/chrome/dialogs.yaml
mods/cnc/chrome/objectives.yaml
mods/cnc/chrome/tooltips.yaml
mods/cnc/chrome/irc.yaml
Weapons:
mods/cnc/weapons.yaml