Merge pull request #4177 from pchote/disable-stuff
Remove language selector and IRC chat from the visible game UI.
This commit is contained in:
@@ -101,7 +101,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
showIncompatibleCheckbox.OnClick = () => { showIncompatible ^= true; ServerList.Query(games => RefreshServerList(panel, games)); };
|
showIncompatibleCheckbox.OnClick = () => { showIncompatible ^= true; ServerList.Query(games => RefreshServerList(panel, games)); };
|
||||||
}
|
}
|
||||||
|
|
||||||
Game.LoadWidget(null, "SERVERBROWSER_IRC", panel.Get("IRC_ROOT"), new WidgetArgs());
|
// Game.LoadWidget(null, "SERVERBROWSER_IRC", panel.Get("IRC_ROOT"), new WidgetArgs());
|
||||||
|
|
||||||
ServerList.Query(games => RefreshServerList(panel, games));
|
ServerList.Query(games => RefreshServerList(panel, games));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,31 +1,58 @@
|
|||||||
Container@SERVERBROWSER_PANEL:
|
Container@SERVERBROWSER_PANEL:
|
||||||
Logic:ServerBrowserLogic
|
Logic:ServerBrowserLogic
|
||||||
X:(WINDOW_RIGHT - WIDTH)/2
|
X:(WINDOW_RIGHT - WIDTH)/2
|
||||||
Y:(WINDOW_BOTTOM - HEIGHT)/2
|
Y:(WINDOW_BOTTOM - 500)/2
|
||||||
Width:730
|
Width:730
|
||||||
Height:645
|
Height:535
|
||||||
Children:
|
Children:
|
||||||
Label@TITLE:
|
Label@TITLE:
|
||||||
Text:Find Server
|
Text:Find Server
|
||||||
Width:740
|
Width:740
|
||||||
Y:0-10
|
Y:0-25
|
||||||
Font:BigBold
|
Font:BigBold
|
||||||
Contrast:true
|
Contrast:true
|
||||||
Align:Center
|
Align:Center
|
||||||
Background@bg:
|
Background@bg:
|
||||||
Width:730
|
Width:730
|
||||||
Height:600
|
Height:500
|
||||||
Background:panel-black
|
Background:panel-black
|
||||||
Y:15
|
|
||||||
Children:
|
Children:
|
||||||
Container@IRC_ROOT:
|
Label@SHOW_LABEL_TITLE:
|
||||||
X:15
|
X:20
|
||||||
Y:15
|
Y:10
|
||||||
|
Width:20
|
||||||
|
Height:25
|
||||||
|
Text:Show:
|
||||||
|
Font:Bold
|
||||||
|
Checkbox@WAITING_FOR_PLAYERS:
|
||||||
|
X:80
|
||||||
|
Y:13
|
||||||
|
Width:100
|
||||||
|
Height:20
|
||||||
|
Text:Waiting
|
||||||
|
Checkbox@EMPTY:
|
||||||
|
X:180
|
||||||
|
Y:13
|
||||||
|
Width:100
|
||||||
|
Height:20
|
||||||
|
Text:Empty
|
||||||
|
Checkbox@ALREADY_STARTED:
|
||||||
|
X:280
|
||||||
|
Y:13
|
||||||
|
Width:100
|
||||||
|
Height:20
|
||||||
|
Text:Started
|
||||||
|
Checkbox@INCOMPATIBLE_VERSION:
|
||||||
|
X:380
|
||||||
|
Y:13
|
||||||
|
Width:100
|
||||||
|
Height:20
|
||||||
|
Text:Incompatible
|
||||||
ScrollPanel@SERVER_LIST:
|
ScrollPanel@SERVER_LIST:
|
||||||
X:15
|
X:15
|
||||||
Y:280
|
Y:45
|
||||||
Width:700
|
Width:700
|
||||||
Height:300
|
Height:440
|
||||||
Children:
|
Children:
|
||||||
ScrollItem@SERVER_TEMPLATE:
|
ScrollItem@SERVER_TEMPLATE:
|
||||||
Width:PARENT_RIGHT-27
|
Width:PARENT_RIGHT-27
|
||||||
@@ -80,7 +107,7 @@ Container@SERVERBROWSER_PANEL:
|
|||||||
Height:25
|
Height:25
|
||||||
Label@PROGRESS_LABEL:
|
Label@PROGRESS_LABEL:
|
||||||
X:(PARENT_RIGHT - WIDTH) / 2
|
X:(PARENT_RIGHT - WIDTH) / 2
|
||||||
Y:PARENT_BOTTOM / 2 - HEIGHT + (280 / 2)
|
Y:PARENT_BOTTOM / 2 - HEIGHT
|
||||||
Width:710
|
Width:710
|
||||||
Height:25
|
Height:25
|
||||||
Font:Bold
|
Font:Bold
|
||||||
@@ -89,20 +116,20 @@ Container@SERVERBROWSER_PANEL:
|
|||||||
Button@BACK_BUTTON:
|
Button@BACK_BUTTON:
|
||||||
Key:escape
|
Key:escape
|
||||||
X:0
|
X:0
|
||||||
Y:614
|
Y:499
|
||||||
Width:140
|
Width:140
|
||||||
Height:35
|
Height:35
|
||||||
Text:Back
|
Text:Back
|
||||||
Button@REFRESH_BUTTON:
|
Button@REFRESH_BUTTON:
|
||||||
X:PARENT_RIGHT - 140 - 10 - 140
|
X:PARENT_RIGHT - 140 - 10 - 140
|
||||||
Y:614
|
Y:499
|
||||||
Width:140
|
Width:140
|
||||||
Height:35
|
Height:35
|
||||||
Text:Refresh
|
Text:Refresh
|
||||||
Button@JOIN_BUTTON:
|
Button@JOIN_BUTTON:
|
||||||
Key:return
|
Key:return
|
||||||
X:PARENT_RIGHT - 140
|
X:PARENT_RIGHT - 140
|
||||||
Y:614
|
Y:499
|
||||||
Width:140
|
Width:140
|
||||||
Height:35
|
Height:35
|
||||||
Text:Join
|
Text:Join
|
||||||
@@ -170,6 +170,7 @@ Container@SETTINGS_PANEL:
|
|||||||
Font:Bold
|
Font:Bold
|
||||||
Text:Localization
|
Text:Localization
|
||||||
Align:Center
|
Align:Center
|
||||||
|
Visible:false
|
||||||
Label@LANGUAGE_LABEL:
|
Label@LANGUAGE_LABEL:
|
||||||
X:230 - WIDTH - 5
|
X:230 - WIDTH - 5
|
||||||
Y:244
|
Y:244
|
||||||
@@ -177,12 +178,14 @@ Container@SETTINGS_PANEL:
|
|||||||
Height:25
|
Height:25
|
||||||
Align:Right
|
Align:Right
|
||||||
Text:Language:
|
Text:Language:
|
||||||
|
Visible:false
|
||||||
DropDownButton@LANGUAGE_DROPDOWNBUTTON:
|
DropDownButton@LANGUAGE_DROPDOWNBUTTON:
|
||||||
X:230
|
X:230
|
||||||
Y:245
|
Y:245
|
||||||
Width:200
|
Width:200
|
||||||
Height:25
|
Height:25
|
||||||
Font:Regular
|
Font:Regular
|
||||||
|
Visible:false
|
||||||
Label@VIDEO_DESC_A:
|
Label@VIDEO_DESC_A:
|
||||||
Y:265
|
Y:265
|
||||||
Width:PARENT_RIGHT
|
Width:PARENT_RIGHT
|
||||||
@@ -190,6 +193,7 @@ Container@SETTINGS_PANEL:
|
|||||||
Font:Tiny
|
Font:Tiny
|
||||||
Align:Center
|
Align:Center
|
||||||
Text:Language changes will be applied after the game is restarted
|
Text:Language changes will be applied after the game is restarted
|
||||||
|
Visible:false
|
||||||
Label@VIDEO_DESC_B:
|
Label@VIDEO_DESC_B:
|
||||||
Y:280
|
Y:280
|
||||||
Width:PARENT_RIGHT
|
Width:PARENT_RIGHT
|
||||||
@@ -197,6 +201,7 @@ Container@SETTINGS_PANEL:
|
|||||||
Font:Tiny
|
Font:Tiny
|
||||||
Align:Center
|
Align:Center
|
||||||
Text:Translations apply to text strings only; Speech and build icons will remain in English
|
Text:Translations apply to text strings only; Speech and build icons will remain in English
|
||||||
|
Visible:false
|
||||||
Container@AUDIO_PANEL:
|
Container@AUDIO_PANEL:
|
||||||
Width:PARENT_RIGHT
|
Width:PARENT_RIGHT
|
||||||
Height:PARENT_BOTTOM
|
Height:PARENT_BOTTOM
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ Background@JOINSERVER_BG:
|
|||||||
X:(WINDOW_RIGHT - WIDTH)/2
|
X:(WINDOW_RIGHT - WIDTH)/2
|
||||||
Y:(WINDOW_BOTTOM - HEIGHT)/2
|
Y:(WINDOW_BOTTOM - HEIGHT)/2
|
||||||
Width:740
|
Width:740
|
||||||
Height:700
|
Height:505
|
||||||
Children:
|
Children:
|
||||||
Label@JOINSERVER_LABEL_TITLE:
|
Label@JOINSERVER_LABEL_TITLE:
|
||||||
X:0
|
X:0
|
||||||
@@ -48,7 +48,7 @@ Background@JOINSERVER_BG:
|
|||||||
X:20
|
X:20
|
||||||
Y:80
|
Y:80
|
||||||
Width:700
|
Width:700
|
||||||
Height:305
|
Height:355
|
||||||
Children:
|
Children:
|
||||||
ScrollItem@SERVER_TEMPLATE:
|
ScrollItem@SERVER_TEMPLATE:
|
||||||
Width:PARENT_RIGHT-27
|
Width:PARENT_RIGHT-27
|
||||||
@@ -103,21 +103,21 @@ Background@JOINSERVER_BG:
|
|||||||
Height:25
|
Height:25
|
||||||
Label@PROGRESS_LABEL:
|
Label@PROGRESS_LABEL:
|
||||||
X:(PARENT_RIGHT - WIDTH) / 2
|
X:(PARENT_RIGHT - WIDTH) / 2
|
||||||
Y:505 / 2 - HEIGHT
|
Y:PARENT_BOTTOM / 2 - HEIGHT
|
||||||
Width:150
|
Width:150
|
||||||
Height:30
|
Height:30
|
||||||
Text:Fetching games...
|
Text:Fetching games...
|
||||||
Align:Center
|
Align:Center
|
||||||
Button@REFRESH_BUTTON:
|
Button@REFRESH_BUTTON:
|
||||||
X:20
|
X:20
|
||||||
Y:395
|
Y:PARENT_BOTTOM - 45
|
||||||
Width:100
|
Width:100
|
||||||
Height:25
|
Height:25
|
||||||
Text:Refresh
|
Text:Refresh
|
||||||
Font:Bold
|
Font:Bold
|
||||||
Button@JOIN_BUTTON:
|
Button@JOIN_BUTTON:
|
||||||
X:PARENT_RIGHT - 120 - 120
|
X:PARENT_RIGHT - 120 - 120
|
||||||
Y:395
|
Y:PARENT_BOTTOM - 45
|
||||||
Width:100
|
Width:100
|
||||||
Height:25
|
Height:25
|
||||||
Text:Join
|
Text:Join
|
||||||
@@ -125,12 +125,9 @@ Background@JOINSERVER_BG:
|
|||||||
Key:return
|
Key:return
|
||||||
Button@BACK_BUTTON:
|
Button@BACK_BUTTON:
|
||||||
X:PARENT_RIGHT - 120
|
X:PARENT_RIGHT - 120
|
||||||
Y:395
|
Y:PARENT_BOTTOM - 45
|
||||||
Width:100
|
Width:100
|
||||||
Height:25
|
Height:25
|
||||||
Text:Cancel
|
Text:Cancel
|
||||||
Font:Bold
|
Font:Bold
|
||||||
Key:escape
|
Key:escape
|
||||||
Container@IRC_ROOT:
|
|
||||||
X:20
|
|
||||||
Y:430
|
|
||||||
|
|||||||
@@ -170,6 +170,7 @@ Background@SETTINGS_PANEL:
|
|||||||
Font:Bold
|
Font:Bold
|
||||||
Text:Localization
|
Text:Localization
|
||||||
Align:Center
|
Align:Center
|
||||||
|
Visible:false
|
||||||
Label@LANGUAGE_LABEL:
|
Label@LANGUAGE_LABEL:
|
||||||
X:230 - WIDTH - 5
|
X:230 - WIDTH - 5
|
||||||
Y:244
|
Y:244
|
||||||
@@ -177,11 +178,13 @@ Background@SETTINGS_PANEL:
|
|||||||
Height:25
|
Height:25
|
||||||
Align:Right
|
Align:Right
|
||||||
Text:Language:
|
Text:Language:
|
||||||
|
Visible:false
|
||||||
DropDownButton@LANGUAGE_DROPDOWNBUTTON:
|
DropDownButton@LANGUAGE_DROPDOWNBUTTON:
|
||||||
X:230
|
X:230
|
||||||
Y:245
|
Y:245
|
||||||
Width:200
|
Width:200
|
||||||
Height:25
|
Height:25
|
||||||
|
Visible:false
|
||||||
Label@VIDEO_DESC_A:
|
Label@VIDEO_DESC_A:
|
||||||
Y:265
|
Y:265
|
||||||
Width:PARENT_RIGHT
|
Width:PARENT_RIGHT
|
||||||
@@ -189,6 +192,7 @@ Background@SETTINGS_PANEL:
|
|||||||
Font:Tiny
|
Font:Tiny
|
||||||
Align:Center
|
Align:Center
|
||||||
Text:Language changes will be applied after the game is restarted
|
Text:Language changes will be applied after the game is restarted
|
||||||
|
Visible:false
|
||||||
Label@VIDEO_DESC_B:
|
Label@VIDEO_DESC_B:
|
||||||
Y:280
|
Y:280
|
||||||
Width:PARENT_RIGHT
|
Width:PARENT_RIGHT
|
||||||
@@ -196,6 +200,7 @@ Background@SETTINGS_PANEL:
|
|||||||
Font:Tiny
|
Font:Tiny
|
||||||
Align:Center
|
Align:Center
|
||||||
Text:Translations apply to text strings only; Speech and build icons will remain in English
|
Text:Translations apply to text strings only; Speech and build icons will remain in English
|
||||||
|
Visible:false
|
||||||
Container@AUDIO_PANEL:
|
Container@AUDIO_PANEL:
|
||||||
X:5
|
X:5
|
||||||
Y:50
|
Y:50
|
||||||
|
|||||||
Reference in New Issue
Block a user