Nonfunctional settings panel prototype
This commit is contained in:
@@ -17,133 +17,35 @@ namespace OpenRA.Mods.Cnc.Widgets
|
|||||||
{
|
{
|
||||||
public class CncSettingsLogic : IWidgetDelegate
|
public class CncSettingsLogic : IWidgetDelegate
|
||||||
{
|
{
|
||||||
Widget bg;
|
enum PanelType
|
||||||
|
{
|
||||||
|
General,
|
||||||
|
Input
|
||||||
|
}
|
||||||
|
PanelType Settings = PanelType.General;
|
||||||
|
|
||||||
[ObjectCreator.UseCtor]
|
[ObjectCreator.UseCtor]
|
||||||
public CncSettingsLogic([ObjectCreator.Param] Widget widget,
|
public CncSettingsLogic([ObjectCreator.Param] Widget widget,
|
||||||
[ObjectCreator.Param] Action onExit)
|
[ObjectCreator.Param] Action onExit)
|
||||||
{
|
{
|
||||||
bg = widget.GetWidget("SETTINGS_PANEL");
|
|
||||||
var tabs = bg.GetWidget<ContainerWidget>("TAB_CONTAINER");
|
|
||||||
|
|
||||||
//Tabs
|
var panel = widget.GetWidget("SETTINGS_PANEL");
|
||||||
tabs.GetWidget<ButtonWidget>("GENERAL").OnMouseUp = mi => FlipToTab("GENERAL_PANE");
|
|
||||||
tabs.GetWidget<ButtonWidget>("AUDIO").OnMouseUp = mi => FlipToTab("AUDIO_PANE");
|
|
||||||
tabs.GetWidget<ButtonWidget>("DISPLAY").OnMouseUp = mi => FlipToTab("DISPLAY_PANE");
|
|
||||||
tabs.GetWidget<ButtonWidget>("DEBUG").OnMouseUp = mi => FlipToTab("DEBUG_PANE");
|
|
||||||
FlipToTab("GENERAL_PANE");
|
|
||||||
|
|
||||||
//General
|
panel.GetWidget<CncMenuButtonWidget>("SAVE_BUTTON").OnClick = () => {
|
||||||
var general = bg.GetWidget("GENERAL_PANE");
|
|
||||||
|
|
||||||
var name = general.GetWidget<TextFieldWidget>("NAME");
|
|
||||||
name.Text = Game.Settings.Player.Name;
|
|
||||||
name.OnLoseFocus = () =>
|
|
||||||
{
|
|
||||||
name.Text = name.Text.Trim();
|
|
||||||
|
|
||||||
if (name.Text.Length == 0)
|
|
||||||
name.Text = Game.Settings.Player.Name;
|
|
||||||
else
|
|
||||||
Game.Settings.Player.Name = name.Text;
|
|
||||||
};
|
|
||||||
name.OnEnterKey = () => { name.LoseFocus(); return true; };
|
|
||||||
|
|
||||||
general.GetWidget<CheckboxWidget>("EDGE_SCROLL").Bind(Game.Settings.Game, "ViewportEdgeScroll");
|
|
||||||
|
|
||||||
// Added scroll sensitivity - Gecko
|
|
||||||
var edgeScrollSlider = general.GetWidget<SliderWidget>("EDGE_SCROLL_AMOUNT");
|
|
||||||
if (edgeScrollSlider != null) // Backwards compatible - Gecko
|
|
||||||
{
|
|
||||||
edgeScrollSlider.SetOffset(Game.Settings.Game.ViewportEdgeScrollStep);
|
|
||||||
edgeScrollSlider.OnChange += _ => { Game.Settings.Game.ViewportEdgeScrollStep = edgeScrollSlider.GetOffset(); };
|
|
||||||
Game.Settings.Game.ViewportEdgeScrollStep = edgeScrollSlider.GetOffset();
|
|
||||||
}
|
|
||||||
|
|
||||||
general.GetWidget<CheckboxWidget>("INVERSE_SCROLL").Bind(Game.Settings.Game, "InverseDragScroll");
|
|
||||||
general.GetWidget<CheckboxWidget>("TEAMCHAT_TOGGLE").Bind(Game.Settings.Game, "TeamChatToggle");
|
|
||||||
|
|
||||||
|
|
||||||
// Audio
|
|
||||||
var audio = bg.GetWidget("AUDIO_PANE");
|
|
||||||
|
|
||||||
var soundslider = audio.GetWidget<SliderWidget>("SOUND_VOLUME");
|
|
||||||
soundslider.OnChange += x => { Sound.SoundVolume = x; };
|
|
||||||
soundslider.GetOffset = () => { return Sound.SoundVolume; };
|
|
||||||
soundslider.SetOffset(Sound.SoundVolume);
|
|
||||||
|
|
||||||
var musicslider = audio.GetWidget<SliderWidget>("MUSIC_VOLUME");
|
|
||||||
musicslider.OnChange += x => { Sound.MusicVolume = x; };
|
|
||||||
musicslider.GetOffset = () => { return Sound.MusicVolume; };
|
|
||||||
musicslider.SetOffset(Sound.MusicVolume);
|
|
||||||
|
|
||||||
|
|
||||||
// Display
|
|
||||||
var display = bg.GetWidget("DISPLAY_PANE");
|
|
||||||
display.GetWidget<CheckboxWidget>("FULLSCREEN_CHECKBOX").Bind(Game.Settings.Game, "TeamChatToggle");
|
|
||||||
|
|
||||||
var fullscreen = display.GetWidget<CheckboxWidget>("FULLSCREEN_CHECKBOX");
|
|
||||||
fullscreen.IsChecked = () => Game.Settings.Graphics.Mode != WindowMode.Windowed;
|
|
||||||
fullscreen.OnChange += c => Game.Settings.Graphics.Mode = (Game.Settings.Graphics.Mode == WindowMode.Windowed) ? WindowMode.PseudoFullscreen : WindowMode.Windowed;
|
|
||||||
|
|
||||||
var width = display.GetWidget<TextFieldWidget>("SCREEN_WIDTH");
|
|
||||||
Game.Settings.Graphics.WindowedSize.X = (Game.Settings.Graphics.WindowedSize.X < Game.Settings.Graphics.MinResolution.X)?
|
|
||||||
Game.Settings.Graphics.MinResolution.X : Game.Settings.Graphics.WindowedSize.X;
|
|
||||||
width.Text = Game.Settings.Graphics.WindowedSize.X.ToString();
|
|
||||||
width.OnLoseFocus = () =>
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
var w = int.Parse(width.Text);
|
|
||||||
if (w > Game.Settings.Graphics.MinResolution.X)
|
|
||||||
Game.Settings.Graphics.WindowedSize = new int2(w, Game.Settings.Graphics.WindowedSize.Y);
|
|
||||||
}
|
|
||||||
catch (FormatException) {
|
|
||||||
width.Text = Game.Settings.Graphics.WindowedSize.X.ToString();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
width.OnEnterKey = () => { width.LoseFocus(); return true; };
|
|
||||||
|
|
||||||
var height = display.GetWidget<TextFieldWidget>("SCREEN_HEIGHT");
|
|
||||||
Game.Settings.Graphics.WindowedSize.Y = (Game.Settings.Graphics.WindowedSize.Y < Game.Settings.Graphics.MinResolution.Y)?
|
|
||||||
Game.Settings.Graphics.MinResolution.Y : Game.Settings.Graphics.WindowedSize.Y;
|
|
||||||
height.Text = Game.Settings.Graphics.WindowedSize.Y.ToString();
|
|
||||||
height.OnLoseFocus = () =>
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
var h = int.Parse(height.Text);
|
|
||||||
if (h > Game.Settings.Graphics.MinResolution.Y)
|
|
||||||
Game.Settings.Graphics.WindowedSize = new int2(Game.Settings.Graphics.WindowedSize.X, h);
|
|
||||||
else
|
|
||||||
height.Text = Game.Settings.Graphics.WindowedSize.Y.ToString();
|
|
||||||
}
|
|
||||||
catch (FormatException) {
|
|
||||||
height.Text = Game.Settings.Graphics.WindowedSize.Y.ToString();
|
|
||||||
}
|
|
||||||
};
|
|
||||||
height.OnEnterKey = () => { height.LoseFocus(); return true; };
|
|
||||||
|
|
||||||
// Debug
|
|
||||||
var debug = bg.GetWidget("DEBUG_PANE");
|
|
||||||
debug.GetWidget<CheckboxWidget>("PERFDEBUG_CHECKBOX").Bind(Game.Settings.Debug, "PerfGraph");
|
|
||||||
debug.GetWidget<CheckboxWidget>("GAMETIME_CHECKBOX").Bind(Game.Settings.Game, "MatchTimer");
|
|
||||||
debug.GetWidget<CheckboxWidget>("CHECKUNSYNCED_CHECKBOX").Bind(Game.Settings.Debug, "SanityCheckUnsyncedCode");
|
|
||||||
|
|
||||||
bg.GetWidget<CncMenuButtonWidget>("BUTTON_CLOSE").OnClick = () => {
|
|
||||||
Game.Settings.Save();
|
|
||||||
Widget.CloseWindow();
|
Widget.CloseWindow();
|
||||||
onExit();
|
onExit();
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
string open = null;
|
panel.GetWidget("GENERAL_CONTROLS").IsVisible = () => Settings == PanelType.General;
|
||||||
bool FlipToTab(string id)
|
panel.GetWidget("INPUT_CONTROLS").IsVisible = () => Settings == PanelType.Input;
|
||||||
{
|
|
||||||
if (open != null)
|
|
||||||
bg.GetWidget(open).Visible = false;
|
|
||||||
|
|
||||||
open = id;
|
var inputButton = panel.GetWidget<CncMenuButtonWidget>("INPUT_BUTTON");
|
||||||
bg.GetWidget(open).Visible = true;
|
inputButton.OnClick = () => Settings = PanelType.Input;
|
||||||
return true;
|
inputButton.IsDisabled = () => Settings == PanelType.Input;
|
||||||
|
|
||||||
|
var generalButton = panel.GetWidget<CncMenuButtonWidget>("GENERAL_BUTTON");
|
||||||
|
generalButton.OnClick = () => Settings = PanelType.General;
|
||||||
|
generalButton.IsDisabled = () => Settings == PanelType.General;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,226 +1,344 @@
|
|||||||
Background@SETTINGS_PANEL:
|
Container@SETTINGS_PANEL:
|
||||||
Id:SETTINGS_PANEL
|
Id:SETTINGS_PANEL
|
||||||
Delegate:CncSettingsLogic
|
Delegate:CncSettingsLogic
|
||||||
X:(WINDOW_RIGHT - WIDTH)/2
|
X:(WINDOW_RIGHT - WIDTH)/2
|
||||||
Y:(WINDOW_BOTTOM- HEIGHT)/2
|
Y:(WINDOW_BOTTOM - 250)/2
|
||||||
Width: 450
|
Width:740
|
||||||
Height: 350
|
Height:535
|
||||||
Children:
|
Children:
|
||||||
Label@SETTINGS_LABEL_TITLE:
|
Label@TITLE:
|
||||||
Id:SETTINGS_LABEL_TITLE
|
Width:740
|
||||||
X:0
|
Y:0-25
|
||||||
Y:20
|
Font:BigBold
|
||||||
Width:450
|
Contrast:true
|
||||||
Height:25
|
|
||||||
Text:Settings
|
|
||||||
Align:Center
|
Align:Center
|
||||||
Bold:True
|
Text:Settings
|
||||||
CncMenuButton@BUTTON_CLOSE:
|
Background@GENERAL_CONTROLS:
|
||||||
Id:BUTTON_CLOSE
|
Id:GENERAL_CONTROLS
|
||||||
X:PARENT_RIGHT - 180
|
Width:740
|
||||||
Y:PARENT_BOTTOM - 45
|
Height:250
|
||||||
Width:160
|
Background:panel-black
|
||||||
Height:25
|
|
||||||
Text:Close
|
|
||||||
Bold:True
|
|
||||||
Container@TAB_CONTAINER:
|
|
||||||
Id:TAB_CONTAINER
|
|
||||||
X:0
|
|
||||||
Y:50
|
|
||||||
Width:PARENT_RIGHT
|
|
||||||
Height:25
|
|
||||||
Children:
|
Children:
|
||||||
Button@GENERAL:
|
Label@TITLE:
|
||||||
Id:GENERAL
|
X:15
|
||||||
X:45
|
Y:20
|
||||||
Y:0
|
Font:Bold
|
||||||
Width:90
|
Text:Player Profile
|
||||||
|
Align:Center
|
||||||
|
Width:340
|
||||||
|
Label@NAME_LABEL:
|
||||||
|
X:15
|
||||||
|
Y:39
|
||||||
|
Width:45
|
||||||
Height:25
|
Height:25
|
||||||
Text:General
|
Align:Right
|
||||||
Bold:True
|
Text:Name:
|
||||||
Button@AUDIO:
|
CncTextField@NAME_TEXTFIELD:
|
||||||
Id:AUDIO
|
Id:NAME_TEXTFIELD
|
||||||
X:135
|
X:65
|
||||||
Y:0
|
Y:40
|
||||||
Width:90
|
Width:205
|
||||||
Height:25
|
Height:25
|
||||||
Text:Audio
|
|
||||||
Bold:True
|
|
||||||
Button@DISPLAY:
|
|
||||||
Id:DISPLAY
|
|
||||||
X:225
|
|
||||||
Y:0
|
|
||||||
Width:90
|
|
||||||
Height:25
|
|
||||||
Text:Display
|
|
||||||
Bold:True
|
|
||||||
Button@DEBUG:
|
|
||||||
Id:DEBUG
|
|
||||||
X:315
|
|
||||||
Y:0
|
|
||||||
Width:90
|
|
||||||
Height:25
|
|
||||||
Text:Debug
|
|
||||||
Bold:True
|
|
||||||
Container@GENERAL_PANE:
|
|
||||||
Id:GENERAL_PANE
|
|
||||||
X:37
|
|
||||||
Y:100
|
|
||||||
Width:PARENT_RIGHT - 37
|
|
||||||
Height:PARENT_BOTTOM - 100
|
|
||||||
Visible: true
|
|
||||||
Children:
|
|
||||||
Label@SETTINGS_PLAYER_NAME:
|
|
||||||
Id:SETTINGS_PLAYER_NAME
|
|
||||||
X:0
|
|
||||||
Y:10
|
|
||||||
Text: Player Name:
|
|
||||||
TextField@NAME:
|
|
||||||
Id:NAME
|
|
||||||
Text:Name
|
|
||||||
Width:139
|
|
||||||
Height:25
|
|
||||||
X:90
|
|
||||||
Y:0
|
|
||||||
MaxLength:16
|
MaxLength:16
|
||||||
Checkbox@EDGE_SCROLL:
|
CncDropDownButton@COLOR:
|
||||||
Id:EDGE_SCROLL
|
Id:COLOR_DROPDOWN
|
||||||
X:0
|
X:275
|
||||||
Y:30
|
Y:40
|
||||||
|
Width:80
|
||||||
|
Height:25
|
||||||
|
Children:
|
||||||
|
ColorBlock@COLORBLOCK:
|
||||||
|
Id:COLORBLOCK
|
||||||
|
X:5
|
||||||
|
Y:6
|
||||||
|
Width:PARENT_RIGHT-35
|
||||||
|
Height:PARENT_BOTTOM-12
|
||||||
|
Label@DEBUG_TITLE:
|
||||||
|
X:15
|
||||||
|
Y:100
|
||||||
|
Width:340
|
||||||
|
Font:Bold
|
||||||
|
Text:Debug
|
||||||
|
Align:Center
|
||||||
|
CncCheckbox@PERFINFO_CHECKBOX:
|
||||||
|
Id:PERFINFO_CHECKBOX
|
||||||
|
X:15
|
||||||
|
Y:120
|
||||||
|
Width:300
|
||||||
|
Height:20
|
||||||
|
Font:Regular
|
||||||
|
Text:Show Performance Text
|
||||||
|
CncCheckbox@PERFGRAPH_CHECKBOX:
|
||||||
|
Id:PERFGRAPH_CHECKBOX
|
||||||
|
X:15
|
||||||
|
Y:150
|
||||||
|
Width:300
|
||||||
|
Height:20
|
||||||
|
Font:Regular
|
||||||
|
Text:Show Performance Graph
|
||||||
|
CncCheckbox@GAMETIME_CHECKBOX:
|
||||||
|
Id:GAMETIME_CHECKBOX
|
||||||
|
X:15
|
||||||
|
Y:180
|
||||||
|
Width:300
|
||||||
|
Height:20
|
||||||
|
Font:Regular
|
||||||
|
Text:Show Game Time Counter
|
||||||
|
CncCheckbox@CHECKUNSYNCED_CHECKBOX:
|
||||||
|
Id:CHECKUNSYNCED_CHECKBOX
|
||||||
|
X:15
|
||||||
|
Y:210
|
||||||
|
Width:300
|
||||||
|
Height:20
|
||||||
|
Font:Regular
|
||||||
|
Text:Check Sync around Unsynced Code
|
||||||
|
Label@VIDEO_TITLE:
|
||||||
|
Y:20
|
||||||
|
X:375
|
||||||
|
Font:Bold
|
||||||
|
Text:Video
|
||||||
|
Align:Center
|
||||||
|
Width:340
|
||||||
|
Label@MODE_LABEL:
|
||||||
|
X:375
|
||||||
|
Y:39
|
||||||
|
Width:45
|
||||||
|
Height:25
|
||||||
|
Align:Right
|
||||||
|
Text:Mode:
|
||||||
|
CncDropDownButton@MODE_DROPDOWN:
|
||||||
|
Id:MODE_DROPDOWN
|
||||||
|
X:425
|
||||||
|
Y:40
|
||||||
|
Width:150
|
||||||
|
Height:25
|
||||||
|
Font:Regular
|
||||||
|
Text:Windowed
|
||||||
|
Label@At:
|
||||||
|
Text:@
|
||||||
|
Font:Bold
|
||||||
|
X:575
|
||||||
|
Y:39
|
||||||
|
Height:25
|
||||||
|
Width:25
|
||||||
|
Align:Center
|
||||||
|
CncTextField@SCREEN_WIDTH:
|
||||||
|
Id:SCREEN_WIDTH
|
||||||
|
X:600
|
||||||
|
Y:40
|
||||||
|
Width:45
|
||||||
|
Height:25
|
||||||
|
MaxLength:5
|
||||||
|
Label@X:
|
||||||
|
Text:x
|
||||||
|
Font:Bold
|
||||||
|
X:645
|
||||||
|
Y:39
|
||||||
|
Height:25
|
||||||
|
Width:25
|
||||||
|
Align:Center
|
||||||
|
CncTextField@SCREEN_HEIGHT:
|
||||||
|
Id:SCREEN_HEIGHT
|
||||||
|
X:670
|
||||||
|
Y:40
|
||||||
|
Width:45
|
||||||
|
Height:25
|
||||||
|
MaxLength:5
|
||||||
|
Label@VIDEO_DESC:
|
||||||
|
X:375
|
||||||
|
Y:65
|
||||||
|
Width:340
|
||||||
|
Height:25
|
||||||
|
Font:Tiny
|
||||||
|
Align:Center
|
||||||
|
Text:Video changes will be applied after the game is restarted
|
||||||
|
Label@AUDIO_TITLE:
|
||||||
|
X:375
|
||||||
|
Y:120
|
||||||
|
Width:340
|
||||||
|
Font:Bold
|
||||||
|
Text:Audio
|
||||||
|
Align:Center
|
||||||
|
Label@SOUND_LABEL:
|
||||||
|
X:375
|
||||||
|
Y:135
|
||||||
|
Width:95
|
||||||
|
Height:25
|
||||||
|
Align:Right
|
||||||
|
Text:Sound Volume:
|
||||||
|
CncSlider@SOUND_SLIDER:
|
||||||
|
Id:SOUND_SLIDER
|
||||||
|
X:475
|
||||||
|
Y:140
|
||||||
|
Width:240
|
||||||
|
Height:20
|
||||||
|
Ticks:5
|
||||||
|
Label@MUSIC_LABEL:
|
||||||
|
X:375
|
||||||
|
Y:165
|
||||||
|
Width:95
|
||||||
|
Height:25
|
||||||
|
Align:Right
|
||||||
|
Text:Music Volume:
|
||||||
|
CncSlider@MUSIC_SLIDER:
|
||||||
|
Id:MUSIC_SLIDER
|
||||||
|
X:475
|
||||||
|
Y:170
|
||||||
|
Width:240
|
||||||
|
Height:20
|
||||||
|
Ticks:5
|
||||||
|
CncCheckbox@SHELLMAP_MUSIC:
|
||||||
|
Id:SHELLMAP_MUSIC
|
||||||
|
X:375
|
||||||
|
Y:200
|
||||||
Width:200
|
Width:200
|
||||||
Height:20
|
Height:20
|
||||||
Text: Enable Edge Scrolling
|
Font:Regular
|
||||||
Label@EDGE_SCROLL_AMOUNT_LABEL:
|
Text:Disable Shellmap Music
|
||||||
Id:EDGE_SCROLL_AMOUNT_LABEL
|
Background@INPUT_CONTROLS:
|
||||||
X:0
|
Id:INPUT_CONTROLS
|
||||||
Y:70
|
Width:740
|
||||||
Text: Scroll Speed
|
Height:250
|
||||||
Slider@EDGE_SCROLL_AMOUNT:
|
Background:panel-black
|
||||||
Id:EDGE_SCROLL_AMOUNT
|
Visible:false
|
||||||
X:130
|
Children:
|
||||||
Y:60
|
Label@MOUSE_TITLE:
|
||||||
|
Font:Bold
|
||||||
|
Text:Mouse Input
|
||||||
|
Align:Center
|
||||||
|
X:15
|
||||||
|
Y:20
|
||||||
|
Width:340
|
||||||
|
CncCheckbox@CLASSIC_ORDERS:
|
||||||
|
Id:CLASSIC_ORDERS
|
||||||
|
X:15
|
||||||
|
Y:35
|
||||||
Width:250
|
Width:250
|
||||||
Height:20
|
Height:20
|
||||||
|
Font:Regular
|
||||||
|
Text:Left-Click Orders (Coming soon!)
|
||||||
|
Label@SCROLL_TITLE:
|
||||||
|
Font:Bold
|
||||||
|
Text:Scroll Behavior
|
||||||
|
Align:Center
|
||||||
|
X:20
|
||||||
|
Y:100
|
||||||
|
Width:335
|
||||||
|
Label@SCROLL_SPEED_LABEL:
|
||||||
|
X:10
|
||||||
|
Y:115
|
||||||
|
Width:95
|
||||||
|
Height:25
|
||||||
|
Text:Scroll Speed:
|
||||||
|
CncSlider@SCROLL_SPEED:
|
||||||
|
Id:SCROLL_SPEED
|
||||||
|
X:100
|
||||||
|
Y:120
|
||||||
|
Width:240
|
||||||
|
Height:20
|
||||||
Ticks:5
|
Ticks:5
|
||||||
Range:10,50
|
Range:10,50
|
||||||
Checkbox@INVERSE_SCROLL:
|
CncCheckbox@EDGE_SCROLL:
|
||||||
Id:INVERSE_SCROLL
|
Id:EDGE_SCROLL
|
||||||
X:0
|
X:15
|
||||||
Y:90
|
Y:150
|
||||||
Width:200
|
Width:130
|
||||||
Height:20
|
Height:20
|
||||||
Text: Invert Mouse Drag Scrolling
|
Font:Regular
|
||||||
Checkbox@TEAMCHAT_TOGGLE:
|
Text:Edge Scrolling
|
||||||
|
Label@MOUSE_SCROLL_LABEL:
|
||||||
|
X:15
|
||||||
|
Y:180
|
||||||
|
Width:160
|
||||||
|
Height:20
|
||||||
|
Font:Regular
|
||||||
|
Text:Middle-Mouse Scrolling:
|
||||||
|
Align:Right
|
||||||
|
CncDropDownButton@MOUSE_SCROLL:
|
||||||
|
Id:MOUSE_SCROLL
|
||||||
|
X:180
|
||||||
|
Y:180
|
||||||
|
Width:100
|
||||||
|
Height:25
|
||||||
|
Font:Regular
|
||||||
|
Text:Enabled
|
||||||
|
Label@MULTITOUCH_SCROLL_LABEL:
|
||||||
|
X:15
|
||||||
|
Y:210
|
||||||
|
Width:160
|
||||||
|
Height:20
|
||||||
|
Font:Regular
|
||||||
|
Text:Multitouch Scrolling:
|
||||||
|
Align:Right
|
||||||
|
CncDropDownButton@MULTITOUCH_SCROLL:
|
||||||
|
Id:MULTITOUCH_SCROLL
|
||||||
|
X:180
|
||||||
|
Y:210
|
||||||
|
Width:100
|
||||||
|
Height:25
|
||||||
|
Font:Regular
|
||||||
|
Text:Enabled
|
||||||
|
Label@KEYBOARD_TITLE:
|
||||||
|
X:375
|
||||||
|
Y:20
|
||||||
|
Width:340
|
||||||
|
Font:Bold
|
||||||
|
Text:Keyboard Input
|
||||||
|
Align:Center
|
||||||
|
CncCheckbox@TEAMCHAT_TOGGLE:
|
||||||
Id:TEAMCHAT_TOGGLE
|
Id:TEAMCHAT_TOGGLE
|
||||||
X:0
|
X:375
|
||||||
Y:120
|
Y:35
|
||||||
Width:200
|
Width:240
|
||||||
Height:20
|
Height:20
|
||||||
|
Font:Regular
|
||||||
Text:Shift-Enter Toggles Team Chat
|
Text:Shift-Enter Toggles Team Chat
|
||||||
Container@AUDIO_PANE:
|
Label@BINDING_LABEL:
|
||||||
Id:AUDIO_PANE
|
Font:Bold
|
||||||
X:37
|
X:375
|
||||||
Y:100
|
|
||||||
Width:PARENT_RIGHT - 37
|
|
||||||
Height:PARENT_BOTTOM - 100
|
|
||||||
Visible: false
|
|
||||||
Children:
|
|
||||||
Label@SOUND_VOLUME_LABEL:
|
|
||||||
Id:SOUND_VOLUME_LABEL
|
|
||||||
X:0
|
|
||||||
Y:10
|
|
||||||
Text: Sound Volume
|
|
||||||
Slider@SOUND_VOLUME:
|
|
||||||
Id:SOUND_VOLUME
|
|
||||||
X:100
|
|
||||||
Y:0
|
|
||||||
Width:250
|
|
||||||
Height:20
|
|
||||||
Ticks:5
|
|
||||||
Label@MUSIC_VOLUME_LABEL:
|
|
||||||
Id:MUSIC_VOLUME_LABEL
|
|
||||||
X:0
|
|
||||||
Y:40
|
|
||||||
Text: Music Volume
|
|
||||||
Slider@MUSIC_VOLUME:
|
|
||||||
Id:MUSIC_VOLUME
|
|
||||||
X:100
|
|
||||||
Y:30
|
|
||||||
Width:250
|
|
||||||
Height:20
|
|
||||||
Ticks:5
|
|
||||||
Container@DISPLAY_PANE:
|
|
||||||
Id:DISPLAY_PANE
|
|
||||||
X:37
|
|
||||||
Y:100
|
|
||||||
Width:PARENT_RIGHT - 37
|
|
||||||
Height:PARENT_BOTTOM - 100
|
|
||||||
Visible: false
|
|
||||||
Children:
|
|
||||||
Checkbox@FULLSCREEN_CHECKBOX:
|
|
||||||
Id:FULLSCREEN_CHECKBOX
|
|
||||||
X:0
|
|
||||||
Y:0
|
|
||||||
Width:300
|
|
||||||
Height:20
|
|
||||||
Text:Fullscreen
|
|
||||||
Label@RESOLUTION_LABEL:
|
|
||||||
Id:RESOLUTION_LABEL
|
|
||||||
X:0
|
|
||||||
Y:50
|
|
||||||
Text: Window Resolution:
|
|
||||||
TextField@SCREEN_WIDTH:
|
|
||||||
Id:SCREEN_WIDTH
|
|
||||||
Text:Width
|
|
||||||
Width:50
|
|
||||||
Height:25
|
|
||||||
X:130
|
|
||||||
Y:40
|
|
||||||
MaxLength:5
|
|
||||||
Label@X:
|
|
||||||
Id:X
|
|
||||||
Text:x
|
|
||||||
X:185
|
|
||||||
Y:50
|
|
||||||
TextField@SCREEN_HEIGHT:
|
|
||||||
Id:SCREEN_HEIGHT
|
|
||||||
Text:Height
|
|
||||||
Width:50
|
|
||||||
Height:25
|
|
||||||
X:195
|
|
||||||
Y:40
|
|
||||||
MaxLength:5
|
|
||||||
Label@RESTART:
|
|
||||||
Id:RESTART
|
|
||||||
Text: Restart Game To Apply Changes
|
|
||||||
X:0
|
|
||||||
Y:PARENT_BOTTOM - 30
|
|
||||||
Container@DEBUG_PANE:
|
|
||||||
Id:DEBUG_PANE
|
|
||||||
X:37
|
|
||||||
Y:100
|
|
||||||
Width:PARENT_RIGHT - 37
|
|
||||||
Height:PARENT_BOTTOM - 100
|
|
||||||
Visible: false
|
|
||||||
Children:
|
|
||||||
Checkbox@PERFDEBUG_CHECKBOX:
|
|
||||||
Id:PERFDEBUG_CHECKBOX
|
|
||||||
X:0
|
|
||||||
Y:0
|
|
||||||
Width:300
|
|
||||||
Height:20
|
|
||||||
Text:Show Performance Information
|
|
||||||
Checkbox@GAMETIME_CHECKBOX:
|
|
||||||
Id:GAMETIME_CHECKBOX
|
|
||||||
X:0
|
|
||||||
Y:30
|
|
||||||
Width:300
|
|
||||||
Height:20
|
|
||||||
Text:Show Game Time Counter
|
|
||||||
Checkbox@CHECKUNSYNCED_CHECKBOX:
|
|
||||||
Id:CHECKUNSYNCED_CHECKBOX
|
|
||||||
X:0
|
|
||||||
Y:60
|
Y:60
|
||||||
Width:300
|
Width:200
|
||||||
Height:20
|
Height:25
|
||||||
Text:Check Sync around Unsynced Code
|
Align:Center
|
||||||
|
Text:Action
|
||||||
|
Label@KEY_LABEL:
|
||||||
|
Font:Bold
|
||||||
|
X:640
|
||||||
|
Y:60
|
||||||
|
Width:30
|
||||||
|
Height:25
|
||||||
|
Align:Right
|
||||||
|
Text:Key
|
||||||
|
CncScrollPanel@KEYBINDINGS:
|
||||||
|
Id:KEYBINDINGS
|
||||||
|
X:375
|
||||||
|
Y:85
|
||||||
|
Width:350
|
||||||
|
Height:150
|
||||||
|
CncMenuButton@GENERAL_BUTTON:
|
||||||
|
Id:GENERAL_BUTTON
|
||||||
|
Y:249
|
||||||
|
Width:140
|
||||||
|
Height:35
|
||||||
|
Text:General
|
||||||
|
CncMenuButton@INPUT_BUTTON:
|
||||||
|
Id:INPUT_BUTTON
|
||||||
|
X:150
|
||||||
|
Y:249
|
||||||
|
Width:140
|
||||||
|
Height:35
|
||||||
|
Text:Input
|
||||||
|
CncMenuButton@RESET_BUTTON:
|
||||||
|
Id:RESET_BUTTON
|
||||||
|
X:450
|
||||||
|
Y:249
|
||||||
|
Width:140
|
||||||
|
Height:35
|
||||||
|
Text:Reset
|
||||||
|
CncMenuButton@SAVE_BUTTON:
|
||||||
|
Id:SAVE_BUTTON
|
||||||
|
X:600
|
||||||
|
Y:249
|
||||||
|
Width:140
|
||||||
|
Height:35
|
||||||
|
Text:Save
|
||||||
Reference in New Issue
Block a user