first commit
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
on(construct){
|
||||
m_visLines = 15;
|
||||
m_width = 420;
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
on(construct){
|
||||
m_visLines = 21;
|
||||
m_width = 200;
|
||||
m_configurationType = 1;
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
on(construct){
|
||||
m_visLines = 16;
|
||||
m_width = 424;
|
||||
}
|
||||
+18
@@ -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 = "$APT:CommInviteDecline";
|
||||
m_bEnabled = true;
|
||||
m_refFM = "_root.gFM";
|
||||
m_initiallySelected = false;
|
||||
m_tabIndex = 2;
|
||||
m_bVisible = true;
|
||||
m_contentSymbol = "buttonContentSymbol";
|
||||
}
|
||||
+18
@@ -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 = "$APT:CommInviteAccept";
|
||||
m_bEnabled = true;
|
||||
m_refFM = "_root.gFM";
|
||||
m_initiallySelected = false;
|
||||
m_tabIndex = 1;
|
||||
m_bVisible = true;
|
||||
m_contentSymbol = "buttonContentSymbol";
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
this._parent.introComplete();
|
||||
stop();
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
this._parent.outtroComplete();
|
||||
stop();
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
on(construct){
|
||||
m_visibleEntries = 16;
|
||||
m_entryHeight = 25;
|
||||
m_entryPaddingV = 0;
|
||||
m_listboxWidth = 0;
|
||||
m_listboxHeight = 0;
|
||||
}
|
||||
+18
@@ -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 = "$INVITE";
|
||||
m_bEnabled = false;
|
||||
m_refFM = "_root.gFM";
|
||||
m_initiallySelected = false;
|
||||
m_tabIndex = 20;
|
||||
m_bVisible = true;
|
||||
m_contentSymbol = "buttonContentSymbol";
|
||||
}
|
||||
+10
@@ -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 = "$APT:CommLogoutTab";
|
||||
m_contentSymbol = "tab_button_symbol";
|
||||
}
|
||||
+10
@@ -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 = "$Apt:CommLoginTab";
|
||||
m_contentSymbol = "tab_button_symbol";
|
||||
}
|
||||
+10
@@ -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 = "$APT:CommInvitesTab";
|
||||
m_contentSymbol = "tab_button_symbol";
|
||||
}
|
||||
+10
@@ -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 = "$APT:CommFriendsTab";
|
||||
m_contentSymbol = "tab_button_symbol";
|
||||
}
|
||||
+10
@@ -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 = "$APT:CommLobbiesTab";
|
||||
m_contentSymbol = "tab_button_symbol";
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
on(construct){
|
||||
m_focusDirs = "Up/Down";
|
||||
m_bEnabled = true;
|
||||
m_refFM = "_global.gFM";
|
||||
m_initiallySelected = false;
|
||||
m_tabIndex = 40;
|
||||
m_bVisible = true;
|
||||
m_label = "$APT:CLOSE";
|
||||
m_contentSymbol = "closeButtonContentClipSymbol";
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
gotoAndStop("_off");
|
||||
play();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
gotoAndStop("_off");
|
||||
play();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
stop();
|
||||
this._parent.introComplete();
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
stop();
|
||||
this._parent.outtroComplete();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
stop();
|
||||
this._parent.introComplete();
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
stop();
|
||||
this._parent.outtroComplete();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
on(construct){
|
||||
m_focusDirs = "Up/Down";
|
||||
m_numEntries = 1;
|
||||
m_vPadding = 5;
|
||||
m_bEnabled = false;
|
||||
m_refFM = "_root.gFM";
|
||||
m_initiallySelected = false;
|
||||
m_tabIndex = -1;
|
||||
m_bVisible = true;
|
||||
m_scrollbarOffset = [];
|
||||
m_scrollbarOffset[0] = 0;
|
||||
m_scrollbarOffset[1] = 0;
|
||||
m_BgVisible = false;
|
||||
m_renderWidth = 460;
|
||||
m_renderHeight = 462;
|
||||
m_backgroundMargin = 2;
|
||||
m_useHighlights = true;
|
||||
m_alternateBackgroundColors = false;
|
||||
m_backgroundColor1 = 0;
|
||||
m_backgroundColor2 = 0;
|
||||
}
|
||||
+18
@@ -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 = "$APT:Accept";
|
||||
m_bEnabled = true;
|
||||
m_refFM = "_root.gFM";
|
||||
m_initiallySelected = false;
|
||||
m_tabIndex = 100;
|
||||
m_bVisible = true;
|
||||
m_contentSymbol = "buttonContentSymbol";
|
||||
}
|
||||
+18
@@ -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 = "$DECLINE_TOS_BUTTON_LABEL";
|
||||
m_bEnabled = true;
|
||||
m_refFM = "_global.gFM";
|
||||
m_initiallySelected = false;
|
||||
m_tabIndex = 101;
|
||||
m_bVisible = true;
|
||||
m_contentSymbol = "buttonContentSymbol";
|
||||
}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
on(construct){
|
||||
m_nLength = 100;
|
||||
m_nMax = 10;
|
||||
m_nMin = 0;
|
||||
m_nValue = 0;
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
on(construct){
|
||||
m_numLines = 0;
|
||||
m_width = 475;
|
||||
m_chatMode = 0;
|
||||
m_preservePlacement = false;
|
||||
m_height = 298;
|
||||
}
|
||||
+18
@@ -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 = "$APT:CommLoginLogout";
|
||||
m_bEnabled = true;
|
||||
m_refFM = "_root.gFM";
|
||||
m_initiallySelected = false;
|
||||
m_tabIndex = 1;
|
||||
m_bVisible = true;
|
||||
m_contentSymbol = "buttonContentSymbol";
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
top.text = this.m_text + "&Outline";
|
||||
drop.text = this.m_text;
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
top.text = this.m_text + "&Outline";
|
||||
drop.text = this.m_text;
|
||||
+18
@@ -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 = "$APT:CommLoginLogin";
|
||||
m_bEnabled = true;
|
||||
m_refFM = "_root.gFM";
|
||||
m_initiallySelected = false;
|
||||
m_tabIndex = 3;
|
||||
m_bVisible = true;
|
||||
m_contentSymbol = "buttonContentSymbol";
|
||||
}
|
||||
+18
@@ -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 = "$ONLINEREGISTER";
|
||||
m_bEnabled = true;
|
||||
m_refFM = "_root.gFM";
|
||||
m_initiallySelected = false;
|
||||
m_tabIndex = 4;
|
||||
m_bVisible = true;
|
||||
m_contentSymbol = "buttonContentSymbol";
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
on(construct){
|
||||
m_focusDirs = "Up/Down";
|
||||
m_bEnabled = true;
|
||||
m_refFM = "_root.gFM";
|
||||
m_initiallySelected = false;
|
||||
m_tabIndex = 5;
|
||||
m_bVisible = true;
|
||||
m_label = "$OFFICIALWEBSITE";
|
||||
m_contentSymbol = "buttonContentSymbol";
|
||||
}
|
||||
+18
@@ -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 = "$MAIN_MENU_BUTTON";
|
||||
m_bEnabled = true;
|
||||
m_refFM = "_root.gFM";
|
||||
m_initiallySelected = false;
|
||||
m_tabIndex = 20;
|
||||
m_bVisible = true;
|
||||
m_contentSymbol = "buttonContentSymbol";
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
on(construct){
|
||||
m_width = 425;
|
||||
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 = 2;
|
||||
m_bVisible = true;
|
||||
m_password = false;
|
||||
m_charLimit = 16;
|
||||
m_allowHorzScroll = false;
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
on(construct){
|
||||
m_width = 425;
|
||||
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 = 0;
|
||||
m_bVisible = true;
|
||||
m_password = false;
|
||||
m_charLimit = 128;
|
||||
m_allowHorzScroll = true;
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
on(construct){
|
||||
m_width = 425;
|
||||
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_password = true;
|
||||
m_charLimit = 32;
|
||||
m_allowHorzScroll = false;
|
||||
}
|
||||
+18
@@ -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";
|
||||
}
|
||||
+18
@@ -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";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
on(construct){
|
||||
m_text = "$APT:CommLoginAccountName";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
on(construct){
|
||||
m_text = "$APT:CommLoginPassword";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
on(construct){
|
||||
m_text = "$APT:CommLoginOnlineID";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
on(construct){
|
||||
m_text = "$GUI:REMEMBERPASSWORD";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
on(construct){
|
||||
m_text = "$GUI:AUTOLOGIN";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
on(construct){
|
||||
m_text = "$APT:LOGINSTATUS";
|
||||
}
|
||||
+144
@@ -0,0 +1,144 @@
|
||||
class comLinkNotification
|
||||
{
|
||||
var m_messageQueue = new Array();
|
||||
static var STATE_NONE = 0;
|
||||
static var STATE_FLY_OUT = 1;
|
||||
static var STATE_FLY_IN = 2;
|
||||
static var STATE_MESSAGE_HOLD = 3;
|
||||
static var FRAMES_FLY_OUT = 15;
|
||||
static var FRAMES_FLY_IN = 20;
|
||||
static var FRAMES_MESSAGE_HOLD = 100;
|
||||
function comLinkNotification(clip)
|
||||
{
|
||||
this.m_mc = clip;
|
||||
this.init();
|
||||
}
|
||||
function shutdown()
|
||||
{
|
||||
this.clear();
|
||||
this.m_mc.onEnterFrame = null;
|
||||
this.m_mc = null;
|
||||
delete _global.comLinkNotification;
|
||||
}
|
||||
function queueMessage(msg, hold)
|
||||
{
|
||||
if(hold == undefined)
|
||||
{
|
||||
hold = comLinkNotification.FRAMES_MESSAGE_HOLD;
|
||||
}
|
||||
this.m_messageQueue.push({message:msg,hold:hold});
|
||||
}
|
||||
function clear()
|
||||
{
|
||||
this.m_messageQueue = new Array();
|
||||
this.setText("");
|
||||
this.hide();
|
||||
this.m_state = comLinkNotification.STATE_NONE;
|
||||
}
|
||||
function init()
|
||||
{
|
||||
this.m_mc.slidingText.dtext.autoSize = "none";
|
||||
this.m_textRightEdge = this.m_mc.slidingText.dtext._x + this.m_mc.slidingText.dtext.textWidth;
|
||||
this.m_mc.slidingText.dtext.autoSize = "left";
|
||||
this.m_textMarginLeft = this.m_textRightEdge - this.m_mc.slidingText.bg._x - this.m_mc.slidingText.dtext.textWidth;
|
||||
this.m_bgBorderWidth = this.m_mc.slidingText.bg._x - this.m_mc.slidingText.border._x;
|
||||
this.m_bgSlopWidth = this.m_mc.slidingText.bg._width - this.m_mc.slidingText.dtext.textWidth;
|
||||
this.m_exposedX = this.m_mc.slidingText._x;
|
||||
this.clear();
|
||||
this.m_mc.onEnterFrame = _global.bind0(this,this.update);
|
||||
}
|
||||
function show()
|
||||
{
|
||||
this.m_mc.slidingText._visible = true;
|
||||
}
|
||||
function hide()
|
||||
{
|
||||
this.m_mc.slidingText._visible = false;
|
||||
}
|
||||
function setText(str)
|
||||
{
|
||||
this.m_mc.slidingText.dtext.text = "";
|
||||
this.m_mc.slidingText.dtext.text = str;
|
||||
var textBorderWidth = this.m_textRightEdge - this.m_mc.slidingText.dtext.textWidth;
|
||||
this.m_mc.slidingText.dtext._x = textBorderWidth;
|
||||
this.m_mc.slidingText.bg._x = textBorderWidth - this.m_textMarginLeft;
|
||||
this.m_mc.slidingText.border._x = textBorderWidth - this.m_textMarginLeft - this.m_bgBorderWidth;
|
||||
var _loc3_ = this.m_mc.slidingText.dtext.textWidth + this.m_bgSlopWidth;
|
||||
this.m_mc.slidingText.bg._xscale = _loc3_;
|
||||
this.m_mc.slidingText.border._xscale = _loc3_;
|
||||
}
|
||||
function startFlyOut()
|
||||
{
|
||||
this.m_mc.slidingText._x = this.m_exposedX + this.m_mc.slidingText.dtext.textWidth + this.m_bgSlopWidth;
|
||||
this.show();
|
||||
this.m_state = comLinkNotification.STATE_FLY_OUT;
|
||||
this.m_hiddenX = this.m_mc.slidingText._x;
|
||||
this.m_frameCount = 0;
|
||||
}
|
||||
function startMessageHold()
|
||||
{
|
||||
this.m_state = comLinkNotification.STATE_MESSAGE_HOLD;
|
||||
this.m_frameCount = this.m_messageQueue[0].hold;
|
||||
}
|
||||
function startFlyIn()
|
||||
{
|
||||
this.m_state = comLinkNotification.STATE_FLY_IN;
|
||||
this.m_frameCount = 0;
|
||||
}
|
||||
function update()
|
||||
{
|
||||
switch(this.m_state)
|
||||
{
|
||||
case comLinkNotification.STATE_FLY_OUT:
|
||||
this.m_frameCount = this.m_frameCount + 1;
|
||||
var _loc3_ = Math.pow(this.m_frameCount / comLinkNotification.FRAMES_FLY_OUT,0.5);
|
||||
this.m_mc.slidingText._x = this.lerp(this.m_hiddenX,this.m_exposedX,_loc3_);
|
||||
if(this.m_frameCount >= comLinkNotification.FRAMES_FLY_OUT)
|
||||
{
|
||||
this.startMessageHold();
|
||||
}
|
||||
break;
|
||||
case comLinkNotification.STATE_FLY_IN:
|
||||
this.m_frameCount = this.m_frameCount + 1;
|
||||
_loc3_ = Math.pow(this.m_frameCount / comLinkNotification.FRAMES_FLY_IN,2);
|
||||
this.m_mc.slidingText._x = this.lerp(this.m_exposedX,this.m_hiddenX,_loc3_);
|
||||
if(this.m_frameCount >= comLinkNotification.FRAMES_FLY_IN)
|
||||
{
|
||||
this.m_messageQueue.splice(0,1);
|
||||
this.hide();
|
||||
this.m_state = comLinkNotification.STATE_NONE;
|
||||
}
|
||||
break;
|
||||
case comLinkNotification.STATE_MESSAGE_HOLD:
|
||||
this.m_frameCount = this.m_frameCount - 1;
|
||||
if(this.m_frameCount <= 0)
|
||||
{
|
||||
this.startFlyIn();
|
||||
}
|
||||
break;
|
||||
case comLinkNotification.STATE_NONE:
|
||||
if(this.m_messageQueue.length > 0)
|
||||
{
|
||||
this.setText(this.m_messageQueue[0].message);
|
||||
this.startFlyOut();
|
||||
}
|
||||
else
|
||||
{
|
||||
var ret = new Object();
|
||||
// Checked
|
||||
loadVariables("QueryGameEngine?ComlinkNotificationMessage",ret);
|
||||
if(ret.ComlinkNotificationMessage != undefined)
|
||||
{
|
||||
this.queueMessage(ret.ComlinkNotificationMessage);
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
trace("***** ERROR: comLinkNotification is in an unknown state. *****");
|
||||
}
|
||||
}
|
||||
function lerp(numFrom, numTo, frac)
|
||||
{
|
||||
return numFrom + (numTo - numFrom) * frac;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,626 @@
|
||||
class feg_m_comLink
|
||||
{
|
||||
var m_isAutoMatchFriendInvite = false;
|
||||
static var COMLINK_BUTTON_WIDE_SCREEN_X_POS = 1100;
|
||||
static var COMLINK_BUTTON_WIDE_SCREEN_Y_POS = 10;
|
||||
static var COMM_CONTEXT_FRIENDS = 1;
|
||||
static var COMM_CONTEXT_INVITES = 2;
|
||||
static var COMM_CONTEXT_LOBBIES = 3;
|
||||
static var COMM_CONTEXT_LOGIN = 4;
|
||||
static var COMM_CONTEXT_LOGOUT = 5;
|
||||
static var COMM_CONFIG_DISABLED = 1;
|
||||
static var COMM_CONFIG_LOGIN = 2;
|
||||
static var COMM_CONFIG_LOGOUT = 3;
|
||||
static var COMM_STATUS_ONLINE = 1;
|
||||
static var COMM_STATUS_OFFLINE = 2;
|
||||
function feg_m_comLink(screen)
|
||||
{
|
||||
feg_m_comLink.m_screen = screen;
|
||||
this.m_localMessageHandlerFunc = _global.bind1DynamicParams(this,this.localMessageHandler);
|
||||
this.m_playerSelectedHandler = _global.bind1DynamicParams(this,this.onPlayerSelected);
|
||||
this.m_friendSelectedHandler = _global.bind1DynamicParams(this,this.onFriendSelected);
|
||||
this.m_inviteSelectedHandler = _global.bind1DynamicParams(this,this.onInviteSelected);
|
||||
feg_m_comLink.m_screen.onEnterFrame = _global.bind0(this,this.FrameDelayedInit);
|
||||
this.m_isVisible = false;
|
||||
this.m_notification = new comLinkNotification(feg_m_comLink.m_screen.notificationMC);
|
||||
feg_m_comLink.m_screen.notificationMC._x = feg_m_comLink.COMLINK_BUTTON_WIDE_SCREEN_X_POS;
|
||||
feg_m_comLink.m_screen.notificationMC._y = feg_m_comLink.COMLINK_BUTTON_WIDE_SCREEN_Y_POS;
|
||||
feg_m_comLink.m_screen.expandButton._x = feg_m_comLink.COMLINK_BUTTON_WIDE_SCREEN_X_POS;
|
||||
feg_m_comLink.m_screen.expandButton._y = feg_m_comLink.COMLINK_BUTTON_WIDE_SCREEN_Y_POS;
|
||||
}
|
||||
function shutdown()
|
||||
{
|
||||
this.m_notification.shutdown();
|
||||
delete this.m_notification;
|
||||
_global.gMH.removeMessageHandler(this.m_localMessageHandlerFunc);
|
||||
delete this.m_localMessageHandlerFunc;
|
||||
feg_m_comLink.m_screen.panelMC.commPanelMC.lobbiesMC.playerlist.removeListener(this.m_playerSelectedHandler);
|
||||
delete this.m_playerSelectedHandler;
|
||||
feg_m_comLink.m_screen.panelMC.commPanelMC.friendsMC.buddylist.removeListener(this.m_friendSelectedHandler);
|
||||
delete this.m_friendSelectedHandler;
|
||||
feg_m_comLink.m_screen.panelMC.commPanelMC.invitesMC.inviteListMC.removeListener(this.m_inviteSelectedHandler);
|
||||
delete this.m_inviteSelectedHandler;
|
||||
feg_m_comLink.m_screen = null;
|
||||
delete _global.feg_m_comLink;
|
||||
}
|
||||
function open()
|
||||
{
|
||||
this.OpenComlink();
|
||||
}
|
||||
function close()
|
||||
{
|
||||
this.CloseComlink();
|
||||
}
|
||||
function OnMinimized()
|
||||
{
|
||||
feg_m_comLink.m_screen.buttonGuard._visible = feg_m_comLink.m_screen.panelMC._visible = false;
|
||||
}
|
||||
function OnMaximized()
|
||||
{
|
||||
}
|
||||
function flashIcon()
|
||||
{
|
||||
var _loc1_ = feg_m_comLink.m_screen.expandButton.m_contentClip.gameInviteStateMC;
|
||||
_loc1_.gotoAndPlay("_on");
|
||||
return _loc1_._totalframes;
|
||||
}
|
||||
function realizeIconVisualState()
|
||||
{
|
||||
var ret = new Object();
|
||||
// Checked
|
||||
loadVariables("QueryGameEngine?ONLINE_SIGNED_IN",ret);
|
||||
if(Number(ret.ONLINE_SIGNED_IN) != 0)
|
||||
{
|
||||
this.setIconLit();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.setIconUnlit();
|
||||
}
|
||||
}
|
||||
function setIconLit()
|
||||
{
|
||||
feg_m_comLink.m_screen.expandButton.m_contentClip.onlineStateMC.gotoAndPlay("_onLine");
|
||||
}
|
||||
function setIconUnlit()
|
||||
{
|
||||
feg_m_comLink.m_screen.expandButton.m_contentClip.onlineStateMC.gotoAndPlay("_offLine");
|
||||
}
|
||||
function openForAutoMatchInvite()
|
||||
{
|
||||
this.m_isAutoMatchFriendInvite = true;
|
||||
this.SelectCommPanel(feg_m_comLink.COMM_CONTEXT_FRIENDS);
|
||||
this.OpenComlink();
|
||||
}
|
||||
function lock()
|
||||
{
|
||||
feg_m_comLink.m_screen.expandButton.disable();
|
||||
feg_m_comLink.m_screen.panelMC.closeButtonMC.disable();
|
||||
}
|
||||
function unlock()
|
||||
{
|
||||
feg_m_comLink.m_screen.expandButton.enable();
|
||||
feg_m_comLink.m_screen.panelMC.closeButtonMC.enable();
|
||||
}
|
||||
function onContextMenuEntrySelected(id, playerId)
|
||||
{
|
||||
if(id === _global.ENUM.CONTEXTMENU_WHISPER)
|
||||
{
|
||||
var ret = new Object();
|
||||
// Checked
|
||||
loadVariables("QueryGameEngine?WHISPER_PREFIX?Player=" + playerId,ret);
|
||||
feg_m_comLink.m_screen.panelMC.chatPanelMC.chatComponentMC.chatInputBox.setContents(String(ret.WHISPER_PREFIX));
|
||||
feg_m_comLink.m_screen.panelMC.chatPanelMC.chatComponentMC.chatInputBox.takeFocus();
|
||||
}
|
||||
}
|
||||
function localMessageHandler(messageCode)
|
||||
{
|
||||
var _loc3_ = true;
|
||||
switch(messageCode)
|
||||
{
|
||||
case _global.MSGCODE.FE_MP_ONLINE_FRIEND_REQUEST_RECEIVED:
|
||||
break;
|
||||
case _global.MSGCODE.FE_MP_ONLINE_FRIEND_STATUS_RECEIVED:
|
||||
break;
|
||||
case _global.MSGCODE.FE_MP_ONLINE_INVITE_RECEIVED:
|
||||
_global.playSound("RA3GameInvitation");
|
||||
feg_m_comLink.m_screen.expandButton.m_contentClip.gameInviteStateMC.gotoAndPlay("_on");
|
||||
this.m_notification.queueMessage("$COMLINKNOTICE:NEWGAMEINVITATIONRECEIVED");
|
||||
if(!this.m_isVisible)
|
||||
{
|
||||
this.SelectCommPanel(feg_m_comLink.COMM_CONTEXT_INVITES);
|
||||
}
|
||||
_loc3_ = false;
|
||||
break;
|
||||
case _global.MSGCODE.FE_MP_ONLINE_SIGN_IN_SUCCESS:
|
||||
this.exitPendingLoginState();
|
||||
this.ConfigureLoginLogoutPanels();
|
||||
feg_m_comLink.m_screen.panelMC.commPanelMC.friendsMC.buddyList.refresh();
|
||||
if(!this.m_isVisible)
|
||||
{
|
||||
this.m_notification.queueMessage("$BUDDY:ONLINENOTIFICATION");
|
||||
}
|
||||
_loc3_ = false;
|
||||
break;
|
||||
case _global.MSGCODE.FE_MP_ONLINE_DISCONNECTED:
|
||||
case _global.MSGCODE.FE_MP_ONLINE_SIGN_IN_FAILURE:
|
||||
case _global.MSGCODE.FE_MP_ONLINE_SIGN_OUT_SUCCESS:
|
||||
this.tosSetVisibility(false);
|
||||
this.exitPendingLoginState();
|
||||
feg_m_comLink.m_screen.panelMC.chatPanelMC.chatComponentMC.ClearHistory();
|
||||
this.ConfigureLoginLogoutPanels();
|
||||
_loc3_ = false;
|
||||
break;
|
||||
case _global.MSGCODE.FE_MP_ONLINE_TOS_SHOW:
|
||||
this.tosSetVisibility(true);
|
||||
break;
|
||||
default:
|
||||
_loc3_ = false;
|
||||
}
|
||||
return _loc3_;
|
||||
}
|
||||
function onPlayerSelected(index)
|
||||
{
|
||||
var ret = new Object();
|
||||
// Checked
|
||||
loadVariables("QueryGameEngine?LASTMOUSEPRESSTYPE",ret);
|
||||
if(Number(ret.LASTMOUSEPRESSTYPE) == _global.ENUM.MOUSEBUTTONPRESS_RIGHT)
|
||||
{
|
||||
var _loc4_ = feg_m_comLink.m_screen.panelMC.commPanelMC.lobbiesMC.playerlist.getPlayerIdAt(index);
|
||||
_global.contextMenu.screen.doDefaultPlayerContextMenu(_loc4_,_global.bind2DynamicParams(this,this.onContextMenuEntrySelected));
|
||||
}
|
||||
else if(Number(ret.LASTMOUSEPRESSTYPE) == _global.ENUM.MOUSEBUTTONPRESS_LEFT)
|
||||
{
|
||||
this.m_selectedPlayerId = feg_m_comLink.m_screen.panelMC.commPanelMC.lobbiesMC.playerlist.getPlayerID();
|
||||
feg_m_comLink.m_screen.panelMC.commPanelMC.friendsMC.buddylist.clearSelection();
|
||||
feg_m_comLink.m_screen.panelMC.chatPanelMC.chatComponentMC.setFocusedPlayerId(this.m_selectedPlayerId);
|
||||
}
|
||||
}
|
||||
function onFriendSelected(index)
|
||||
{
|
||||
var ret = new Object();
|
||||
// Checked
|
||||
loadVariables("QueryGameEngine?LASTMOUSEPRESSTYPE",ret);
|
||||
if(Number(ret.LASTMOUSEPRESSTYPE) == _global.ENUM.MOUSEBUTTONPRESS_RIGHT)
|
||||
{
|
||||
var _loc4_ = feg_m_comLink.m_screen.panelMC.commPanelMC.friendsMC.buddylist.getBuddyIdAt(index);
|
||||
_global.contextMenu.screen.doDefaultFriendContextMenu(_loc4_,_global.bind2DynamicParams(this,this.onContextMenuEntrySelected));
|
||||
}
|
||||
else
|
||||
{
|
||||
this.m_selectedPlayerId = feg_m_comLink.m_screen.panelMC.commPanelMC.friendsMC.buddyList.getPlayerID();
|
||||
feg_m_comLink.m_screen.panelMC.commPanelMC.lobbiesMC.playerlist.clearSelection();
|
||||
feg_m_comLink.m_screen.panelMC.chatPanelMC.chatComponentMC.setFocusedPlayerId(this.m_selectedPlayerId);
|
||||
this.updateInviteButton();
|
||||
}
|
||||
}
|
||||
function onInviteSelected(index)
|
||||
{
|
||||
var _loc1_ = feg_m_comLink.m_screen.panelMC.commPanelMC.invitesMC;
|
||||
if(index < 0)
|
||||
{
|
||||
_loc1_.acceptBTN.disable();
|
||||
_loc1_.declineBTN.disable();
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc1_.acceptBTN.enable();
|
||||
_loc1_.declineBTN.enable();
|
||||
}
|
||||
}
|
||||
function FrameDelayedInit()
|
||||
{
|
||||
feg_m_comLink.m_screen.onEnterFrame = null;
|
||||
_global.gMH.addPriorityMessageHandler(this.m_localMessageHandlerFunc,0);
|
||||
var _loc5_ = feg_m_comLink.m_screen.panelMC.commPanelMC;
|
||||
_loc5_.lobbiesMC.playerlist.addListener(this.m_playerSelectedHandler);
|
||||
_loc5_.friendsMC.buddylist.addlistener(this.m_friendSelectedHandler);
|
||||
_loc5_.invitesMC.inviteListMC.addListener(this.m_inviteSelectedHandler);
|
||||
var _loc4_ = new Array();
|
||||
this.InitUIButton(feg_m_comLink.m_screen.expandButton,_global.bind0(this,this.expandButtonClicked),_loc4_);
|
||||
this.InitUIButton(_loc5_.tabsMC.friendsBTN,_global.bind1(this,this.OnTabButton,feg_m_comLink.COMM_CONTEXT_FRIENDS),_loc4_);
|
||||
this.InitUIButton(_loc5_.tabsMC.invitesBTN,_global.bind1(this,this.OnTabButton,feg_m_comLink.COMM_CONTEXT_INVITES),_loc4_);
|
||||
this.InitUIButton(_loc5_.tabsMC.lobbiesBTN,_global.bind1(this,this.OnTabButton,feg_m_comLink.COMM_CONTEXT_LOBBIES),_loc4_);
|
||||
this.InitUIButton(_loc5_.tabsMC.loginBTN,_global.bind1(this,this.OnTabButton,feg_m_comLink.COMM_CONTEXT_LOGIN),_loc4_);
|
||||
this.InitUIButton(_loc5_.tabsMC.logoutBTN,_global.bind1(this,this.OnTabButton,feg_m_comLink.COMM_CONTEXT_LOGOUT),_loc4_);
|
||||
this.InitUIButton(_loc5_.invitesMC.acceptBTN,_global.bind0(this,this.acceptButtonClicked),_loc4_);
|
||||
this.InitUIButton(_loc5_.invitesMC.declineBTN,_global.bind0(this,this.declineButtonClicked),_loc4_);
|
||||
this.InitUIButton(_loc5_.loginMC.loginBTN,_global.bind0(this,this.loginButtonClicked),_loc4_);
|
||||
this.InitUIButton(_loc5_.loginMC.registerBTN,_global.bind0(this,this.registerButtonClicked),_loc4_);
|
||||
this.InitUIButton(_loc5_.loginMC.websiteBTN,_global.bind0(this,this.websiteButtonClicked),_loc4_);
|
||||
this.InitUIButton(_loc5_.logoutMC.logoutBTN,_global.bind0(this,this.logoutButtonClicked),_loc4_);
|
||||
this.InitUIButton(_loc5_.friendsMC.inviteBTN,_global.bind0(this,this.inviteButtonClicked),_loc4_);
|
||||
this.InitUIButton(feg_m_comLink.m_screen.panelMC.tosPanel.tosAcceptBTN,_global.bind0(this,this.tosAcceptButtonClicked),_loc4_);
|
||||
this.InitUIButton(panelMC.closeButtonMC,_global.bind0(this,this.expandButtonClicked),_loc4_);
|
||||
this.InitUIButton(feg_m_comLink.m_screen.panelMC.tosPanel.tosDeclineBTN,_global.bind0(this,this.tosDeclineButtonClicked),_loc4_);
|
||||
this.InitUIButton(_loc5_.loginMC.mainMenuBTN,_global.bind0(this,this.onMainMenu),_loc4_);
|
||||
this.tosSetVisibility(false);
|
||||
this.SelectCommPanel(feg_m_comLink.COMM_CONTEXT_INVITES);
|
||||
this.ConfigCommPanel(feg_m_comLink.COMM_CONFIG_DISABLED);
|
||||
_loc4_.push(feg_m_comLink.m_screen.panelMC.chatPanelMC.chatComponentMC.sendButton);
|
||||
_loc4_.push(_loc5_.lobbiesMC.lobbylist.GetListToggler());
|
||||
this.UpdateOnlineVisualStatus(feg_m_comLink.COMM_STATUS_OFFLINE);
|
||||
this.ConfigureLoginLogoutPanels();
|
||||
this.ConfigureAutomaticLogin();
|
||||
_parent.onChildLoad();
|
||||
this.PrepareScreenButtons(_loc4_);
|
||||
}
|
||||
function InitUIButton(btn, fn, buttons)
|
||||
{
|
||||
btn.show();
|
||||
btn.enable();
|
||||
btn.setOnMouseUpFunction(fn);
|
||||
buttons.push(btn);
|
||||
}
|
||||
function PrepareScreenButtons(buttons)
|
||||
{
|
||||
var _loc2_ = buttons.length;
|
||||
var _loc1_ = 0;
|
||||
while(_loc1_ < _loc2_)
|
||||
{
|
||||
buttons[_loc1_].nointro();
|
||||
_loc1_ = _loc1_ + 1;
|
||||
}
|
||||
}
|
||||
function ConfigureLoginLogoutPanels()
|
||||
{
|
||||
var _loc3_ = feg_m_comLink.m_screen.panelMC.commPanelMC.loginMC;
|
||||
_loc3_.rememberPasswordCB.setOnMouseDownFunction(_global.bind0(this,this.onPasswordCBChanged));
|
||||
var ret = new Object();
|
||||
// Checked
|
||||
loadVariables("QueryGameEngine?ONLINE_SIGNED_IN&ONLINE_SAVE_LOGIN&ONLINE_ACCOUNT&ONLINE_PASSWORD&ONLINE_NICKNAME",ret);
|
||||
var _loc5_ = Number(ret.ONLINE_SIGNED_IN) == 1;
|
||||
if(_loc5_)
|
||||
{
|
||||
this.ConfigCommPanel(feg_m_comLink.COMM_CONFIG_LOGOUT);
|
||||
this.SelectCommPanel(feg_m_comLink.COMM_CONTEXT_LOBBIES);
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc3_.accountNameTF.setContents(String(ret.ONLINE_ACCOUNT));
|
||||
if(Boolean(ret.ONLINE_SAVE_LOGIN))
|
||||
{
|
||||
_loc3_.passwordTF.setContents(String(ret.ONLINE_PASSWORD));
|
||||
_loc3_.onlineIdTF.setContents(String(ret.ONLINE_NICKNAME));
|
||||
_loc3_.rememberPasswordCB.check();
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc3_.passwordTF.setContents("");
|
||||
_loc3_.onlineIdTF.setContents("");
|
||||
_loc3_.rememberPasswordCB.unCheck();
|
||||
}
|
||||
this.onPasswordCBChanged();
|
||||
this.ConfigCommPanel(feg_m_comLink.COMM_CONFIG_LOGIN);
|
||||
this.SelectCommPanel(feg_m_comLink.COMM_CONTEXT_LOGIN);
|
||||
}
|
||||
this.UpdateOnlineVisualStatus(!_loc5_ ? feg_m_comLink.COMM_STATUS_OFFLINE : feg_m_comLink.COMM_STATUS_ONLINE);
|
||||
}
|
||||
function ConfigureAutomaticLogin()
|
||||
{
|
||||
var ret = new Object();
|
||||
// Checked
|
||||
loadVariables("QueryGameEngine?ONLINE_SIGNED_IN&ONLINE_AUTO_LOGIN",ret);
|
||||
var _loc4_ = feg_m_comLink.m_screen.panelMC.commPanelMC.loginMC.autoLoginCB;
|
||||
_loc4_.setOnMouseDownFunction(_global.bind0(this,this.onAutoLoginCBChanged));
|
||||
if(Number(ret.ONLINE_AUTO_LOGIN) != 0)
|
||||
{
|
||||
_loc4_.check();
|
||||
if(Number(ret.ONLINE_SIGNED_IN) == 0)
|
||||
{
|
||||
this.loginButtonClicked(); // 吐槽一句,EA 您在这块儿还真挺省事哈,直接模拟一次点击是吧
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc4_.unCheck();
|
||||
}
|
||||
}
|
||||
function onAutoLoginCBChanged()
|
||||
{
|
||||
var _loc1_ = !feg_m_comLink.m_screen.panelMC.commPanelMC.loginMC.autoLoginCB.isChecked() ? "0" : "1";
|
||||
// Checked
|
||||
getURL("FSCommand:CallGameFunction","%OnlineSetAutoLogin?AutoLogin=" + _loc1_);
|
||||
}
|
||||
function onPasswordCBChanged()
|
||||
{
|
||||
var loginPanel = feg_m_comLink.m_screen.panelMC.commPanelMC.loginMC;
|
||||
var isRememberPassword = loginPanel.rememberPasswordCB.isChecked(); // CB 是 CheckBox 的缩写
|
||||
if(isRememberPassword)
|
||||
{
|
||||
loginPanel.autoLoginCB.enable();
|
||||
}
|
||||
else
|
||||
{
|
||||
var accountName = loginPanel.accountNameTF.getContents(); // TF 是 TextField 的缩写
|
||||
// Checked
|
||||
getURL("FSCommand:CallGameFunction","%ForgetLoginInfo?Account=" + accountName);
|
||||
loginPanel.passwordTF.setContents("");
|
||||
loginPanel.onlineIdTF.setContents("");
|
||||
loginPanel.autoLoginCB.disable();
|
||||
loginPanel.autoLoginCB.unCheck();
|
||||
this.onAutoLoginCBChanged();
|
||||
}
|
||||
}
|
||||
function minimizeView()
|
||||
{
|
||||
this.m_isVisible = false;
|
||||
var _loc3_ = _global.gFM.getSelectedItem();
|
||||
_global.gFM.deselectFocusedComponent();
|
||||
feg_m_comLink.m_screen.gotoAndPlay("_minimize");
|
||||
}
|
||||
function maximizeView()
|
||||
{
|
||||
_global.gFM.deselectFocusedComponent();
|
||||
var loginPanel = feg_m_comLink.m_screen.panelMC.commPanelMC.loginMC;
|
||||
loginPanel.accountNameTF.m_tabIndex = 0;
|
||||
loginPanel.passwordTF.m_tabIndex = 1;
|
||||
loginPanel.onlineIdTF.m_tabIndex = 2;
|
||||
loginPanel.accountNameTF.enable();
|
||||
loginPanel.passwordTF.enable();
|
||||
loginPanel.onlineIdTF.enable();
|
||||
loginPanel.accountNameTF.setOnInput(15,bind0(_global.gFM,_global.gFM.tabNextComponent),null,null);
|
||||
loginPanel.passwordTF.setOnInput(15,bind0(_global.gFM,_global.gFM.tabNextComponent),null,null);
|
||||
loginPanel.onlineIdTF.setOnInput(15,bind0(_global.gFM,_global.gFM.tabNextComponent),null,null);
|
||||
loginPanel.accountNameTF.autoAddToFocusManger();
|
||||
loginPanel.passwordTF.autoAddToFocusManger();
|
||||
loginPanel.onlineIdTF.autoAddToFocusManger();
|
||||
this.m_isVisible = true;
|
||||
feg_m_comLink.m_screen.buttonGuard._visible = feg_m_comLink.m_screen.panelMC._visible = true;
|
||||
feg_m_comLink.m_screen.gotoAndPlay("_maximize");
|
||||
// Checked
|
||||
getUrl("FSCommand:CallGameFunction", "%DetachMappingHotKey");
|
||||
}
|
||||
function toggleView()
|
||||
{
|
||||
if(!this.m_isVisible)
|
||||
{
|
||||
this.maximizeView();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.minimizeView();
|
||||
}
|
||||
}
|
||||
function expandButtonClicked()
|
||||
{
|
||||
_global.playSound(!this.m_isVisible ? "GuiComlinkOpenClick" : "GuiComlinkCloseClick");
|
||||
this.toggleView();
|
||||
}
|
||||
function OpenComlink()
|
||||
{
|
||||
if(!this.m_isVisible)
|
||||
{
|
||||
this.maximizeView();
|
||||
}
|
||||
}
|
||||
function CloseComlink()
|
||||
{
|
||||
if(this.m_isVisible)
|
||||
{
|
||||
this.minimizeView();
|
||||
}
|
||||
}
|
||||
function declineButtonClicked()
|
||||
{
|
||||
var _loc1_ = feg_m_comLink.m_screen.panelMC.commPanelMC.invitesMC.inviteListMC.getSelectedInviteIndex();
|
||||
if(_loc1_ >= 0) // 这个位置很明显其实是调试用的断言,因为往常来说你无法在一个列表中选择负数为编号的选项
|
||||
{
|
||||
// Checked
|
||||
getURL("FSCommand:CallGameFunction","%OnlineDeclineInvite?Invite=" + String(_loc1_));
|
||||
}
|
||||
}
|
||||
function acceptButtonClicked()
|
||||
{
|
||||
var _loc1_ = feg_m_comLink.m_screen.panelMC.commPanelMC.invitesMC.inviteListMC.getSelectedInviteIndex();
|
||||
if(_loc1_ >= 0)
|
||||
{
|
||||
// Checked
|
||||
getURL("FSCommand:CallGameFunction","%OnlineAcceptInvite?Invite=" + String(_loc1_));
|
||||
}
|
||||
}
|
||||
function loginButtonClicked()
|
||||
{
|
||||
this.enterPendingLoginState();
|
||||
var _loc2_ = feg_m_comLink.m_screen.panelMC.commPanelMC.loginMC;
|
||||
var _loc4_ = _loc2_.accountNameTF.getContents();
|
||||
var _loc5_ = _loc2_.passwordTF.getContents();
|
||||
var _loc6_ = _loc2_.onlineIdTF.getContents();
|
||||
var _loc3_ = !_loc2_.rememberPasswordCB.isChecked() ? "0" : "1";
|
||||
// Checked
|
||||
getURL("FSCommand:CallGameFunction","%OnlineSignIn?Account=" + _loc4_ + "|Password=" + _loc5_ + "|Nickname=" + _loc6_ + "|Save=" + _loc3_);
|
||||
}
|
||||
function enterPendingLoginState()
|
||||
{
|
||||
if(this.m_isVisible)
|
||||
{
|
||||
feg_m_comLink.m_screen.expandButton.disable();
|
||||
feg_m_comLink.m_screen.panelMC.closeButtonMC.disable();
|
||||
}
|
||||
feg_m_comLink.m_screen.panelMC.commPanelMC.loginMC.loginBTN.disable();
|
||||
}
|
||||
function exitPendingLoginState()
|
||||
{
|
||||
feg_m_comLink.m_screen.expandButton.enable();
|
||||
feg_m_comLink.m_screen.panelMC.closeButtonMC.enable();
|
||||
feg_m_comLink.m_screen.panelMC.commPanelMC.loginMC.loginBTN.enable();
|
||||
}
|
||||
function createButtonClicked()
|
||||
{
|
||||
var _loc1_ = feg_m_comLink.m_screen.panelMC.commPanelMC.loginMC;
|
||||
var _loc3_ = _loc1_.accountNameTF.getContents();
|
||||
var _loc4_ = _loc1_.passwordTF.getContents();
|
||||
var _loc5_ = _loc1_.onlineIdTF.getContents();
|
||||
var _loc2_ = !_loc1_.rememberPasswordCB.isChecked() ? "0" : "1";
|
||||
// Checked
|
||||
getURL("FSCommand:CallGameFunction","%OnlineCreateAccount?Account=" + _loc3_ + "|Password=" + _loc4_ + "|Nickname=" + _loc5_ + "|Save=" + _loc2_);
|
||||
}
|
||||
function registerButtonClicked()
|
||||
{
|
||||
// Checked
|
||||
getUrl("FSCommand:CallGameFunction", "%RegistrationWebsite");
|
||||
}
|
||||
function websiteButtonClicked()
|
||||
{
|
||||
// Checked
|
||||
getUrl("FSCommand:CallGameFunction", "%OpenGameWebsite");
|
||||
}
|
||||
function logoutButtonClicked()
|
||||
{
|
||||
feg_m_comLink.m_screen.panelMC.commPanelMC.logoutMC.logoutBTN.disable();
|
||||
// Checked
|
||||
getUrl("FSCommand:CallGameFunction", "%OnlineSignOut");
|
||||
}
|
||||
function tosAcceptButtonClicked()
|
||||
{
|
||||
this.tosSetVisibility(false);
|
||||
// Checked
|
||||
getUrl("FSCommand:CallGameFunction", "%OnlineTosAccept");
|
||||
}
|
||||
function tosDeclineButtonClicked()
|
||||
{
|
||||
this.tosSetVisibility(false);
|
||||
// Checked
|
||||
getUrl("FSCommand:CallGameFunction", "%OnlineTosDecline");
|
||||
}
|
||||
function onMainMenu()
|
||||
{
|
||||
this.minimizeView();
|
||||
_global.gotoShellScreen(_global.SCREEN.FEG_MAIN_MENU,[]);
|
||||
}
|
||||
function tosSetVisibility(vis)
|
||||
{
|
||||
var tosPanelComponent = feg_m_comLink.m_screen.panelMC.tosPanel.lbTOS;
|
||||
if(vis)
|
||||
{
|
||||
feg_m_comLink.m_screen.panelMC.tosPanel._visible = true;
|
||||
feg_m_comLink.m_screen.panelMC.acctPanelMC._visible = false;
|
||||
feg_m_comLink.m_screen.panelMC.commPanelMC.tabsMC.loginBTN.disable();
|
||||
var ret = new Object();
|
||||
var tosContentLines = new Array();
|
||||
loadVariables("QueryGameEngine?ONLINE_TOS",ret);
|
||||
tosContentLines = ret.ONLINE_TOS.split(",");
|
||||
tosPanelComponent.setNumEntries(20);
|
||||
tosPanelComponent.setVerticalPadding(0);
|
||||
var _loc4_ = new Array();
|
||||
_loc4_.push({symbol:"std_mouseListboxEntryTextElementSymbol",width:440,leftMargin:0,rightMargin:0,useHighlights:false,isSelectable:false,useHitRegion:false,autoSize:true});
|
||||
tosPanelComponent.init(_loc4_,20);
|
||||
tosPanelComponent.attachScrollbarController(feg_m_comLink.m_screen.panelMC.tosPanel.sbTOS);
|
||||
tosPanelComponent.moveViewToFirst();
|
||||
tosPanelComponent.refreshDisplay();
|
||||
tosPanelComponent.refreshScrollbar();
|
||||
tosPanelComponent.setColumnData(0,tosContentLines);
|
||||
tosPanelComponent.refreshDisplay();
|
||||
tosPanelComponent.refreshScrollbar();
|
||||
}
|
||||
else
|
||||
{
|
||||
feg_m_comLink.m_screen.panelMC.tosPanel._visible = false;
|
||||
feg_m_comLink.m_screen.panelMC.acctPanelMC._visible = true;
|
||||
feg_m_comLink.m_screen.panelMC.commPanelMC.tabsMC.loginBTN.enable();
|
||||
tosPanelComponent.clear();
|
||||
}
|
||||
}
|
||||
function UpdateOnlineVisualStatus(online)
|
||||
{
|
||||
feg_m_comLink.m_screen.expandButton.m_contentClip.onlineStateMC.gotoAndPlay(online != feg_m_comLink.COMM_STATUS_ONLINE ? "_offLine" : "_onLine");
|
||||
}
|
||||
function OnTabButton(id)
|
||||
{
|
||||
this.SelectCommPanel(id);
|
||||
}
|
||||
function SelectCommPanel(id)
|
||||
{
|
||||
var _loc3_ = feg_m_comLink.m_screen.panelMC.commPanelMC;
|
||||
_loc3_.friendsMC._visible = id == feg_m_comLink.COMM_CONTEXT_FRIENDS;
|
||||
_loc3_.invitesMC._visible = id == feg_m_comLink.COMM_CONTEXT_INVITES;
|
||||
_loc3_.lobbiesMC._visible = id == feg_m_comLink.COMM_CONTEXT_LOBBIES;
|
||||
_loc3_.loginMC._visible = id == feg_m_comLink.COMM_CONTEXT_LOGIN;
|
||||
_loc3_.logoutMC._visible = id == feg_m_comLink.COMM_CONTEXT_LOGOUT;
|
||||
_loc3_.tabsMC.friendsBTN.setSelected(id == feg_m_comLink.COMM_CONTEXT_FRIENDS);
|
||||
_loc3_.tabsMC.invitesBTN.setSelected(id == feg_m_comLink.COMM_CONTEXT_INVITES);
|
||||
_loc3_.tabsMC.lobbiesBTN.setSelected(id == feg_m_comLink.COMM_CONTEXT_LOBBIES);
|
||||
_loc3_.tabsMC.loginBTN.setSelected(id == feg_m_comLink.COMM_CONTEXT_LOGIN);
|
||||
_loc3_.tabsMC.logoutBTN.setSelected(id == feg_m_comLink.COMM_CONTEXT_LOGOUT);
|
||||
var _loc4_ = id == feg_m_comLink.COMM_CONTEXT_LOGIN;
|
||||
feg_m_comLink.m_screen.panelMC.acctPanelMC._visible = _loc4_;
|
||||
feg_m_comLink.m_screen.panelMC.chatPanelMC._visible = !_loc4_;
|
||||
switch(id)
|
||||
{
|
||||
case feg_m_comLink.COMM_CONTEXT_FRIENDS:
|
||||
feg_m_comLink.m_screen.panelMC.chatPanelMC.helpInfo.dtext.text = "$APT:COMLINKHELPTEXTFRIENDS";
|
||||
this.m_selectedPlayerId = "";
|
||||
this.updateInviteButton();
|
||||
break;
|
||||
case feg_m_comLink.COMM_CONTEXT_INVITES:
|
||||
feg_m_comLink.m_screen.panelMC.chatPanelMC.helpInfo.dtext.text = "$APT:COMLINKHELPTEXTINVITES";
|
||||
feg_m_comLink.m_screen.panelMC.commPanelMC.invitesMC.inviteListMC.refresh();
|
||||
break;
|
||||
case feg_m_comLink.COMM_CONTEXT_LOBBIES:
|
||||
feg_m_comLink.m_screen.panelMC.chatPanelMC.helpInfo.dtext.text = "$APT:COMLINKHELPTEXTLOBBIES";
|
||||
break;
|
||||
case feg_m_comLink.COMM_CONTEXT_LOGOUT:
|
||||
feg_m_comLink.m_screen.panelMC.chatPanelMC.helpInfo.dtext.text = "$APT:COMLINKHELPTEXTLOGOUT";
|
||||
break;
|
||||
default:
|
||||
feg_m_comLink.m_screen.panelMC.chatPanelMC.helpInfo.dtext.text = "$APT:COMLINKHELPTEXTDEFAULT";
|
||||
}
|
||||
}
|
||||
function ConfigCommPanel(mode)
|
||||
{
|
||||
var _loc1_ = feg_m_comLink.m_screen.panelMC.commPanelMC;
|
||||
switch(mode)
|
||||
{
|
||||
case feg_m_comLink.COMM_CONFIG_DISABLED:
|
||||
_loc1_.tabsMC.loginBTN.show();
|
||||
_loc1_.tabsMC.loginBTN.disable();
|
||||
_loc1_.tabsMC.logoutBTN.hide();
|
||||
_loc1_.tabsMC.friendsBTN.disable();
|
||||
_loc1_.tabsMC.invitesBTN.disable();
|
||||
_loc1_.tabsMC.lobbiesBTN.disable();
|
||||
break;
|
||||
case feg_m_comLink.COMM_CONFIG_LOGIN:
|
||||
_loc1_.tabsMC.loginBTN.show();
|
||||
_loc1_.tabsMC.loginBTN.enable();
|
||||
_loc1_.tabsMC.logoutBTN.hide();
|
||||
_loc1_.tabsMC.friendsBTN.disable();
|
||||
_loc1_.tabsMC.invitesBTN.disable();
|
||||
_loc1_.tabsMC.lobbiesBTN.disable();
|
||||
_loc1_.loginMC.loginBTN.enable();
|
||||
break;
|
||||
case feg_m_comLink.COMM_CONFIG_LOGOUT:
|
||||
_loc1_.tabsMC.logoutBTN.show();
|
||||
_loc1_.tabsMC.logoutBTN.enable();
|
||||
_loc1_.tabsMC.loginBTN.hide();
|
||||
_loc1_.tabsMC.friendsBTN.enable();
|
||||
_loc1_.tabsMC.invitesBTN.enable();
|
||||
_loc1_.tabsMC.lobbiesBTN.enable();
|
||||
_loc1_.logoutMC.logoutBTN.enable();
|
||||
}
|
||||
}
|
||||
function inviteButtonClicked()
|
||||
{
|
||||
// Checked
|
||||
getURL("FSCommand:CallGameFunction","%OnlineInvitePlayer?Player=" + this.m_selectedPlayerId);
|
||||
if(this.m_isAutoMatchFriendInvite)
|
||||
{
|
||||
this.m_isAutoMatchFriendInvite = false;
|
||||
this.close();
|
||||
}
|
||||
}
|
||||
function updateInviteButton()
|
||||
{
|
||||
var _loc3_ = feg_m_comLink.m_screen.panelMC.commPanelMC.friendsMC.inviteBTN;
|
||||
_loc3_.disable();
|
||||
if(this.m_selectedPlayerId != "")
|
||||
{
|
||||
var ret = new Object();
|
||||
// Checked
|
||||
loadVariables("QueryGameEngine?IsPcGameHost&MP_BUDDYSTATUS?Player=" + this.m_selectedPlayerId,ret);
|
||||
if(Number(ret.IsPcGameHost) != 0 && Number(ret.MP_BUDDYSTATUS_IS_ONLINE) != 0)
|
||||
{
|
||||
_loc3_.enable();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
var screen = new feg_m_comLink(this);
|
||||
gotoAndStop("_min");
|
||||
+18
@@ -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 = "max/min";
|
||||
m_bEnabled = true;
|
||||
m_refFM = "_global.gFM";
|
||||
m_initiallySelected = false;
|
||||
m_tabIndex = 0;
|
||||
m_bVisible = true;
|
||||
m_contentSymbol = "comLinkButtonContentMCSymbol";
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
stop();
|
||||
screen.OnMinimized();
|
||||
@@ -0,0 +1,2 @@
|
||||
stop();
|
||||
screen.OnMaximized();
|
||||
Reference in New Issue
Block a user