Update Button references
This commit is contained in:
@@ -91,14 +91,14 @@ namespace Content.Client.Construction
|
|||||||
BuildButton = new Button
|
BuildButton = new Button
|
||||||
{
|
{
|
||||||
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
||||||
TextAlign = Button.AlignMode.Center,
|
TextAlign = Label.AlignMode.Center,
|
||||||
Text = "Build!",
|
Text = "Build!",
|
||||||
Disabled = true,
|
Disabled = true,
|
||||||
ToggleMode = false
|
ToggleMode = false
|
||||||
};
|
};
|
||||||
EraseButton = new Button
|
EraseButton = new Button
|
||||||
{
|
{
|
||||||
TextAlign = Button.AlignMode.Center, Text = "Clear Ghosts", ToggleMode = true
|
TextAlign = Label.AlignMode.Center, Text = "Clear Ghosts", ToggleMode = true
|
||||||
};
|
};
|
||||||
buttonsContainer.AddChild(BuildButton);
|
buttonsContainer.AddChild(BuildButton);
|
||||||
buttonsContainer.AddChild(EraseButton);
|
buttonsContainer.AddChild(EraseButton);
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ namespace Content.Client.Instruments
|
|||||||
midiInputButton = new Button()
|
midiInputButton = new Button()
|
||||||
{
|
{
|
||||||
Text = "MIDI Input",
|
Text = "MIDI Input",
|
||||||
TextAlign = Button.AlignMode.Center,
|
TextAlign = Label.AlignMode.Center,
|
||||||
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
||||||
SizeFlagsStretchRatio = 1,
|
SizeFlagsStretchRatio = 1,
|
||||||
ToggleMode = true,
|
ToggleMode = true,
|
||||||
@@ -74,7 +74,7 @@ namespace Content.Client.Instruments
|
|||||||
var midiFileButton = new Button()
|
var midiFileButton = new Button()
|
||||||
{
|
{
|
||||||
Text = "Open File",
|
Text = "Open File",
|
||||||
TextAlign = Button.AlignMode.Center,
|
TextAlign = Label.AlignMode.Center,
|
||||||
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
||||||
SizeFlagsStretchRatio = 1,
|
SizeFlagsStretchRatio = 1,
|
||||||
};
|
};
|
||||||
@@ -92,7 +92,7 @@ namespace Content.Client.Instruments
|
|||||||
midiLoopButton = new Button()
|
midiLoopButton = new Button()
|
||||||
{
|
{
|
||||||
Text = "Loop",
|
Text = "Loop",
|
||||||
TextAlign = Button.AlignMode.Center,
|
TextAlign = Label.AlignMode.Center,
|
||||||
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
||||||
SizeFlagsStretchRatio = 1,
|
SizeFlagsStretchRatio = 1,
|
||||||
ToggleMode = true,
|
ToggleMode = true,
|
||||||
@@ -111,7 +111,7 @@ namespace Content.Client.Instruments
|
|||||||
midiStopButton = new Button()
|
midiStopButton = new Button()
|
||||||
{
|
{
|
||||||
Text = "Stop",
|
Text = "Stop",
|
||||||
TextAlign = Button.AlignMode.Center,
|
TextAlign = Label.AlignMode.Center,
|
||||||
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
||||||
SizeFlagsStretchRatio = 1,
|
SizeFlagsStretchRatio = 1,
|
||||||
Disabled = !_owner.Instrument.IsMidiOpen,
|
Disabled = !_owner.Instrument.IsMidiOpen,
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ namespace Content.Client.Research
|
|||||||
QueueButton = new Button()
|
QueueButton = new Button()
|
||||||
{
|
{
|
||||||
Text = "Queue",
|
Text = "Queue",
|
||||||
TextAlign = Button.AlignMode.Center,
|
TextAlign = Label.AlignMode.Center,
|
||||||
SizeFlagsHorizontal = SizeFlags.Fill,
|
SizeFlagsHorizontal = SizeFlags.Fill,
|
||||||
SizeFlagsStretchRatio = 1,
|
SizeFlagsStretchRatio = 1,
|
||||||
};
|
};
|
||||||
@@ -73,7 +73,7 @@ namespace Content.Client.Research
|
|||||||
ServerConnectButton = new Button()
|
ServerConnectButton = new Button()
|
||||||
{
|
{
|
||||||
Text = "Server list",
|
Text = "Server list",
|
||||||
TextAlign = Button.AlignMode.Center,
|
TextAlign = Label.AlignMode.Center,
|
||||||
SizeFlagsHorizontal = SizeFlags.Fill,
|
SizeFlagsHorizontal = SizeFlags.Fill,
|
||||||
SizeFlagsStretchRatio = 1,
|
SizeFlagsStretchRatio = 1,
|
||||||
};
|
};
|
||||||
@@ -81,7 +81,7 @@ namespace Content.Client.Research
|
|||||||
ServerSyncButton = new Button()
|
ServerSyncButton = new Button()
|
||||||
{
|
{
|
||||||
Text = "Sync",
|
Text = "Sync",
|
||||||
TextAlign = Button.AlignMode.Center,
|
TextAlign = Label.AlignMode.Center,
|
||||||
SizeFlagsHorizontal = SizeFlags.Fill,
|
SizeFlagsHorizontal = SizeFlags.Fill,
|
||||||
SizeFlagsStretchRatio = 1,
|
SizeFlagsStretchRatio = 1,
|
||||||
};
|
};
|
||||||
@@ -111,7 +111,7 @@ namespace Content.Client.Research
|
|||||||
var filterButton = new Button()
|
var filterButton = new Button()
|
||||||
{
|
{
|
||||||
Text = "Filter",
|
Text = "Filter",
|
||||||
TextAlign = Button.AlignMode.Center,
|
TextAlign = Label.AlignMode.Center,
|
||||||
SizeFlagsHorizontal = SizeFlags.Fill,
|
SizeFlagsHorizontal = SizeFlags.Fill,
|
||||||
SizeFlagsStretchRatio = 1,
|
SizeFlagsStretchRatio = 1,
|
||||||
Disabled = true,
|
Disabled = true,
|
||||||
|
|||||||
@@ -98,13 +98,13 @@ namespace Content.Client.UserInterface.Cargo
|
|||||||
CallShuttleButton = new Button()
|
CallShuttleButton = new Button()
|
||||||
{
|
{
|
||||||
Text = _loc.GetString("Call Shuttle"),
|
Text = _loc.GetString("Call Shuttle"),
|
||||||
TextAlign = Button.AlignMode.Center,
|
TextAlign = Label.AlignMode.Center,
|
||||||
SizeFlagsHorizontal = SizeFlags.FillExpand
|
SizeFlagsHorizontal = SizeFlags.FillExpand
|
||||||
};
|
};
|
||||||
PermissionsButton = new Button()
|
PermissionsButton = new Button()
|
||||||
{
|
{
|
||||||
Text = _loc.GetString("Permissions"),
|
Text = _loc.GetString("Permissions"),
|
||||||
TextAlign = Button.AlignMode.Center
|
TextAlign = Label.AlignMode.Center
|
||||||
};
|
};
|
||||||
buttons.AddChild(CallShuttleButton);
|
buttons.AddChild(CallShuttleButton);
|
||||||
buttons.AddChild(PermissionsButton);
|
buttons.AddChild(PermissionsButton);
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ namespace Content.Client.UserInterface.Cargo
|
|||||||
SubmitButton = new Button()
|
SubmitButton = new Button()
|
||||||
{
|
{
|
||||||
Text = _loc.GetString("OK"),
|
Text = _loc.GetString("OK"),
|
||||||
TextAlign = Button.AlignMode.Center,
|
TextAlign = Label.AlignMode.Center,
|
||||||
};
|
};
|
||||||
vBox.AddChild(SubmitButton);
|
vBox.AddChild(SubmitButton);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user