first commit

This commit is contained in:
2026-06-14 01:40:04 +02:00
commit 5511354783
4787 changed files with 103543 additions and 0 deletions
@@ -0,0 +1,12 @@
on(construct){
m_focusDirs = "Up/Down";
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 2;
m_bVisible = true;
m_visibleEntryCount = 4;
m_width = 226;
m_contentSymbol = "TextDropdownMenuContentSymbol";
m_entrySymbol = "std_mouseListboxEntryTextElementSymbol";
m_ButtonWidth = 27;
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 200;
m_textAlign = false;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "";
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = -1;
m_bVisible = true;
m_contentSymbol = "checkBoxContentClipSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 200;
m_textAlign = false;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "";
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = -1;
m_bVisible = true;
m_contentSymbol = "checkBoxContentClipSymbol";
}
@@ -0,0 +1,19 @@
on(construct){
m_width = 253;
m_textAlign = false;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_nTruncateType = 0;
m_label = "";
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = -1;
m_bVisible = true;
m_password = false;
m_charLimit = 10;
m_allowHorzScroll = false;
}
@@ -0,0 +1,2 @@
this._parent.introComplete();
stop();
@@ -0,0 +1,2 @@
this._parent.outtroComplete();
stop();
@@ -0,0 +1,19 @@
on(construct){
m_width = 200;
m_textAlign = false;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "";
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = -1;
m_bVisible = true;
m_contentSymbol = "radioButtonContentClip";
m_controller = "voipRBC";
}
@@ -0,0 +1,19 @@
on(construct){
m_width = 200;
m_textAlign = false;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "";
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = -1;
m_bVisible = true;
m_contentSymbol = "radioButtonContentClip";
m_controller = "voipRBC";
}
@@ -0,0 +1,3 @@
on(construct){
m_name = "RadioButtonController";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 200;
m_textAlign = false;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "";
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = -1;
m_bVisible = true;
m_contentSymbol = "checkBoxContentClipSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 200;
m_textAlign = false;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "";
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = -1;
m_bVisible = true;
m_contentSymbol = "checkBoxContentClipSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 200;
m_textAlign = false;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "";
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = -1;
m_bVisible = true;
m_contentSymbol = "checkBoxContentClipSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_playAudio = false;
m_focusDirs = "Up/Down";
m_nValue = 0;
m_label = "";
m_labelOffsetX = 0;
m_nMax = 100;
m_nMin = 0;
m_bSnapEnabled = false;
m_nStep = 1;
m_bWrapEnabled = false;
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "sliderContentSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_playAudio = false;
m_focusDirs = "Up/Down";
m_nValue = 0;
m_label = "";
m_labelOffsetX = 0;
m_nMax = 100;
m_nMin = 0;
m_bSnapEnabled = false;
m_nStep = 1;
m_bWrapEnabled = false;
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "sliderContentSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_playAudio = false;
m_focusDirs = "Up/Down";
m_nValue = 0;
m_label = "";
m_labelOffsetX = 0;
m_nMax = 100;
m_nMin = 0;
m_bSnapEnabled = false;
m_nStep = 1;
m_bWrapEnabled = false;
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "sliderContentSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_playAudio = false;
m_focusDirs = "Up/Down";
m_nValue = 0;
m_label = "";
m_labelOffsetX = 0;
m_nMax = 100;
m_nMin = 0;
m_bSnapEnabled = false;
m_nStep = 1;
m_bWrapEnabled = false;
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "sliderContentSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_playAudio = false;
m_focusDirs = "Up/Down";
m_nValue = 0;
m_label = "";
m_labelOffsetX = 0;
m_nMax = 100;
m_nMin = 0;
m_bSnapEnabled = false;
m_nStep = 1;
m_bWrapEnabled = false;
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "sliderContentSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_playAudio = false;
m_focusDirs = "Up/Down";
m_nValue = 0;
m_label = "";
m_labelOffsetX = 0;
m_nMax = 100;
m_nMin = 0;
m_bSnapEnabled = false;
m_nStep = 1;
m_bWrapEnabled = false;
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "sliderContentSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_playAudio = false;
m_focusDirs = "Up/Down";
m_nValue = 0;
m_label = "";
m_labelOffsetX = 0;
m_nMax = 100;
m_nMin = 0;
m_bSnapEnabled = false;
m_nStep = 1;
m_bWrapEnabled = false;
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "sliderContentSymbol";
}
@@ -0,0 +1,10 @@
on(construct){
m_focusDirs = "Up/Down";
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 9;
m_bVisible = true;
m_label = "";
m_contentSymbol = "buttonContentSymbol";
}
@@ -0,0 +1,12 @@
on(construct){
m_focusDirs = "Up/Down";
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 7;
m_bVisible = true;
m_visibleEntryCount = 4;
m_width = 192;
m_contentSymbol = "TextDropdownMenuContentSymbol";
m_entrySymbol = "std_mouseListboxEntryTextElementSymbol";
m_ButtonWidth = 27;
}
@@ -0,0 +1,12 @@
on(construct){
m_focusDirs = "Up/Down";
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 6;
m_bVisible = true;
m_visibleEntryCount = 4;
m_width = 192;
m_contentSymbol = "TextDropdownMenuContentSymbol";
m_entrySymbol = "std_mouseListboxEntryTextElementSymbol";
m_ButtonWidth = 27;
}
@@ -0,0 +1,12 @@
on(construct){
m_focusDirs = "Up/Down";
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 13;
m_bVisible = true;
m_visibleEntryCount = 2;
m_width = 192;
m_contentSymbol = "TextDropdownMenuContentSymbol";
m_entrySymbol = "std_mouseListboxEntryTextElementSymbol";
m_ButtonWidth = 27;
}
@@ -0,0 +1,12 @@
on(construct){
m_focusDirs = "Up/Down";
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 5;
m_bVisible = true;
m_visibleEntryCount = 6;
m_width = 192;
m_contentSymbol = "TextDropdownMenuContentSymbol";
m_entrySymbol = "std_mouseListboxEntryTextElementSymbol";
m_ButtonWidth = 27;
}
@@ -0,0 +1,12 @@
on(construct){
m_focusDirs = "Up/Down";
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 4;
m_bVisible = true;
m_visibleEntryCount = 5;
m_width = 192;
m_contentSymbol = "TextDropdownMenuContentSymbol";
m_entrySymbol = "std_mouseListboxEntryTextElementSymbol";
m_ButtonWidth = 27;
}
@@ -0,0 +1,12 @@
on(construct){
m_focusDirs = "Up/Down";
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 11;
m_bVisible = true;
m_visibleEntryCount = 6;
m_width = 192;
m_contentSymbol = "TextDropdownMenuContentSymbol";
m_entrySymbol = "std_mouseListboxEntryTextElementSymbol";
m_ButtonWidth = 27;
}
@@ -0,0 +1,12 @@
on(construct){
m_focusDirs = "Up/Down";
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 3;
m_bVisible = true;
m_visibleEntryCount = 5;
m_width = 192;
m_contentSymbol = "TextDropdownMenuContentSymbol";
m_entrySymbol = "std_mouseListboxEntryTextElementSymbol";
m_ButtonWidth = 27;
}
@@ -0,0 +1,12 @@
on(construct){
m_focusDirs = "Up/Down";
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 10;
m_bVisible = true;
m_visibleEntryCount = 6;
m_width = 192;
m_contentSymbol = "TextDropdownMenuContentSymbol";
m_entrySymbol = "std_mouseListboxEntryTextElementSymbol";
m_ButtonWidth = 27;
}
@@ -0,0 +1,12 @@
on(construct){
m_focusDirs = "Up/Down";
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 2;
m_bVisible = true;
m_visibleEntryCount = 6;
m_width = 192;
m_contentSymbol = "TextDropdownMenuContentSymbol";
m_entrySymbol = "std_mouseListboxEntryTextElementSymbol";
m_ButtonWidth = 27;
}
@@ -0,0 +1,12 @@
on(construct){
m_focusDirs = "Up/Down";
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 9;
m_bVisible = true;
m_visibleEntryCount = 5;
m_width = 192;
m_contentSymbol = "TextDropdownMenuContentSymbol";
m_entrySymbol = "std_mouseListboxEntryTextElementSymbol";
m_ButtonWidth = 27;
}
@@ -0,0 +1,12 @@
on(construct){
m_focusDirs = "Up/Down";
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = -1;
m_bVisible = true;
m_visibleEntryCount = 6;
m_width = 192;
m_contentSymbol = "TextDropdownMenuContentSymbol";
m_entrySymbol = "std_mouseListboxEntryTextElementSymbol";
m_ButtonWidth = 27;
}
@@ -0,0 +1,18 @@
on(construct){
m_playAudio = false;
m_focusDirs = "Up/Down";
m_nValue = 0;
m_label = "";
m_labelOffsetX = 0;
m_nMax = 100;
m_nMin = 0;
m_bSnapEnabled = false;
m_nStep = 1;
m_bWrapEnabled = false;
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "sliderContentSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 140;
m_textAlign = true;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "$Cancel";
m_bEnabled = true;
m_refFM = "_global.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "buttonContentSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 140;
m_textAlign = true;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "$DONE";
m_bEnabled = true;
m_refFM = "_global.gFM";
m_initiallySelected = false;
m_tabIndex = 10;
m_bVisible = true;
m_contentSymbol = "buttonContentSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 140;
m_textAlign = true;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "$DefaultBttn";
m_bEnabled = true;
m_refFM = "_global.gFM";
m_initiallySelected = false;
m_tabIndex = 9;
m_bVisible = true;
m_contentSymbol = "buttonContentSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 140;
m_textAlign = true;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "$GraphicsTab";
m_bEnabled = true;
m_refFM = "_global.gFM";
m_initiallySelected = false;
m_tabIndex = 1;
m_bVisible = true;
m_contentSymbol = "tabButtonContentClip";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 140;
m_textAlign = true;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "$AudioTab";
m_bEnabled = true;
m_refFM = "_global.gFM";
m_initiallySelected = false;
m_tabIndex = 2;
m_bVisible = true;
m_contentSymbol = "tabButtonContentClip";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 140;
m_textAlign = true;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "$HotkeysTab";
m_bEnabled = true;
m_refFM = "_global.gFM";
m_initiallySelected = false;
m_tabIndex = 3;
m_bVisible = true;
m_contentSymbol = "tabButtonContentClip";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 140;
m_textAlign = true;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "$NetworkTab";
m_bEnabled = true;
m_refFM = "_global.gFM";
m_initiallySelected = false;
m_tabIndex = 4;
m_bVisible = true;
m_contentSymbol = "tabButtonContentClip";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 140;
m_textAlign = true;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "$GeneralTab";
m_bEnabled = true;
m_refFM = "_global.gFM";
m_initiallySelected = false;
m_tabIndex = 5;
m_bVisible = true;
m_contentSymbol = "tabButtonContentClip";
}
@@ -0,0 +1,2 @@
this._parent.outtroComplete();
stop();
@@ -0,0 +1,2 @@
this._parent.introComplete();
stop();
@@ -0,0 +1,2 @@
this._parent.outtroComplete();
stop();
@@ -0,0 +1,14 @@
on(construct){
m_focusDirs = "Up/Down";
m_numEntries = 17;
m_vPadding = 0;
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = -1;
m_bVisible = true;
m_scrollbarOffset = [];
m_scrollbarOffset[0] = 20;
m_scrollbarOffset[1] = 0;
m_BgVisible = true;
}
@@ -0,0 +1,6 @@
on(construct){
m_nLength = 100;
m_nMax = 100;
m_nMin = 0;
m_nValue = 0;
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 140;
m_textAlign = true;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "$CLEAR_ALL";
m_nTruncateType = 0;
m_label = "$CLEAR_ALL";
m_bEnabled = true;
m_refFM = "_global.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "buttonContentSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 140;
m_textAlign = true;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "$SIDEBAR";
m_nTruncateType = 0;
m_label = "$SIDEBAR";
m_bEnabled = true;
m_refFM = "_global.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "HotkeytabButtonContentClip";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 140;
m_textAlign = true;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "$UNIT_COMMANDERS";
m_nTruncateType = 0;
m_label = "$UNIT_COMMANDERS";
m_bEnabled = true;
m_refFM = "_global.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "HotkeytabButtonContentClip";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 140;
m_textAlign = true;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "$PLAYER_POWERS";
m_nTruncateType = 0;
m_label = "$PLAYER_POWERS";
m_bEnabled = true;
m_refFM = "_global.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "HotkeytabButtonContentClip";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 140;
m_textAlign = true;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "$CAMERA";
m_nTruncateType = 0;
m_label = "$CAMERA";
m_bEnabled = true;
m_refFM = "_global.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "HotkeytabButtonContentClip";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 140;
m_textAlign = true;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "$BOOKMARKS";
m_nTruncateType = 0;
m_label = "$BOOKMARKS";
m_bEnabled = true;
m_refFM = "_global.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "HotkeytabButtonContentClip";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 140;
m_textAlign = true;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "$MISCELLANEOUS";
m_nTruncateType = 0;
m_label = "$MISCELLANEOUS";
m_bEnabled = true;
m_refFM = "_global.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "HotkeytabButtonContentClip";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 200;
m_textAlign = false;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "";
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = -1;
m_bVisible = true;
m_contentSymbol = "checkBoxContentClipSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_width = 200;
m_textAlign = false;
m_labelPosition = "right align";
m_label_x = 0;
m_label_y = 0;
m_focusDirs = "Up/Down";
m_iconType = "default";
m_extLabel = "";
m_nTruncateType = 0;
m_label = "";
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 12;
m_bVisible = true;
m_contentSymbol = "checkBoxContentClipSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_playAudio = false;
m_focusDirs = "Up/Down";
m_nValue = 0;
m_label = "";
m_labelOffsetX = 0;
m_nMax = 100;
m_nMin = 0;
m_bSnapEnabled = false;
m_nStep = 1;
m_bWrapEnabled = false;
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "sliderContentSymbol";
}
@@ -0,0 +1,18 @@
on(construct){
m_playAudio = false;
m_focusDirs = "Up/Down";
m_nValue = 0;
m_label = "";
m_labelOffsetX = 0;
m_nMax = 100;
m_nMin = 0;
m_bSnapEnabled = false;
m_nStep = 1;
m_bWrapEnabled = false;
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = 8;
m_bVisible = true;
m_contentSymbol = "sliderContentSymbol";
}
@@ -0,0 +1,10 @@
on(construct){
m_focusDirs = "Up/Down";
m_bEnabled = true;
m_refFM = "_root.gFM";
m_initiallySelected = false;
m_tabIndex = -1;
m_bVisible = true;
m_label = "$SECUROMDEAUTHORIZELABEL";
m_contentSymbol = "buttonContentSymbol";
}
@@ -0,0 +1,193 @@
class Cafe2_BaseUIScreen
{
var m_changeToScreen = null;
var m_executeOuttroCallBack = null;
var m_uiComponentArray = new Array();
function Cafe2_BaseUIScreen(screen)
{
Cafe2_BaseUIScreen.m_screen = screen;
Cafe2_BaseUIScreen.m_screen.onEnterFrame = _global.bind0(this,this.frameDelayedInitCallback);
}
function frameDelayedInit()
{
trace("\n\nCafe2_BaseUIScreen::frameDelayedInitCallback() :");
var _loc1_ = new Array("N.B. You *must* override frameDelayedInit() in your","\nscreens and move the call to initGUI() to frameDelayedInit().\n");
trace(_loc1_[0] + _loc1_[1]);
}
function frameDelayedInitCallback()
{
Cafe2_BaseUIScreen.m_screen.onEnterFrame = null;
this.frameDelayedInit();
}
function outtroComplete(theComponent)
{
trace("Cafe2_BaseUIScreen::outtroComplete() " + theComponent);
var _loc2_ = 0;
while(_loc2_ < Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray.length)
{
if(theComponent == Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray[_loc2_])
{
break;
}
_loc2_ = _loc2_ + 1;
}
Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray.splice(_loc2_,1);
if(Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray.length <= 0)
{
if(Cafe2_BaseUIScreen.m_thisClass.m_changeToScreen != null)
{
_global.gSM.changeMainScreen(Cafe2_BaseUIScreen.m_thisClass.m_changeToScreen);
}
}
}
function introComplete(theComponent)
{
trace("Cafe2_BaseUIScreen::introComplete()");
theComponent.restoreVisualState();
Cafe2_BaseUIScreen.m_thisClass.m_introCount--;
if(Cafe2_BaseUIScreen.m_thisClass.m_introCount <= 0)
{
Cafe2_BaseUIScreen.m_thisClass.onIntrosComplete();
}
}
function onIntrosComplete()
{
trace("Cafe2_BaseUIScreen::onIntrosComplete()");
_global.gEH.setLocalEventHandler(this.localEventHandler);
_global.gEH.enableCurrentLocalEventHandler();
}
function registerIntroOuttroComponents(components)
{
trace("Cafe2_BaseUIScreen::registerIntroOuttroComponents()");
this.m_uiComponentArray = components;
this.m_introCount = this.m_uiComponentArray.length;
var _loc2_ = 0;
while(_loc2_ < this.m_introCount)
{
this.m_uiComponentArray[_loc2_].setIntroCallback(this.introComplete);
_loc2_ = _loc2_ + 1;
}
}
function executeBackFunction(theComponent)
{
trace("Cafe2_BaseUIScreen::executeBackFunction" + theComponent);
var _loc2_ = 0;
while(_loc2_ < Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray.length)
{
if(theComponent == Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray[_loc2_])
{
break;
}
_loc2_ = _loc2_ + 1;
}
Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray.splice(_loc2_,1);
if(Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray.length <= 0)
{
_global.gSM.goBackScreen();
}
}
function startIntro()
{
trace("Cafe2_BaseUIScreen::startIntro()");
var _loc3_ = this.m_uiComponentArray.length;
var _loc2_ = 0;
while(_loc2_ < _loc3_)
{
this.m_uiComponentArray[_loc2_].intro();
_loc2_ = _loc2_ + 1;
}
}
function startOuttro(newScreen)
{
trace("Cafe2_BaseUIScreen::startOuttro");
this.m_changeToScreen = newScreen;
var _loc3_ = Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray.length;
if(_loc3_ > 0)
{
var _loc2_ = 0;
while(_loc2_ < _loc3_)
{
Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray[_loc2_].outtro(this.outtroComplete);
_loc2_ = _loc2_ + 1;
}
}
else
{
this.outtroComplete(null);
}
}
function startOuttroAndCallBack(doAfterOuttroComplete)
{
trace("Cafe2_BaseUIScreen::startOuttro");
this.m_executeOuttroCallBack = doAfterOuttroComplete;
var _loc3_ = Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray.length;
if(_loc3_ > 0)
{
var _loc2_ = 0;
while(_loc2_ < _loc3_)
{
Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray[_loc2_].outtro(this.outtroAndCallBackComplete);
_loc2_ = _loc2_ + 1;
}
}
else
{
this.outtroAndCallBackComplete(null);
}
}
function outtroAndCallBackComplete(theComponent)
{
trace("Cafe2_BaseUIScreen::outtroComplete() " + theComponent);
var _loc1_ = 0;
while(_loc1_ < Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray.length)
{
if(theComponent == Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray[_loc1_])
{
break;
}
_loc1_ = _loc1_ + 1;
}
Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray.splice(_loc1_,1);
if(Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray.length <= 0)
{
Cafe2_BaseUIScreen.m_thisClass.m_executeOuttroCallBack();
}
}
function backButtonClicked()
{
trace("Cafe2_BaseUIScreen::backButtonClicked()");
var _loc3_ = Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray.length;
if(_loc3_ > 0)
{
var _loc2_ = 0;
while(_loc2_ < _loc3_)
{
Cafe2_BaseUIScreen.m_thisClass.m_uiComponentArray[_loc2_].outtro(Cafe2_BaseUIScreen.m_thisClass.executeBackFunction);
_loc2_ = _loc2_ + 1;
}
}
else
{
_global.gSM.goBackScreen();
}
}
function localEventHandler(keyCode, controller)
{
trace("Cafe2_BaseUIScreen::localEventHandler() keyCode == " + keyCode);
_global.gFM.handleDefaultInputs(keyCode);
}
function clearData()
{
Cafe2_BaseUIScreen.m_screen = null;
Cafe2_BaseUIScreen.m_thisClass = null;
this.m_changeToScreen = null;
this.m_uiComponentArray = null;
}
function bind0(obj, func)
{
return function()
{
func.call(obj);
};
}
}
@@ -0,0 +1,684 @@
class feg_m_optionsSettings extends Cafe2_BaseUIScreen
{
static var CONTEXT_GFX = 1;
static var CONTEXT_AUDIO = 2;
static var CONTEXT_HOTKEYS = 3;
static var CONTEXT_NETWORK = 4;
static var CONTEXT_GENERAL = 5;
static var HOTKEY_CAMERA = 0;
static var HOTKEY_SIDEBAR = 1;
static var HOTKEY_UNIT_COMMANDS = 2;
static var HOTKEY_BOOKMARKS = 3;
static var HOTKEY_PLAYER_POWERS = 4;
static var HOTKEY_MISC = 5;
static var HOTKEY_MAX = 6;
var m_hotKeyGroup = 2;
static var VOIP_ACTIVATION_PUSHTOTALK = 0;
static var VOIP_ACTIVATION_VOLUME = 1;
static var VOIP_CHECK_BOXES_ENABLED = 1;
static var VOIP_CHECK_BOXES_DISABLED = 0;
var m_optionsTab = feg_m_optionsSettings.CONTEXT_GFX;
function feg_m_optionsSettings(screen)
{
super(screen);
Cafe2_BaseUIScreen.m_thisClass = this;
_global.gSM.setOnExitScreen(_global.bind0(this,this.onScreenExit));
this.m_localMessageHandlerFunc = _global.bind1DynamicParams(this,this.localMessageHandler);
this.SelectPanel(feg_m_optionsSettings.CONTEXT_GFX);
this.m_isInGame = Number(extern.PlayingGame) != 0;
// Checked
getUrl("FSCommand:CallGameFunction", "%InitNetworkSettings");
// Checked
getUrl("FSCommand:CallGameFunction", "%InitAudioSettings");
// Checked
getUrl("FSCommand:CallGameFunction", "%InitGraphicsSetting");
// Checked
getUrl("FSCommand:CallGameFunction", "%InitGeneralSettings");
}
function frameDelayedInit()
{
_global.gMH.addMessageHandler(this.m_localMessageHandlerFunc);
this.initGUI();
}
function initGUI()
{
var screenComponent = Cafe2_BaseUIScreen.m_screen.screenMC;
this.configureButton(screenComponent.gfxButton,_global.bind1(this,this.OnButtonClick,feg_m_optionsSettings.CONTEXT_GFX));
this.configureButton(screenComponent.audioButton,_global.bind1(this,this.OnButtonClick,feg_m_optionsSettings.CONTEXT_AUDIO));
this.configureButton(screenComponent.hotkeysButton,_global.bind1(this,this.OnButtonClick,feg_m_optionsSettings.CONTEXT_HOTKEYS));
this.configureButton(screenComponent.networkButton,_global.bind1(this,this.OnButtonClick,feg_m_optionsSettings.CONTEXT_NETWORK));
this.configureButton(screenComponent.generalButton,_global.bind1(this,this.OnButtonClick,feg_m_optionsSettings.CONTEXT_GENERAL));
this.configureButton(screenComponent.cancelButton,_global.bind0(this,this.OnCancelButtonClick));
this.configureButton(screenComponent.defaultButton,_global.bind0(this,this.OnDefaultButtonClick));
this.configureButton(screenComponent.doneButton,_global.bind0(this,this.OnDoneButtonClick));
var ret = new Object();
// Checked
loadVariables("QueryGameEngine?SHOULD_SHOW_DEAUTHORIZE",ret);
if(ret.SHOULD_SHOW_DEAUTHORIZE == "0")
{
screenComponent.generalPanel.securomDeauthorizeButton.disable();
screenComponent.generalPanel.securomDeauthorizeButton.hide();
screenComponent.generalPanel.securomDeauthorizeLabel._visible = false;
}
else if(this.m_isInGame)
{
screenComponent.generalPanel.securomDeauthorizeButton.disable();
}
else
{
this.configureButton(screenComponent.generalPanel.securomDeauthorizeButton,_global.bind0(this,this.OnDeauthorizeButtonClick));
}
this.InitAllControls();
this.initHotKeys();
this.SetGameVersionText(screenComponent.generalPanel);
if(extern.RA3PublicBeta == "1")
{
screenComponent.hotkeysButton.disable();
}
if(this.m_isInGame)
{
screenComponent.defaultButton.disable();
}
}
function configureButton(button, callback)
{
button.show();
button.enable();
button.setOnMouseUpFunction(callback);
button.noIntro();
}
function onScreenExit()
{
this.stopVoiceCalibration();
_global.gMH.removeMessageHandler(this.m_localMessageHandlerFunc);
delete this.m_localMessageHandlerFunc;
Cafe2_BaseUIScreen.m_screen.screenMC.hotkeysPanel.lbHotkeys.shutdown();
Cafe2_BaseUIScreen.m_screen.screenMC.hotkeysPanel.lbHotkeys.removeListener(this);
// Checked
getUrl("FSCommand:CallGameFunction", "%DetachMappingHotKey");
this.clearData();
delete _global.feg_m_optionsSettings;
delete _global.Cafe2_BaseUIScreen;
}
function localMessageHandler(messageCode)
{
var flag = true;
switch(messageCode)
{
case _global.MSGCODE.FE_CANCEL_OPTIONS_SETTINGS_CONFIRMED:
this.cancelAllSettingsChanges();
break;
case _global.MSGCODE.FE_OPTIONS_REFRESH_AUDIO_CONTROLS:
this.RefreshAudioControls();
break;
case _global.MSGCODE.FE_OPTIONS_REFRESH_GENERAL_CONTROLS:
this.RefreshGeneralControls();
break;
case _global.MSGCODE.FE_OPTIONS_REFRESH_GRAPHICS_CONTROLS:
this.RefreshGraphicsControls();
break;
case _global.MSGCODE.FE_OPTIONS_REFRESH_HOTKEYS_CONTROLS:
this.RefreshHotKeysControls();
break;
case _global.MSGCODE.FE_OPTIONS_REFRESH_NETWORK_CONTROLS:
this.RefreshNetworkControls();
break;
default:
flag = false;
}
return flag;
}
function OnButtonClick(id)
{
this.m_optionsTab = id;
this.SelectPanel(id);
}
function OnCancelButtonClick()
{
this.RefreshHotkeysList();
// Checked
getUrl("FSCommand:CallGameFunction", "%ConfirmCancelAllSettings");
}
function OnDefaultButtonClick()
{
switch(this.m_optionsTab)
{
case feg_m_optionsSettings.CONTEXT_GFX:
// Checked
getUrl("FSCommand:CallGameFunction", "%DefaultGraphicsSettings");
break;
case feg_m_optionsSettings.CONTEXT_AUDIO:
// Checked
getUrl("FSCommand:CallGameFunction", "%DefaultAudioSettings");
break;
case feg_m_optionsSettings.CONTEXT_HOTKEYS:
// Checked
getUrl("FSCommand:CallGameFunction", "%DefaultHotkeysSettings");
break;
case feg_m_optionsSettings.CONTEXT_NETWORK:
// Checked
getUrl("FSCommand:CallGameFunction", "%DefaultNetworkSettings");
break;
case feg_m_optionsSettings.CONTEXT_GENERAL:
// Checked
getUrl("FSCommand:CallGameFunction", "%DefaultGameSettings");
}
this.RefreshHotkeysList();
this.stopVoiceCalibration();
this.RefreshAudioControls();
this.RefreshHotKeysControls();
}
function OnDoneButtonClick()
{
Cafe2_BaseUIScreen.m_screen.screenMC.doneButton.disable();
// Checked
getURL("FSCommand:CallGameFunction","%SetNetworkSetting?Port=" + Cafe2_BaseUIScreen.m_screen.screenMC.networkPanel.portNumber.getContents());
// Checked
getUrl("FSCommand:CallGameFunction", "%SaveAudioSettings");
// Checked
getUrl("FSCommand:CallGameFunction", "%SaveGameSettings");
// Checked
getUrl("FSCommand:CallGameFunction", "%SaveGraphicsSettings");
// Checked
getUrl("FSCommand:CallGameFunction", "%SaveHotkeysSettings");
// Checked
getUrl("FSCommand:CallGameFunction", "%SaveNetworkSettings");
// Checked
this.stopVoiceCalibration();
this.backButtonClicked();
}
function OnAcceptButtonClick()
{
// Checked
getUrl("FSCommand:CallGameFunction", "%DialogAccept");
}
function OnDeclineButtonClick()
{
// Checked
getUrl("FSCommand:CallGameFunction", "%DialogDecline");
}
function OnDeauthorizeButtonClick()
{
// Checked
getUrl("FSCommand:CallGameFunction", "%DeauthorizeSecurom");
}
function OnAudioActivationRBClicked(mode)
{
getURL("FSCommand:CallGameFunction","%SetAudioSetting?Setting=AUDIO_VOIP_ACTIVATION|Value=" + String(mode));
}
function SelectPanel(id)
{
Cafe2_BaseUIScreen.m_screen.screenMC.gfxPanel._visible = id == feg_m_optionsSettings.CONTEXT_GFX;
Cafe2_BaseUIScreen.m_screen.screenMC.audioPanel._visible = id == feg_m_optionsSettings.CONTEXT_AUDIO;
Cafe2_BaseUIScreen.m_screen.screenMC.hotkeysPanel._visible = id == feg_m_optionsSettings.CONTEXT_HOTKEYS;
Cafe2_BaseUIScreen.m_screen.screenMC.networkPanel._visible = id == feg_m_optionsSettings.CONTEXT_NETWORK;
Cafe2_BaseUIScreen.m_screen.screenMC.generalPanel._visible = id == feg_m_optionsSettings.CONTEXT_GENERAL;
Cafe2_BaseUIScreen.m_screen.screenMC.gfxButton.setSelected(id == feg_m_optionsSettings.CONTEXT_GFX);
Cafe2_BaseUIScreen.m_screen.screenMC.audioButton.setSelected(id == feg_m_optionsSettings.CONTEXT_AUDIO);
Cafe2_BaseUIScreen.m_screen.screenMC.hotkeysButton.setSelected(id == feg_m_optionsSettings.CONTEXT_HOTKEYS);
Cafe2_BaseUIScreen.m_screen.screenMC.networkButton.setSelected(id == feg_m_optionsSettings.CONTEXT_NETWORK);
Cafe2_BaseUIScreen.m_screen.screenMC.generalButton.setSelected(id == feg_m_optionsSettings.CONTEXT_GENERAL);
if(id != feg_m_optionsSettings.CONTEXT_HOTKEYS)
{
// Checked
getUrl("FSCommand:CallGameFunction", "%DetachMappingHotKey");
}
this.stopVoiceCalibration();
}
function GetAudioControlData(query)
{
var ret = new Object();
// Checked
loadVariables("QueryGameEngine?AUDIO_SETTING?Setting=" + String(query), ret);
return ret;
}
function GetGeneralControlData(query)
{
var ret = new Object();
// Checked
loadVariables("QueryGameEngine?GAME_SETTING?Setting=" + String(query), ret);
return ret;
}
function GetGraphicsControlData(query)
{
var ret = new Object();
// Checked
loadVariables("QueryGameEngine?GFX_SETTING?Setting=" + String(query), ret);
return ret;
}
function InitRadioButton(control, clickedFunc)
{
control.setOnMouseDownFunction(clickedFunc);
control.show();
control.enable();
control.noIntro();
}
function InitDropdownMenu(control, data, changefn, isEnabled)
{
var labels = data.DATA_LABELS.split(",");
var values = data.DATA_VALUES.split(",");
var count = Number(values.shift());
control.setData(labels,values);
control.setSelectedIndex(count);
control.setOnChange(changefn);
if(isEnabled)
{
control.enable();
}
else
{
control.disable();
}
control.show();
}
function InitGFXDropdownMenu(control, id)
{
control.settingID = id;
this.InitDropdownMenu(control,this.GetGraphicsControlData(id),this.OnGFXDropdownChange,!this.m_isInGame);
}
function InitSlider(control, data, changefn)
{
var list = data.DATA.split(",");
control.setIndexRange(Number(list[0]),Number(list[1]),0);
control.setIndexInfo(false,5,false);
control.setValue(Number(list[2]));
control.setOnChange(changefn);
}
function InitAudioSlider(control, id)
{
control.settingID = id;
this.InitSlider(control,this.GetAudioControlData(id),this.OnAudioSliderChange);
control.setOnDragUpdate(this.OnAudioSliderDragUpdate);
}
function InitGeneralSlider(control, id)
{
control.settingID = id;
this.InitSlider(control,this.GetGeneralControlData(id),this.OnGeneralSliderChange);
}
function InitSpinner(control, data)
{
}
function InitCheckbox(control, data, changefn)
{
var list = data.DATA.split(",");
Number(list[0]) == 0 ? control.unCheck() : control.check();
control.setOnChange(changefn);
}
function InitAudioCheckbox(control, id)
{
control.settingID = id;
this.InitCheckbox(control,this.GetAudioControlData(id),this.OnAudioCBChange);
}
function InitGeneralCheckbox(control, id)
{
control.settingID = id;
this.InitCheckbox(control,this.GetGeneralControlData(id),this.OnGeneralCBChange);
}
function InitAllControls()
{
this.InitAudioControls();
this.RefreshAudioControls();
this.RefreshGeneralControls();
this.RefreshGraphicsControls();
this.RefreshHotKeysControls();
this.RefreshNetworkControls();
}
function InitAudioControls()
{
var audioPanelComponent = Cafe2_BaseUIScreen.m_screen.screenMC.audioPanel;
audioPanelComponent.voipPushToTalk.setOnMouseDownFunction(_global.bind1(this,this.OnAudioActivationRBClicked,feg_m_optionsSettings.VOIP_ACTIVATION_PUSHTOTALK));
audioPanelComponent.voipPushToTalk.noIntro();
audioPanelComponent.voipVoiceActivated.setOnMouseDownFunction(_global.bind1(this,this.OnAudioActivationRBClicked,feg_m_optionsSettings.VOIP_ACTIVATION_VOLUME));
audioPanelComponent.voipVoiceActivated.noIntro();
var voiceCalibrationButtonComponent = audioPanelComponent.voiceCalibrationButton;
voiceCalibrationButtonComponent.show();
voiceCalibrationButtonComponent.setOnMouseUpFunction(_global.bind0(this,this.OnVoiceCalibrationClicked));
voiceCalibrationButtonComponent.setText("$GUI:VOICE_CALIBRATION_START");
voiceCalibrationButtonComponent.noIntro();
var _loc5_ = audioPanelComponent.voiceCalibrationBar;
this.m_isVoiceCalibrationActive = False;
this.m_voiceBarMin = _loc5_._x;
this.m_voiceBarMax = this.m_voiceBarMin + _loc5_._width;
}
function initHotKeys()
{
var hotkeysPanelComponent = Cafe2_BaseUIScreen.m_screen.screenMC.hotkeysPanel;
this.InitRadioButton(hotkeysPanelComponent.btnSideBar,_global.bind1(this,this.setHotkeyTab,feg_m_optionsSettings.HOTKEY_SIDEBAR));
this.InitRadioButton(hotkeysPanelComponent.btnUnitCommands,_global.bind1(this,this.setHotkeyTab,feg_m_optionsSettings.HOTKEY_UNIT_COMMANDS));
this.InitRadioButton(hotkeysPanelComponent.btnPlayerPowers,_global.bind1(this,this.setHotkeyTab,feg_m_optionsSettings.HOTKEY_PLAYER_POWERS));
this.InitRadioButton(hotkeysPanelComponent.btnCamera,_global.bind1(this,this.setHotkeyTab,feg_m_optionsSettings.HOTKEY_CAMERA));
this.InitRadioButton(hotkeysPanelComponent.btnBookmarks,_global.bind1(this,this.setHotkeyTab,feg_m_optionsSettings.HOTKEY_BOOKMARKS));
this.InitRadioButton(hotkeysPanelComponent.btnMisc,_global.bind1(this,this.setHotkeyTab,feg_m_optionsSettings.HOTKEY_MISC));
this.configureButton(hotkeysPanelComponent.btnClearAll,_global.bind0(this,this.OnClearAllClicked));
var lbHotkeysComponent = hotkeysPanelComponent.lbHotkeys;
lbHotkeysComponent.setNumEntries(17);
lbHotkeysComponent.setVerticalPadding(0);
var _loc5_ = new Array();
_loc5_.push({symbol:"std_mouseListboxEntryTextElementSymbol",width:400,leftMargin:0,rightMargin:0});
_loc5_.push({symbol:"std_mouseListboxEntryTextElementSymbol",width:238,leftMargin:5,rightMargin:0});
lbHotkeysComponent.init(_loc5_,29);
lbHotkeysComponent.attachScrollbarController(hotkeysPanelComponent.sbHotkeys);
lbHotkeysComponent.addListener(this);
hotkeysPanelComponent.btnSideBar.setSelected(true);
this.setHotkeyTab(feg_m_optionsSettings.HOTKEY_SIDEBAR);
hotkeysPanelComponent.tfSideText.text = "$HOTKEY_INSTRUCTION_1&Outline";
hotkeysPanelComponent.tfSideTextShadow.text = "$HOTKEY_INSTRUCTION_1&Outline";
}
function setHotkeyTab(groupId)
{
trace("feg_m_optionsSettings::setHotkeyTab groupId: " + groupId);
// Checked
getUrl("FSCommand:CallGameFunction", "%DetachMappingHotKey");
var lbHotkeysPanelComponent = Cafe2_BaseUIScreen.m_screen.screenMC.hotkeysPanel;
this.m_hotKeyGroup = groupId;
lbHotkeysPanelComponent.lbHotkeys.setSelectedIndex(-1);
var ret = new Object();
// Checked
loadVariables("QueryGameEngine?HOTKEY_LABELS?Group=" + groupId + "&HOTKEYS?Group=" + groupId,ret);
var hotkeyLabels = new Array();
hotkeyLabels = ret.HOTKEY_LABELS.split(",");
mappings = ret.HOTKEYS.split(",");
if(hotkeyLabels.length != mappings.length)
{
trace("HOTKEYS ERROR! labels.length != mappings.length");
}
for(var i = 0; i < hotkeyLabels.length; ++i)
{
hotkeyLabels[i] = "$" + hotkeyLabels[i] + "&Outline";
mappings[i] = "$" + mappings[i] + "&Outline";
}
lbHotkeysPanelComponent.lbHotkeys.setColumnData(0,hotkeyLabels);
lbHotkeysPanelComponent.lbHotkeys.setColumnData(1,mappings);
lbHotkeysPanelComponent.lbHotkeys.refreshDisplay();
lbHotkeysPanelComponent.lbHotkeys.moveViewToFirst();
lbHotkeysPanelComponent.btnSideBar.setSelected(groupId == feg_m_optionsSettings.HOTKEY_SIDEBAR);
lbHotkeysPanelComponent.btnUnitCommands.setSelected(groupId == feg_m_optionsSettings.HOTKEY_UNIT_COMMANDS);
lbHotkeysPanelComponent.btnPlayerPowers.setSelected(groupId == feg_m_optionsSettings.HOTKEY_PLAYER_POWERS);
lbHotkeysPanelComponent.btnCamera.setSelected(groupId == feg_m_optionsSettings.HOTKEY_CAMERA);
lbHotkeysPanelComponent.btnBookmarks.setSelected(groupId == feg_m_optionsSettings.HOTKEY_BOOKMARKS);
lbHotkeysPanelComponent.btnMisc.setSelected(groupId == feg_m_optionsSettings.HOTKEY_MISC);
}
function OnListboxIndexMouseClick(index, previouslySelectedIndex)
{
trace("feg_m_optionsSettings::OnListboxIndexMouseClick index = " + index + " previouslySelectedIndex = " + previouslySelectedIndex);
var lbHotkeysPanelComponent = Cafe2_BaseUIScreen.m_screen.screenMC.hotkeysPanel;
lbHotkeysPanelComponent.tfSideText.text = "$HOTKEY_INSTRUCTION_2&Outline";
lbHotkeysPanelComponent.tfSideTextShadow.text = "$HOTKEY_INSTRUCTION_2&Outline";
var ret = new Object();
// Checked
loadVariables("QueryGameEngine?HOTKEYS?Group=" + this.m_hotKeyGroup,ret);
var hotkeys = new Array();
hotkeys = ret.HOTKEYS.split(",");
for(var i = 0; i < hotkeys.length; ++i)
{
hotkeys[i] = "$" + hotkeys[i] + "&Outline";
}
hotkeys[index] = "$HOTKEYS_MAPPING";
lbHotkeysPanelComponent.lbHotkeys.setColumnData(1,hotkeys);
lbHotkeysPanelComponent.lbHotkeys.refreshDisplay();
lbHotkeysPanelComponent.lbHotkeys.refreshScrollbar();
// Checked
getURL("FSCommand:CallGameFunction","%StartMappingHotKey?|Group=" + this.m_hotKeyGroup + "|KeyIndex=" + index);
}
function OnClearAllClicked()
{
trace("feg_m_optionsSettings::OnClearAllClicked ");
this.RefreshHotkeysList();
// Checked
getUrl("FSCommand:CallGameFunction", "%ClearAllHotkeysSettings");
}
function RefreshAudioControls()
{
var audioPanelComponent = Cafe2_BaseUIScreen.m_screen.screenMC.audioPanel;
this.InitAudioSlider(audioPanelComponent.music,"AUDIO_MUSIC_LEVEL");
this.InitAudioSlider(audioPanelComponent.soundFX,"AUDIO_SOUNDFX_LEVEL");
this.InitAudioSlider(audioPanelComponent.voice,"AUDIO_VOICE_LEVEL");
this.InitAudioSlider(audioPanelComponent.ambient,"AUDIO_AMBIENT_LEVEL");
this.InitAudioSlider(audioPanelComponent.movie,"AUDIO_MOVIE_LEVEL");
this.InitAudioCheckbox(audioPanelComponent.highQuality,"AUDIO_HIGH_AQ");
if(this.m_isInGame)
{
audioPanelComponent.highQuality.disable();
}
this.InitAudioCheckbox(audioPanelComponent.voipEnable,"AUDIO_VOIP_ENABLE");
this.InitAudioSlider(audioPanelComponent.voipReceive,"AUDIO_VOIP_RECEIVE_LEVEL");
this.InitAudioSlider(audioPanelComponent.voipTransmit,"AUDIO_VOIP_TRANSMIT_LEVEL");
this.InitAudioCheckbox(audioPanelComponent.voipBoost,"AUDIO_VOIP_BOOST_MIC_GAIN");
var audioControlDataRaw = this.GetAudioControlData("AUDIO_VOIP_ACTIVATION");
switch(Number(audioControlDataRaw.DATA))
{
case feg_m_optionsSettings.VOIP_ACTIVATION_PUSHTOTALK:
audioPanelComponent.voipPushToTalk.mouseEventCheckBoxPress();
break;
case feg_m_optionsSettings.VOIP_ACTIVATION_VOLUME:
audioPanelComponent.voipVoiceActivated.mouseEventCheckBoxPress();
}
var audioControlDataRaw = this.GetAudioControlData("AUDIO_VOIP_ENABLE");
if(Number(audioControlDataRaw.DATA) != 0)
{
if(!audioPanelComponent.voipReceive.isEnabled())
{
audioPanelComponent.voipReceive.enable();
}
if(!audioPanelComponent.voipTransmit.isEnabled())
{
audioPanelComponent.voipTransmit.enable();
}
audioPanelComponent.voipBoost.enable();
audioPanelComponent.voipVoiceActivated.enable();
audioPanelComponent.voipPushToTalk.enable();
audioPanelComponent.voiceCalibrationButton.enable();
}
else
{
audioPanelComponent.voipReceive.disable();
audioPanelComponent.voipTransmit.disable();
audioPanelComponent.voipBoost.disable();
audioPanelComponent.voipVoiceActivated.disable();
audioPanelComponent.voipPushToTalk.disable();
audioPanelComponent.voiceCalibrationButton.disable();
}
this.refreshVoiceCalibrationBar();
}
function RefreshGeneralControls()
{
var generalPanelComponent = Cafe2_BaseUIScreen.m_screen.screenMC.generalPanel;
this.InitGeneralSlider(generalPanelComponent.mouseSensitivity,"GAME_MOUSE_SENSITIVITY");
this.InitGeneralSlider(generalPanelComponent.tooltipDelay,"GAME_TOOLTIP_DELAY");
this.InitGeneralCheckbox(generalPanelComponent.classicMouse,"GAME_CLASSIC_MOUSE");
this.InitGeneralCheckbox(generalPanelComponent.news,"GAME_SHOW_NEWS");
this.InitGeneralCheckbox(generalPanelComponent.ads,"GAME_SHOW_ADS");
this.InitGeneralCheckbox(generalPanelComponent.subtitles,"GAME_SHOW_SUBTITLES");
}
function SetGameVersionText(generalPanel)
{
var ret = new Object();
// Checked
loadVariables("QueryGameEngine?GAME_VERSION",ret);
generalPanel.gameVersion.text = ret.GAME_VERSION + "&Outline";
}
function RefreshGraphicsControls()
{
var graphicsPanelComponent = Cafe2_BaseUIScreen.m_screen.screenMC.gfxPanel;
this.InitGFXDropdownMenu(graphicsPanelComponent.presets,"GFX_PRESET");
this.InitGFXDropdownMenu(graphicsPanelComponent.resolution,"GFX_RESOLUTION");
this.InitGFXDropdownMenu(graphicsPanelComponent.antialiasing,"GFX_ANTIALIASING");
this.InitGFXDropdownMenu(graphicsPanelComponent.terrainDetail,"GFX_TERRAIN_DETAIL");
this.InitGFXDropdownMenu(graphicsPanelComponent.waterDetail,"GFX_WATER_DETAIL");
this.InitGFXDropdownMenu(graphicsPanelComponent.modelDetail,"GFX_MODEL_DETAIL");
this.InitGFXDropdownMenu(graphicsPanelComponent.textureQuality,"GFX_TEXTURE_QUALITY");
this.InitSlider(graphicsPanelComponent.brightness,this.GetGraphicsControlData("GFX_BRIGHTNESS_LEVEL"),this.OnBrightnessChange);
this.InitGFXDropdownMenu(graphicsPanelComponent.shaderDetail,"GFX_SHADER_DETAIL");
this.InitGFXDropdownMenu(graphicsPanelComponent.vfxDetail,"GFX_VFX_DETAIL");
this.InitGFXDropdownMenu(graphicsPanelComponent.shadowDetail,"GFX_SHADOW_DETAIL");
this.InitGFXDropdownMenu(graphicsPanelComponent.animationDetail,"GFX_ANIMATION_DETAIL");
this.InitGFXDropdownMenu(graphicsPanelComponent.controlVSync,"GFX_CONTROL_VSYNC");
}
function RefreshHotKeysControls()
{
trace("RefreshHotKeysControls()");
this.setHotkeyTab(this.m_hotKeyGroup);
Cafe2_BaseUIScreen.m_screen.screenMC.hotkeysPanel.tfSideText.text = "$HOTKEY_INSTRUCTION_1&Outline";
Cafe2_BaseUIScreen.m_screen.screenMC.hotkeysPanel.tfSideTextShadow.text = "$HOTKEY_INSTRUCTION_1&Outline";
}
function RefreshHotkeysList()
{
var ret = new Object();
// Checked
loadVariables("QueryGameEngine?HOTKEYS?Group=" + this.m_hotKeyGroup,ret);
var hotkeys = new Array();
hotkeys = ret.HOTKEYS.split(",");
for(var i = 0; i < hotkeys.length; ++i)
{
hotkeys[i] = "$" + hotkeys[i] + "&Outline";
}
panel.lbHotkeys.setColumnData(1,hotkeys);
panel.lbHotkeys.refreshDisplay();
panel.lbHotkeys.refreshScrollbar();
// Checked
getUrl("FSCommand:CallGameFunction", "%DetachMappingHotKey");
}
function RefreshNetworkControls()
{
var networkPanelComponent = Cafe2_BaseUIScreen.m_screen.screenMC.networkPanel;
var ret = new Object();
// Checked
loadVariables("QueryGameEngine?NETWORK_SETTING_IPS&NETWORK_SETTING_PORT&NETWORK_SETTING_SENDDELAY&NETWORK_SETTING_TELEMETRY",ret);
networkPanelComponent.portNumber.setContents(ret.NETWORK_SETTING_PORT);
var obj = new Object();
obj.DATA_LABELS = ret.NETWORK_SETTING_IPS_LABELS;
obj.DATA_VALUES = ret.NETWORK_SETTING_IPS_VALUES;
this.InitDropdownMenu(networkPanelComponent.onlineIP,obj,this.OnNetworkIPChange,true);
Number(ret.NETWORK_SETTING_SENDDELAY) == 0 ? networkPanelComponent.sendDelay.unCheck() : networkPanelComponent.sendDelay.check();
networkPanelComponent.sendDelay.setOnChange(this.OnNetworkSendDelayChange);
Number(ret.NETWORK_SETTING_TELEMETRY_VALUE) == 0 ? networkPanelComponent.telemetry.unCheck() : networkPanelComponent.telemetry.check();
Number(ret.NETWORK_SETTING_TELEMETRY_ENABLE) == 0 ? networkPanelComponent.telemetry.disable() : networkPanelComponent.telemetry.enable();
networkPanelComponent.telemetry.setOnChange(this.OnNetworkTelemetryChange);
}
function refreshVoiceCalibrationBar()
{
var audioWidth = 0;
if(this.m_isVoiceCalibrationActive)
{
var audioControlDataRaw = this.GetAudioControlData("AUDIO_VOIP_CALIBRATION_LEVEL");
audioWidth = audioControlDataRaw.DATA;
this.setVoipCheckBoxes(feg_m_optionsSettings.VOIP_CHECK_BOXES_DISABLED);
}
var ratio = this.m_voiceBarMax - this.m_voiceBarMin;
this.setCalibrationBarWidth(ratio * audioWidth);
}
function setCalibrationBarWidth(barWidth)
{
var voiceCalibrationBarComponent = Cafe2_BaseUIScreen.m_screen.screenMC.audioPanel.voiceCalibrationBar;
voiceCalibrationBarComponent._width = barWidth;
voiceCalibrationBarComponent._x = this.m_voiceBarMin;
}
function setVoipCheckBoxes(boxesDisabled)
{
var audioPanelComponent = Cafe2_BaseUIScreen.m_screen.screenMC.audioPanel;
if(boxesDisabled == feg_m_optionsSettings.VOIP_CHECK_BOXES_DISABLED)
{
audioPanelComponent.voipVoiceActivated.disable();
audioPanelComponent.voipPushToTalk.disable();
audioPanelComponent.voipEnable.disable();
}
else
{
audioPanelComponent.voipVoiceActivated.enable();
audioPanelComponent.voipPushToTalk.enable();
audioPanelComponent.voipEnable.enable();
}
}
function stopVoiceCalibration()
{
if(this.m_isVoiceCalibrationActive)
{
this.OnVoiceCalibrationClicked();
}
}
function cancelAllSettingsChanges()
{
// Checked
getUrl("FSCommand:CallGameFunction", "%CancelAudioSettings");
// Checked
getUrl("FSCommand:CallGameFunction", "%CancelGameSettings");
// Checked
getUrl("FSCommand:CallGameFunction", "%CancelGraphicsSettings");
// Checked
getUrl("FSCommand:CallGameFunction", "%CancelHotkeysSettings");
// Checked
getUrl("FSCommand:CallGameFunction", "%CancelNetworkSettings");
this.stopVoiceCalibration();
this.backButtonClicked();
}
function OnAudioSliderChange(control, value)
{
// Checked
getURL("FSCommand:CallGameFunction","%SetAudioSetting?Setting=" + String(control.settingID) + "|Value=" + String(value));
}
function OnGeneralSliderChange(control, value)
{
// Checked
getURL("FSCommand:CallGameFunction","%SetGameSetting?Setting=" + String(control.settingID) + "|Value=" + String(value));
}
function OnAudioSliderDragUpdate(control, value)
{
// Checked
getURL("FSCommand:CallGameFunction","%SetAudioSettingDragUpdate?Setting=" + String(control.settingID) + "|Value=" + String(value));
}
function OnGFXDropdownChange(control)
{
// Checked
var str = String(control.getValueAtIndex(control.getCurrentIndex()));
getURL("FSCommand:CallGameFunction","%SetGraphicsSetting?Setting=" + String(control.settingID) + "|Value=" + str);
}
function OnBrightnessChange(control, value)
{
// Checked
getURL("FSCommand:CallGameFunction","%SetGraphicsSetting?Setting=GFX_BRIGHTNESS_LEVEL|Value=" + String(value));
}
function OnAudioCBChange(control, value)
{
// Checked
getURL("FSCommand:CallGameFunction","%SetAudioSetting?Setting=" + String(control.settingID) + "|Value=" + (!Boolean(value) ? "0" : "1"));
}
function OnGeneralCBChange(control, value)
{
// Checked
getURL("FSCommand:CallGameFunction","%SetGameSetting?Setting=" + String(control.settingID) + "|Value=" + (!Boolean(value) ? "0" : "1"));
}
function OnNetworkIPChange(control)
{
// Checked
getURL("FSCommand:CallGameFunction","%SetNetworkSetting?IP=" + String(control.getValueAtIndex(control.getCurrentIndex())));
}
function OnNetworkSendDelayChange(control, value)
{
// Checked
getURL("FSCommand:CallGameFunction","%SetNetworkSetting?SendDelay=" + (!value ? "0" : "1"));
}
function OnNetworkTelemetryChange(control, value)
{
// Checked
getURL("FSCommand:CallGameFunction","%SetNetworkSetting?Telemetry=" + (!value ? "0" : "1"));
}
function OnVoiceCalibrationClicked()
{
this.m_isVoiceCalibrationActive = !this.m_isVoiceCalibrationActive;
var audioPanelComponent = Cafe2_BaseUIScreen.m_screen.screenMC.audioPanel;
var voiceCalibrationButtonComponent = audioPanelComponent.voiceCalibrationButton;
var voiceCalibrationBarComponent = audioPanelComponent.voiceCalibrationBar;
if(this.m_isVoiceCalibrationActive)
{
voiceCalibrationButtonComponent.setText("$GUI:VOICE_CALIBRATION_STOP");
}
else
{
voiceCalibrationButtonComponent.setText("$GUI:VOICE_CALIBRATION_START");
this.setCalibrationBarWidth(0);
this.setVoipCheckBoxes(feg_m_optionsSettings.VOIP_CHECK_BOXES_ENABLED);
}
// Checked
getURL("FSCommand:CallGameFunction","%SetVoiceCalibration?On=" + (!this.m_isVoiceCalibrationActive ? "0" : "1"));
}
}
@@ -0,0 +1,2 @@
stop();
var screen = new feg_m_optionsSettings(this);
@@ -0,0 +1,6 @@
on(construct){
m_title = "$SETTINGS";
m_DropShadow = true;
m_Outline = true;
m_visible = true;
}