first commit
This commit is contained in:
BIN
Binary file not shown.
|
After Width: | Height: | Size: 120 B |
+6
@@ -0,0 +1,6 @@
|
||||
on(press){
|
||||
if(_parent._parent.selectedTabNum != Number(_parent._name))
|
||||
{
|
||||
_parent.gotoAndPlay("_down");
|
||||
}
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
on(release){
|
||||
if(_parent._parent.selectedTabNum != Number(_parent._name))
|
||||
{
|
||||
_parent.gotoAndPlay("_over");
|
||||
}
|
||||
_parent.client.OnClicked(_parent);
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
on(rollOut, dragOut){
|
||||
if(_parent._parent.selectedTabNum != Number(_parent._name))
|
||||
{
|
||||
_parent.gotoAndPlay("_up");
|
||||
}
|
||||
_parent.client.OnRollOut(_parent);
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
on(rollOver, dragOver){
|
||||
if(_parent._parent.selectedTabNum != Number(_parent._name))
|
||||
{
|
||||
_parent.gotoAndPlay("_over");
|
||||
}
|
||||
_parent.client.OnRollOver(_parent);
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
if(client == undefined)
|
||||
{
|
||||
client = _parent;
|
||||
}
|
||||
+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();
|
||||
+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();
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
function SelectTab(tabNum)
|
||||
{
|
||||
if(tabNum != selectedTabNum)
|
||||
{
|
||||
this[String(selectedTabNum)].gotoAndPlay("_up");
|
||||
this[String(tabNum)].gotoAndPlay("_selected");
|
||||
selectedTabNum = tabNum;
|
||||
client.OnTabSelected(selectedTabNum);
|
||||
}
|
||||
tabOutline.gotoAndPlay("_" + String(tabNum));
|
||||
}
|
||||
function GetSelectedTabNum()
|
||||
{
|
||||
return selectedTabNum;
|
||||
}
|
||||
function OnClicked(buttonClip)
|
||||
{
|
||||
var _loc1_ = Number(buttonClip._name);
|
||||
if(_loc1_ != selectedTabNum)
|
||||
{
|
||||
SelectTab(_loc1_);
|
||||
TabButtonGlow.gotoAndStop("_" + buttonClip._name);
|
||||
}
|
||||
else
|
||||
{
|
||||
client.OnSelectedTabClicked(_loc1_);
|
||||
}
|
||||
}
|
||||
function OnRollOver(buttonClip)
|
||||
{
|
||||
client.OnTabRollOver(Number(buttonClip._name));
|
||||
}
|
||||
function OnRollOut(buttonClip)
|
||||
{
|
||||
client.OnTabRollOut(Number(buttonClip._name));
|
||||
}
|
||||
function SetTabFlashing(tabNum, flashing)
|
||||
{
|
||||
var _loc2_ = this[String(tabNum)];
|
||||
_loc2_.flashClip.gotoAndPlay(!flashing ? "_off" : "_on");
|
||||
}
|
||||
function SetTabHighlighted(tabNum, highlighted)
|
||||
{
|
||||
if(highlighted)
|
||||
{
|
||||
if(tabHighlightClips[tabNum] == null)
|
||||
{
|
||||
tabHighlightClips[tabNum] = _global.CreateHUDGadgetFlash(this[String(tabNum)]);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
tabHighlightClips[tabNum].Close();
|
||||
tabHighlightClips[tabNum] = null;
|
||||
}
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
while(tabHighlightClips.length > 0)
|
||||
{
|
||||
var _loc1_ = tabHighlightClips.pop();
|
||||
_loc1_.Close();
|
||||
}
|
||||
delete SelectTab;
|
||||
delete GetSelectedTabNum;
|
||||
delete OnClicked;
|
||||
delete OnRollOver;
|
||||
delete OnRollOut;
|
||||
delete SetTabFlashing;
|
||||
delete SetTabHighlighted;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
tabCount = _parent.pages.length;
|
||||
tabHighlightClips = new Array(tabCount);
|
||||
var i = 0;
|
||||
while(i < tabCount)
|
||||
{
|
||||
this[String(i)].iconLabel = _parent.pages[i].tabIcon;
|
||||
tabHighlightClips[i] = null;
|
||||
i++;
|
||||
}
|
||||
if(client == undefined)
|
||||
{
|
||||
client = _parent;
|
||||
}
|
||||
selectedTabNum = 0;
|
||||
this["0"].gotoAndPlay("_selected");
|
||||
initialized = true;
|
||||
client.OnTabsInitialized(this);
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
gotoAndStop("_" + _parent.iconLabel);
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
gotoAndStop("_on");
|
||||
play();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
gotoAndStop("_" + _parent.iconLabel);
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
function OnCurrentFactionChanged(faction)
|
||||
{
|
||||
gotoAndPlay(faction);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
_root.DetachFactionObserver(this);
|
||||
delete OnCurrentFactionChanged;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!factionSkinned)
|
||||
{
|
||||
gotoAndPlay(_root.GetCurrentFaction());
|
||||
_root.AttachFactionObserver(this);
|
||||
factionSkinned = true;
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
stop();
|
||||
+1
@@ -0,0 +1 @@
|
||||
gotoAndStop("_" + _parent.iconLabel);
|
||||
@@ -0,0 +1,231 @@
|
||||
function GetSelectionRefinementPage()
|
||||
{
|
||||
return Pointer.encode(sel);
|
||||
}
|
||||
function GetBuildQueueTypePage(pageName)
|
||||
{
|
||||
return Pointer.encode(this[pageName]);
|
||||
}
|
||||
function GetBuildQueueTypeTab(pageNameArg)
|
||||
{
|
||||
var _loc2_ = String(pageNameArg);
|
||||
var _loc1_ = 0;
|
||||
while(_loc1_ < pages.length)
|
||||
{
|
||||
if(pages[_loc1_].clip._name == _loc2_)
|
||||
{
|
||||
return Pointer.encode(tabs[String(_loc1_)]);
|
||||
}
|
||||
_loc1_ = _loc1_ + 1;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
function SelectSelectionRefinementPage()
|
||||
{
|
||||
SelectPage(sel);
|
||||
}
|
||||
function SelectBuildQueueTypePage(pageName)
|
||||
{
|
||||
SelectPage(this[pageName]);
|
||||
}
|
||||
function SetBuildQueueTypeTabFlashing(pageName, flashingArg)
|
||||
{
|
||||
SetTabFlashing(this[pageName],flashingArg != 0);
|
||||
}
|
||||
function SetSelectionRefinementTabHighlighted(highlightedArg)
|
||||
{
|
||||
SetTabHighlighted(sel,highlightedArg != 0);
|
||||
}
|
||||
function SetBuildQueueTypeTabHighlighted(pageName, highlightedArg)
|
||||
{
|
||||
SetTabHighlighted(this[pageName],highlightedArg != 0);
|
||||
}
|
||||
function OnTabSelected(tabNum)
|
||||
{
|
||||
if(tabNum != visiblePageNum)
|
||||
{
|
||||
pages[visiblePageNum].clip._visible = false;
|
||||
var _loc2_ = pages[tabNum].clip;
|
||||
_loc2_._visible = true;
|
||||
visiblePageNum = tabNum;
|
||||
if(_loc2_ == sel)
|
||||
{
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnSelectionRefinementPageSelected"),"");
|
||||
}
|
||||
else
|
||||
{
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnBuildQueueTypePageSelected"),_loc2_._name);
|
||||
}
|
||||
}
|
||||
}
|
||||
function OnSelectedTabClicked(tabNum)
|
||||
{
|
||||
var _loc2_ = pages[tabNum].clip;
|
||||
if(_loc2_ == sel)
|
||||
{
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnSelectionRefinementTabClicked"),"");
|
||||
}
|
||||
else
|
||||
{
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnBuildQueueTypeTabClicked"),_loc2_._name);
|
||||
}
|
||||
}
|
||||
function OnTabRollOver(tabNum)
|
||||
{
|
||||
pages[tabNum].clip.OnTabRollOver();
|
||||
}
|
||||
function OnTabRollOut(tabNum)
|
||||
{
|
||||
pages[tabNum].clip.OnTabRollOut();
|
||||
}
|
||||
function SelectTab(tabNum)
|
||||
{
|
||||
if(tabsInitialized)
|
||||
{
|
||||
tabs.SelectTab(tabNum);
|
||||
}
|
||||
else
|
||||
{
|
||||
selectedTabNum = tabNum;
|
||||
}
|
||||
}
|
||||
function SelectPage(pageClip)
|
||||
{
|
||||
var _loc1_ = 0;
|
||||
while(_loc1_ < pages.length)
|
||||
{
|
||||
if(pages[_loc1_].clip == pageClip)
|
||||
{
|
||||
SelectTab(_loc1_);
|
||||
break;
|
||||
}
|
||||
_loc1_ = _loc1_ + 1;
|
||||
}
|
||||
}
|
||||
function SetTabFlashing(pageClip, flashing)
|
||||
{
|
||||
var _loc1_ = 0;
|
||||
while(_loc1_ < pages.length)
|
||||
{
|
||||
if(pages[_loc1_].clip == pageClip)
|
||||
{
|
||||
pages[_loc1_].tabFlashing = flashing;
|
||||
if(tabsInitialized)
|
||||
{
|
||||
tabs.SetTabFlashing(_loc1_,flashing);
|
||||
}
|
||||
break;
|
||||
}
|
||||
_loc1_ = _loc1_ + 1;
|
||||
}
|
||||
}
|
||||
function SetTabHighlighted(pageClip, highlighted)
|
||||
{
|
||||
var _loc1_ = 0;
|
||||
while(_loc1_ < pages.length)
|
||||
{
|
||||
if(pages[_loc1_].clip == pageClip)
|
||||
{
|
||||
pages[_loc1_].tabHighlighted = highlighted;
|
||||
if(tabsInitialized)
|
||||
{
|
||||
tabs.SetTabHighlighted(_loc1_,highlighted);
|
||||
}
|
||||
break;
|
||||
}
|
||||
_loc1_ = _loc1_ + 1;
|
||||
}
|
||||
}
|
||||
function OnTabsInitialized(clip)
|
||||
{
|
||||
if(!tabsInitialized)
|
||||
{
|
||||
tabsInitialized = true;
|
||||
visiblePageNum = String(tabs.GetSelectedTabNum());
|
||||
pages[visiblePageNum].clip._visible = true;
|
||||
if(selectedTabNum != undefined)
|
||||
{
|
||||
tabs.SelectTab(selectedTabNum);
|
||||
delete selectedTabNum;
|
||||
}
|
||||
var _loc1_ = 0;
|
||||
while(_loc1_ < pages.length)
|
||||
{
|
||||
if(pages[_loc1_].tabFlashing)
|
||||
{
|
||||
tabs.SetTabFlashing(_loc1_,true);
|
||||
}
|
||||
if(pages[_loc1_].tabHighlighted)
|
||||
{
|
||||
tabs.SetTabHighlighted(_loc1_,true);
|
||||
}
|
||||
_loc1_ = _loc1_ + 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
function OnChildLoaded(childClip)
|
||||
{
|
||||
var _loc3_ = false;
|
||||
if(visiblePageNum != undefined)
|
||||
{
|
||||
_loc3_ = childClip == pages[visiblePageNum].clip;
|
||||
}
|
||||
childClip._visible = _loc3_;
|
||||
var _loc1_ = 0;
|
||||
while(_loc1_ < pages.length)
|
||||
{
|
||||
if(pages[_loc1_].clip == childClip)
|
||||
{
|
||||
childClip.tabButton = tabs[String(_loc1_)];
|
||||
childClip.tabIcon = pages[_loc1_].tabIcon;
|
||||
break;
|
||||
}
|
||||
_loc1_ = _loc1_ + 1;
|
||||
}
|
||||
childClip.tabHelpSite = tabHelpSite;
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
delete GetSelectionRefinementPage;
|
||||
delete GetBuildQueueTypePage;
|
||||
delete GetBuildQueueTypeTab;
|
||||
delete SelectSelectionRefinementPage;
|
||||
delete SelectBuildQueueTypePage;
|
||||
delete SetBuildQueueTypeTabFlashing;
|
||||
delete SetSelectionRefinementTabHighlighted;
|
||||
delete SetBuildQueueTypeTabHighlighted;
|
||||
delete OnTabSelected;
|
||||
delete OnTabRollOver;
|
||||
delete OnTabRollOut;
|
||||
delete SelectTab;
|
||||
delete SelectPage;
|
||||
delete SetTabFlashing;
|
||||
delete SetTabHighlighted;
|
||||
delete OnTabsInitialized;
|
||||
delete OnChildLoaded;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
pages = [{clip:sel,tabIcon:"Con",tabFlashing:false,tabHighlighted:false},{clip:mainStructure,tabIcon:"Str",tabFlashing:false,tabHighlighted:false},{clip:otherStructure,tabIcon:"Def",tabFlashing:false,tabHighlighted:false},{clip:infantry,tabIcon:"Inf",tabFlashing:false,tabHighlighted:false},{clip:vehicles,tabIcon:"Veh",tabFlashing:false,tabHighlighted:false},{clip:aircraft,tabIcon:"Air",tabFlashing:false,tabHighlighted:false},{clip:navy,tabIcon:"Nav",tabFlashing:false,tabHighlighted:false}];
|
||||
if(tabsInitialized)
|
||||
{
|
||||
visiblePageNum = String(tabs.GetSelectedTabNum());
|
||||
pages[visiblePageNum].clip._visible = true;
|
||||
}
|
||||
sel.loadMovie("TacticalHUDSelectionRefinementPage.swf");
|
||||
mainStructure.loadMovie("TacticalHUDBuildQueuePage.swf");
|
||||
otherStructure.loadMovie("TacticalHUDBuildQueuePage.swf");
|
||||
infantry.loadMovie("TacticalHUDBuildQueuePage.swf");
|
||||
vehicles.loadMovie("TacticalHUDBuildQueuePage.swf");
|
||||
aircraft.loadMovie("TacticalHUDBuildQueuePage.swf");
|
||||
navy.loadMovie("TacticalHUDBuildQueuePage.swf");
|
||||
initialized = true;
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
|
||||
}
|
||||
stop();
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
_visible = false;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
_visible = false;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
_visible = false;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
_visible = false;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
_visible = false;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
_visible = false;
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
_visible = false;
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
on(construct){
|
||||
vertAlignment = "top";
|
||||
horzAlignment = "right";
|
||||
}
|
||||
Reference in New Issue
Block a user