Bugfix: "perf text doesn't display until i mouseover options button"

This commit is contained in:
Paul Chote
2010-04-11 14:32:46 +12:00
parent 559a0107fe
commit 41623cff6b
4 changed files with 75 additions and 71 deletions

View File

@@ -118,6 +118,7 @@ namespace OpenRA
{ {
rootWidget = WidgetLoader.LoadWidget( widgetYaml.FirstOrDefault() ); rootWidget = WidgetLoader.LoadWidget( widgetYaml.FirstOrDefault() );
rootWidget.Initialize(); rootWidget.Initialize();
rootWidget.InitDelegates();
} }
} }

View File

@@ -36,17 +36,13 @@ namespace OpenRA.Widgets
public readonly string Width = "0"; public readonly string Width = "0";
public readonly string Height = "0"; public readonly string Height = "0";
public readonly string Delegate = null; public readonly string Delegate = null;
public Lazy<IWidgetDelegate> InputHandler;
public bool Visible = true; public bool Visible = true;
public readonly List<Widget> Children = new List<Widget>(); public readonly List<Widget> Children = new List<Widget>();
// Calculated internally // Calculated internally
public Rectangle Bounds; public Rectangle Bounds;
public Widget Parent = null; public Widget Parent = null;
static List<string> Delegates = new List<string>();
public Widget() { InputHandler = Lazy.New(() => BindHandler(Delegate)); }
// Common Funcs that most widgets will want // Common Funcs that most widgets will want
public Func<MouseInput,bool> OnMouseDown = mi => {return false;}; public Func<MouseInput,bool> OnMouseDown = mi => {return false;};
@@ -78,10 +74,19 @@ namespace OpenRA.Widgets
// Non-static func definitions // Non-static func definitions
IsVisible = () => {return Visible;}; IsVisible = () => {return Visible;};
if (Delegate != null && !Delegates.Contains(Delegate))
Delegates.Add(Delegate);
foreach (var child in Children) foreach (var child in Children)
child.Initialize(); child.Initialize();
} }
public void InitDelegates()
{
foreach(var d in Delegates)
Game.CreateObject<IWidgetDelegate>(d);
}
public Rectangle GetEventBounds() public Rectangle GetEventBounds()
{ {
return Children return Children
@@ -90,12 +95,6 @@ namespace OpenRA.Widgets
.Aggregate(Bounds, Rectangle.Union); .Aggregate(Bounds, Rectangle.Union);
} }
static IWidgetDelegate BindHandler(string name)
{
if (name == null) return null;
return Game.CreateObject<IWidgetDelegate>(name);
}
public virtual bool HandleInput(MouseInput mi) public virtual bool HandleInput(MouseInput mi)
{ {
// Are we able to handle this event? // Are we able to handle this event?
@@ -108,15 +107,15 @@ namespace OpenRA.Widgets
return true; return true;
// Mousedown // Mousedown
if (InputHandler.Value != null && mi.Event == MouseInputEvent.Down) if (mi.Event == MouseInputEvent.Down)
return OnMouseDown(mi); return OnMouseDown(mi);
// Mouseup // Mouseup
if (InputHandler.Value != null && mi.Event == MouseInputEvent.Up) if (mi.Event == MouseInputEvent.Up)
return OnMouseUp(mi); return OnMouseUp(mi);
// Mousemove // Mousemove
if (InputHandler.Value != null && mi.Event == MouseInputEvent.Move) if (mi.Event == MouseInputEvent.Move)
return OnMouseMove(mi); return OnMouseMove(mi);
return false; return false;
} }

View File

@@ -6,6 +6,7 @@ Container:
Y:(WINDOW_BOTTOM - HEIGHT)/2 Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:250 Width:250
Height:250 Height:250
Delegate:MainMenuButtonsDelegate
Children: Children:
Label@MAINMENU_LABEL_TITLE: Label@MAINMENU_LABEL_TITLE:
Id:MAINMENU_LABEL_TITLE Id:MAINMENU_LABEL_TITLE
@@ -22,7 +23,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Join Game Text:Join Game
Delegate:ServerBrowserDelegate
Button@MAINMENU_BUTTON_CREATE: Button@MAINMENU_BUTTON_CREATE:
Id:MAINMENU_BUTTON_CREATE Id:MAINMENU_BUTTON_CREATE
X:45 X:45
@@ -30,7 +30,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Create Game Text:Create Game
Delegate:CreateServerMenuDelegate
Button@MAINMENU_BUTTON_SETTINGS: Button@MAINMENU_BUTTON_SETTINGS:
Id:MAINMENU_BUTTON_SETTINGS Id:MAINMENU_BUTTON_SETTINGS
X:45 X:45
@@ -38,7 +37,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Settings Text:Settings
Delegate:SettingsMenuDelegate
Button@MAINMENU_BUTTON_QUIT: Button@MAINMENU_BUTTON_QUIT:
Id:MAINMENU_BUTTON_QUIT Id:MAINMENU_BUTTON_QUIT
X:45 X:45
@@ -46,9 +44,9 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Quit Text:Quit
Delegate:MainMenuButtonsDelegate
Background@CREATESERVER_BG: Background@CREATESERVER_BG:
Id:CREATESERVER_BG Id:CREATESERVER_BG
Delegate:CreateServerMenuDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2 Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:450 Width:450
@@ -70,7 +68,6 @@ Container:
Width:300 Width:300
Height:20 Height:20
Text:Advertise game Online Text:Advertise game Online
Delegate:CreateServerMenuDelegate
Button@CREATESERVER_BUTTON_START: Button@CREATESERVER_BUTTON_START:
Id:CREATESERVER_BUTTON_START Id:CREATESERVER_BUTTON_START
X:100 X:100
@@ -78,7 +75,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Create Text:Create
Delegate:CreateServerMenuDelegate
Button@CREATESERVER_BUTTON_CANCEL: Button@CREATESERVER_BUTTON_CANCEL:
Id:CREATESERVER_BUTTON_CANCEL Id:CREATESERVER_BUTTON_CANCEL
X:270 X:270
@@ -86,9 +82,9 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Cancel Text:Cancel
Delegate:CreateServerMenuDelegate
Background@SETTINGS_BG: Background@SETTINGS_BG:
Id:SETTINGS_BG Id:SETTINGS_BG
Delegate:SettingsMenuDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM- HEIGHT)/2 Y:(WINDOW_BOTTOM- HEIGHT)/2
Width: 450 Width: 450
@@ -110,7 +106,6 @@ Container:
Width:300 Width:300
Height:20 Height:20
Text:Show Occupied Cells Text:Show Occupied Cells
Delegate:SettingsMenuDelegate
Checkbox@SETTINGS_CHECKBOX_PATHDEBUG: Checkbox@SETTINGS_CHECKBOX_PATHDEBUG:
Id:SETTINGS_CHECKBOX_PATHDEBUG Id:SETTINGS_CHECKBOX_PATHDEBUG
X:100 X:100
@@ -118,7 +113,6 @@ Container:
Width:300 Width:300
Height:20 Height:20
Text:Show Unit Paths Text:Show Unit Paths
Delegate:SettingsMenuDelegate
Checkbox@SETTINGS_CHECKBOX_INDEXDEBUG: Checkbox@SETTINGS_CHECKBOX_INDEXDEBUG:
Id:SETTINGS_CHECKBOX_INDEXDEBUG Id:SETTINGS_CHECKBOX_INDEXDEBUG
X:100 X:100
@@ -126,7 +120,6 @@ Container:
Width:300 Width:300
Height:20 Height:20
Text:Show Spatial Index Debug Text:Show Spatial Index Debug
Delegate:SettingsMenuDelegate
Checkbox@SETTINGS_CHECKBOX_PERFGRAPH: Checkbox@SETTINGS_CHECKBOX_PERFGRAPH:
Id:SETTINGS_CHECKBOX_PERFGRAPH Id:SETTINGS_CHECKBOX_PERFGRAPH
X:100 X:100
@@ -134,7 +127,6 @@ Container:
Width:300 Width:300
Height:20 Height:20
Text:Show Performance Graph Text:Show Performance Graph
Delegate:SettingsMenuDelegate
Checkbox@SETTINGS_CHECKBOX_PERFTEXT: Checkbox@SETTINGS_CHECKBOX_PERFTEXT:
Id:SETTINGS_CHECKBOX_PERFTEXT Id:SETTINGS_CHECKBOX_PERFTEXT
X:100 X:100
@@ -142,7 +134,6 @@ Container:
Width:300 Width:300
Height:20 Height:20
Text:Show Performance Text Text:Show Performance Text
Delegate:SettingsMenuDelegate
Button@SETTINGS_BUTTON_OK: Button@SETTINGS_BUTTON_OK:
Id:SETTINGS_BUTTON_OK Id:SETTINGS_BUTTON_OK
X:PARENT_RIGHT - 180 X:PARENT_RIGHT - 180
@@ -150,9 +141,9 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:OK Text:OK
Delegate:SettingsMenuDelegate
Background@JOINSERVER_BG: Background@JOINSERVER_BG:
Id:JOINSERVER_BG Id:JOINSERVER_BG
Delegate:ServerBrowserDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2 Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:450 Width:450
@@ -174,7 +165,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Direct Connect 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
@@ -182,9 +172,9 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Cancel Text:Cancel
Delegate:ServerBrowserDelegate
Background@CONNECTION_FAILED_BG: Background@CONNECTION_FAILED_BG:
Id:CONNECTION_FAILED_BG Id:CONNECTION_FAILED_BG
Delegate:ConnectionDialogsDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2 Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:450 Width:450
@@ -207,7 +197,6 @@ Container:
Height:25 Height:25
Text:Could not connect to AAA.BBB.CCC.DDD:EEEE Text:Could not connect to AAA.BBB.CCC.DDD:EEEE
Align:Center Align:Center
Delegate:ConnectionDialogsDelegate
Button@CONNECTION_BUTTON_RETRY: Button@CONNECTION_BUTTON_RETRY:
Id:CONNECTION_BUTTON_RETRY Id:CONNECTION_BUTTON_RETRY
X:PARENT_RIGHT - 360 X:PARENT_RIGHT - 360
@@ -215,7 +204,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Retry Text:Retry
Delegate:ConnectionDialogsDelegate
Button@CONNECTION_BUTTON_CANCEL: Button@CONNECTION_BUTTON_CANCEL:
Id:CONNECTION_BUTTON_CANCEL Id:CONNECTION_BUTTON_CANCEL
X:PARENT_RIGHT - 180 X:PARENT_RIGHT - 180
@@ -223,9 +211,9 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Cancel Text:Cancel
Delegate:ConnectionDialogsDelegate
Background@CONNECTING_BG: Background@CONNECTING_BG:
Id:CONNECTING_BG Id:CONNECTING_BG
Delegate:ConnectionDialogsDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2 Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:450 Width:450
@@ -248,7 +236,6 @@ Container:
Height:25 Height:25
Text:Connecting to AAA.BBB.CCC.DDD:EEEE... Text:Connecting to AAA.BBB.CCC.DDD:EEEE...
Align:Center Align:Center
Delegate:ConnectionDialogsDelegate
Button@CONNECTION_BUTTON_ABORT: Button@CONNECTION_BUTTON_ABORT:
Id:CONNECTION_BUTTON_ABORT Id:CONNECTION_BUTTON_ABORT
X:PARENT_RIGHT - 180 X:PARENT_RIGHT - 180
@@ -256,16 +243,28 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Abort Text:Abort
Delegate:ConnectionDialogsDelegate
Container@INGAME_ROOT: Container@INGAME_ROOT:
Id:INGAME_ROOT Id:INGAME_ROOT
Delegate:IngameChromeDelegate
Visible:false Visible:false
Children: Children:
PerfGraph@PERFGRAPH:
Id:PERFGRAPH
X:10
Y:WINDOW_BOTTOM - 250
Width:200
Height:200
Label@PERFTEXT:
Id:PERFTEXT
Bold: false
X:10
Y:WINDOW_BOTTOM - 40
Width:200
Height:100
SpecialPowerBin@INGAME_POWERS_BIN: SpecialPowerBin@INGAME_POWERS_BIN:
Id:INGAME_POWERS_BIN Id:INGAME_POWERS_BIN
X:0 X:0
Y:25 Y:25
Delegate:IngameChromeDelegate
Button@INGAME_OPTIONS_BUTTON: Button@INGAME_OPTIONS_BUTTON:
Id:INGAME_OPTIONS_BUTTON Id:INGAME_OPTIONS_BUTTON
X:0 X:0
@@ -273,7 +272,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Options Text:Options
Delegate:IngameChromeDelegate
Background@INGAME_OPTIONS_BG: Background@INGAME_OPTIONS_BG:
Id:INGAME_OPTIONS_BG Id:INGAME_OPTIONS_BG
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
@@ -297,7 +295,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Settings Text:Settings
Delegate:IngameChromeDelegate
Button@BUTTON_DISCONNECT: Button@BUTTON_DISCONNECT:
Id:BUTTON_DISCONNECT Id:BUTTON_DISCONNECT
X:(PARENT_RIGHT - WIDTH)/2 X:(PARENT_RIGHT - WIDTH)/2
@@ -305,7 +302,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Disconnect Text:Disconnect
Delegate:IngameChromeDelegate
Button@BUTTON_QUIT: Button@BUTTON_QUIT:
Id:BUTTON_QUIT Id:BUTTON_QUIT
X:(PARENT_RIGHT - WIDTH)/2 X:(PARENT_RIGHT - WIDTH)/2
@@ -313,4 +309,34 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Quit Text:Quit
Delegate:IngameChromeDelegate Background@MUSIC_BG:
Id:MUSIC_BG
Delegate:MusicPlayerDelegate
X:WINDOW_RIGHT - 100
Y:WINDOW_BOTTOM - 65
Width: 90
Height: 55
Visible: true
Children:
Button@BUTTON_PLAY:
Id:BUTTON_PLAY
Visible:false
X:15
Y:15
Width:25
Height:25
Text:|>
Button@BUTTON_PAUSE:
Id:BUTTON_PAUSE
X:15
Y:15
Width:25
Height:25
Text:||
Button@BUTTON_STOP:
Id:BUTTON_STOP
X:50
Y:15
Width:25
Height:25
Text:[]

View File

@@ -6,6 +6,7 @@ Container:
Y:(WINDOW_BOTTOM - HEIGHT)/2 Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:250 Width:250
Height:250 Height:250
Delegate:MainMenuButtonsDelegate
Children: Children:
Label@MAINMENU_LABEL_TITLE: Label@MAINMENU_LABEL_TITLE:
Id:MAINMENU_LABEL_TITLE Id:MAINMENU_LABEL_TITLE
@@ -22,7 +23,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Join Game Text:Join Game
Delegate:ServerBrowserDelegate
Button@MAINMENU_BUTTON_CREATE: Button@MAINMENU_BUTTON_CREATE:
Id:MAINMENU_BUTTON_CREATE Id:MAINMENU_BUTTON_CREATE
X:45 X:45
@@ -30,7 +30,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Create Game Text:Create Game
Delegate:CreateServerMenuDelegate
Button@MAINMENU_BUTTON_SETTINGS: Button@MAINMENU_BUTTON_SETTINGS:
Id:MAINMENU_BUTTON_SETTINGS Id:MAINMENU_BUTTON_SETTINGS
X:45 X:45
@@ -38,7 +37,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Settings Text:Settings
Delegate:SettingsMenuDelegate
Button@MAINMENU_BUTTON_QUIT: Button@MAINMENU_BUTTON_QUIT:
Id:MAINMENU_BUTTON_QUIT Id:MAINMENU_BUTTON_QUIT
X:45 X:45
@@ -46,9 +44,9 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Quit Text:Quit
Delegate:MainMenuButtonsDelegate
Background@CREATESERVER_BG: Background@CREATESERVER_BG:
Id:CREATESERVER_BG Id:CREATESERVER_BG
Delegate:CreateServerMenuDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2 Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:450 Width:450
@@ -70,7 +68,6 @@ Container:
Width:300 Width:300
Height:20 Height:20
Text:Advertise game Online Text:Advertise game Online
Delegate:CreateServerMenuDelegate
Button@CREATESERVER_BUTTON_START: Button@CREATESERVER_BUTTON_START:
Id:CREATESERVER_BUTTON_START Id:CREATESERVER_BUTTON_START
X:100 X:100
@@ -78,7 +75,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Create Text:Create
Delegate:CreateServerMenuDelegate
Button@CREATESERVER_BUTTON_CANCEL: Button@CREATESERVER_BUTTON_CANCEL:
Id:CREATESERVER_BUTTON_CANCEL Id:CREATESERVER_BUTTON_CANCEL
X:270 X:270
@@ -86,9 +82,9 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Cancel Text:Cancel
Delegate:CreateServerMenuDelegate
Background@SETTINGS_BG: Background@SETTINGS_BG:
Id:SETTINGS_BG Id:SETTINGS_BG
Delegate:SettingsMenuDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM- HEIGHT)/2 Y:(WINDOW_BOTTOM- HEIGHT)/2
Width: 450 Width: 450
@@ -110,7 +106,6 @@ Container:
Width:300 Width:300
Height:20 Height:20
Text:Show Occupied Cells Text:Show Occupied Cells
Delegate:SettingsMenuDelegate
Checkbox@SETTINGS_CHECKBOX_PATHDEBUG: Checkbox@SETTINGS_CHECKBOX_PATHDEBUG:
Id:SETTINGS_CHECKBOX_PATHDEBUG Id:SETTINGS_CHECKBOX_PATHDEBUG
X:100 X:100
@@ -118,7 +113,6 @@ Container:
Width:300 Width:300
Height:20 Height:20
Text:Show Unit Paths Text:Show Unit Paths
Delegate:SettingsMenuDelegate
Checkbox@SETTINGS_CHECKBOX_INDEXDEBUG: Checkbox@SETTINGS_CHECKBOX_INDEXDEBUG:
Id:SETTINGS_CHECKBOX_INDEXDEBUG Id:SETTINGS_CHECKBOX_INDEXDEBUG
X:100 X:100
@@ -126,7 +120,6 @@ Container:
Width:300 Width:300
Height:20 Height:20
Text:Show Spatial Index Debug Text:Show Spatial Index Debug
Delegate:SettingsMenuDelegate
Checkbox@SETTINGS_CHECKBOX_PERFGRAPH: Checkbox@SETTINGS_CHECKBOX_PERFGRAPH:
Id:SETTINGS_CHECKBOX_PERFGRAPH Id:SETTINGS_CHECKBOX_PERFGRAPH
X:100 X:100
@@ -134,7 +127,6 @@ Container:
Width:300 Width:300
Height:20 Height:20
Text:Show Performance Graph Text:Show Performance Graph
Delegate:SettingsMenuDelegate
Checkbox@SETTINGS_CHECKBOX_PERFTEXT: Checkbox@SETTINGS_CHECKBOX_PERFTEXT:
Id:SETTINGS_CHECKBOX_PERFTEXT Id:SETTINGS_CHECKBOX_PERFTEXT
X:100 X:100
@@ -142,7 +134,6 @@ Container:
Width:300 Width:300
Height:20 Height:20
Text:Show Performance Text Text:Show Performance Text
Delegate:SettingsMenuDelegate
Button@SETTINGS_BUTTON_OK: Button@SETTINGS_BUTTON_OK:
Id:SETTINGS_BUTTON_OK Id:SETTINGS_BUTTON_OK
X:PARENT_RIGHT - 180 X:PARENT_RIGHT - 180
@@ -150,9 +141,9 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:OK Text:OK
Delegate:SettingsMenuDelegate
Background@JOINSERVER_BG: Background@JOINSERVER_BG:
Id:JOINSERVER_BG Id:JOINSERVER_BG
Delegate:ServerBrowserDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2 Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:450 Width:450
@@ -174,7 +165,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Direct Connect 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
@@ -182,9 +172,9 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Cancel Text:Cancel
Delegate:ServerBrowserDelegate
Background@CONNECTION_FAILED_BG: Background@CONNECTION_FAILED_BG:
Id:CONNECTION_FAILED_BG Id:CONNECTION_FAILED_BG
Delegate:ConnectionDialogsDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2 Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:450 Width:450
@@ -207,7 +197,6 @@ Container:
Height:25 Height:25
Text:Could not connect to AAA.BBB.CCC.DDD:EEEE Text:Could not connect to AAA.BBB.CCC.DDD:EEEE
Align:Center Align:Center
Delegate:ConnectionDialogsDelegate
Button@CONNECTION_BUTTON_RETRY: Button@CONNECTION_BUTTON_RETRY:
Id:CONNECTION_BUTTON_RETRY Id:CONNECTION_BUTTON_RETRY
X:PARENT_RIGHT - 360 X:PARENT_RIGHT - 360
@@ -215,7 +204,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Retry Text:Retry
Delegate:ConnectionDialogsDelegate
Button@CONNECTION_BUTTON_CANCEL: Button@CONNECTION_BUTTON_CANCEL:
Id:CONNECTION_BUTTON_CANCEL Id:CONNECTION_BUTTON_CANCEL
X:PARENT_RIGHT - 180 X:PARENT_RIGHT - 180
@@ -223,9 +211,9 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Cancel Text:Cancel
Delegate:ConnectionDialogsDelegate
Background@CONNECTING_BG: Background@CONNECTING_BG:
Id:CONNECTING_BG Id:CONNECTING_BG
Delegate:ConnectionDialogsDelegate
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
Y:(WINDOW_BOTTOM - HEIGHT)/2 Y:(WINDOW_BOTTOM - HEIGHT)/2
Width:450 Width:450
@@ -248,7 +236,6 @@ Container:
Height:25 Height:25
Text:Connecting to AAA.BBB.CCC.DDD:EEEE... Text:Connecting to AAA.BBB.CCC.DDD:EEEE...
Align:Center Align:Center
Delegate:ConnectionDialogsDelegate
Button@CONNECTION_BUTTON_ABORT: Button@CONNECTION_BUTTON_ABORT:
Id:CONNECTION_BUTTON_ABORT Id:CONNECTION_BUTTON_ABORT
X:PARENT_RIGHT - 180 X:PARENT_RIGHT - 180
@@ -256,9 +243,9 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Abort Text:Abort
Delegate:ConnectionDialogsDelegate
Container@INGAME_ROOT: Container@INGAME_ROOT:
Id:INGAME_ROOT Id:INGAME_ROOT
Delegate:IngameChromeDelegate
Visible:false Visible:false
Children: Children:
PerfGraph@PERFGRAPH: PerfGraph@PERFGRAPH:
@@ -267,7 +254,6 @@ Container:
Y:WINDOW_BOTTOM - 250 Y:WINDOW_BOTTOM - 250
Width:200 Width:200
Height:200 Height:200
Delegate:IngameChromeDelegate
Label@PERFTEXT: Label@PERFTEXT:
Id:PERFTEXT Id:PERFTEXT
Bold: false Bold: false
@@ -275,12 +261,10 @@ Container:
Y:WINDOW_BOTTOM - 40 Y:WINDOW_BOTTOM - 40
Width:200 Width:200
Height:100 Height:100
Delegate:IngameChromeDelegate
SpecialPowerBin@INGAME_POWERS_BIN: SpecialPowerBin@INGAME_POWERS_BIN:
Id:INGAME_POWERS_BIN Id:INGAME_POWERS_BIN
X:0 X:0
Y:25 Y:25
Delegate:IngameChromeDelegate
Button@INGAME_OPTIONS_BUTTON: Button@INGAME_OPTIONS_BUTTON:
Id:INGAME_OPTIONS_BUTTON Id:INGAME_OPTIONS_BUTTON
X:0 X:0
@@ -288,7 +272,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Options Text:Options
Delegate:IngameChromeDelegate
Background@INGAME_OPTIONS_BG: Background@INGAME_OPTIONS_BG:
Id:INGAME_OPTIONS_BG Id:INGAME_OPTIONS_BG
X:(WINDOW_RIGHT - WIDTH)/2 X:(WINDOW_RIGHT - WIDTH)/2
@@ -312,7 +295,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Settings Text:Settings
Delegate:IngameChromeDelegate
Button@BUTTON_DISCONNECT: Button@BUTTON_DISCONNECT:
Id:BUTTON_DISCONNECT Id:BUTTON_DISCONNECT
X:(PARENT_RIGHT - WIDTH)/2 X:(PARENT_RIGHT - WIDTH)/2
@@ -320,7 +302,6 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Disconnect Text:Disconnect
Delegate:IngameChromeDelegate
Button@BUTTON_QUIT: Button@BUTTON_QUIT:
Id:BUTTON_QUIT Id:BUTTON_QUIT
X:(PARENT_RIGHT - WIDTH)/2 X:(PARENT_RIGHT - WIDTH)/2
@@ -328,9 +309,9 @@ Container:
Width:160 Width:160
Height:25 Height:25
Text:Quit Text:Quit
Delegate:IngameChromeDelegate
Background@MUSIC_BG: Background@MUSIC_BG:
Id:MUSIC_BG Id:MUSIC_BG
Delegate:MusicPlayerDelegate
X:WINDOW_RIGHT - 100 X:WINDOW_RIGHT - 100
Y:WINDOW_BOTTOM - 65 Y:WINDOW_BOTTOM - 65
Width: 90 Width: 90
@@ -345,7 +326,6 @@ Container:
Width:25 Width:25
Height:25 Height:25
Text:|> Text:|>
Delegate:MusicPlayerDelegate
Button@BUTTON_PAUSE: Button@BUTTON_PAUSE:
Id:BUTTON_PAUSE Id:BUTTON_PAUSE
X:15 X:15
@@ -353,7 +333,6 @@ Container:
Width:25 Width:25
Height:25 Height:25
Text:|| Text:||
Delegate:MusicPlayerDelegate
Button@BUTTON_STOP: Button@BUTTON_STOP:
Id:BUTTON_STOP Id:BUTTON_STOP
X:50 X:50
@@ -361,4 +340,3 @@ Container:
Width:25 Width:25
Height:25 Height:25
Text:[] Text:[]
Delegate:MusicPlayerDelegate