Direct Connect
This commit is contained in:
@@ -41,12 +41,6 @@ namespace OpenRA.Widgets.Delegates
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (w.Id == "JOINSERVER_BUTTON_CANCEL")
|
|
||||||
{
|
|
||||||
WidgetLoader.rootWidget.GetWidget("JOINSERVER_BG").Visible = false;
|
|
||||||
WidgetLoader.rootWidget.GetWidget("MAINMENU_BG").Visible = true;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -86,6 +80,12 @@ namespace OpenRA.Widgets.Delegates
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (w.Id == "JOINSERVER_BUTTON_DIRECTCONNECT")
|
||||||
|
{
|
||||||
|
Game.JoinServer(Game.Settings.NetworkHost, Game.Settings.NetworkPort);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (w.Id.Substring(0,10) == "JOIN_GAME_")
|
if (w.Id.Substring(0,10) == "JOIN_GAME_")
|
||||||
{
|
{
|
||||||
int index = int.Parse(w.Id.Substring(10));
|
int index = int.Parse(w.Id.Substring(10));
|
||||||
@@ -95,6 +95,13 @@ namespace OpenRA.Widgets.Delegates
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (w.Id == "JOINSERVER_BUTTON_CANCEL")
|
||||||
|
{
|
||||||
|
WidgetLoader.rootWidget.GetWidget("JOINSERVER_BG").Visible = false;
|
||||||
|
WidgetLoader.rootWidget.GetWidget("MAINMENU_BG").Visible = true;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -100,6 +100,14 @@ Container:
|
|||||||
Height:25
|
Height:25
|
||||||
Text:Quick'n'dirty Server Browser
|
Text:Quick'n'dirty Server Browser
|
||||||
Align:Center
|
Align:Center
|
||||||
|
Button@JOINSERVER_BUTTON_DIRECTCONNECT:
|
||||||
|
Id:JOINSERVER_BUTTON_DIRECTCONNECT
|
||||||
|
X:PARENT_RIGHT - 360
|
||||||
|
Y:PARENT_BOTTOM - 45
|
||||||
|
Width:160
|
||||||
|
Height:25
|
||||||
|
Text:Direct Connect
|
||||||
|
Delegate:ServerBrowserDelegate
|
||||||
Button@JOINSERVER_BUTTON_CANCEL:
|
Button@JOINSERVER_BUTTON_CANCEL:
|
||||||
Id:JOINSERVER_BUTTON_CANCEL
|
Id:JOINSERVER_BUTTON_CANCEL
|
||||||
X:PARENT_RIGHT - 180
|
X:PARENT_RIGHT - 180
|
||||||
@@ -107,4 +115,4 @@ Container:
|
|||||||
Width:160
|
Width:160
|
||||||
Height:25
|
Height:25
|
||||||
Text:Cancel
|
Text:Cancel
|
||||||
Delegate:MainMenuButtonsDelegate
|
Delegate:ServerBrowserDelegate
|
||||||
Reference in New Issue
Block a user