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,4 @@
on(press){
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnPress"),"");
}
@@ -0,0 +1,3 @@
on(press){
_parent.OnPress();
}
@@ -0,0 +1,3 @@
on(release){
_parent.OnRelease();
}
@@ -0,0 +1,3 @@
on(rollOut){
_parent.OnRollOut();
}
@@ -0,0 +1,3 @@
on(rollOver){
_parent.OnRollOver();
}
@@ -0,0 +1,5 @@
on(construct){
_type = "RenderImage";
_imageMap = "";
_mode = "";
}
@@ -0,0 +1,3 @@
onClipEvent(load){
_imageMap = qualifyName(_parent._parent._parent,"Portrait");
}
@@ -0,0 +1,4 @@
on(construct){
vertAlignment = "top";
horzAlignment = "left";
}
@@ -0,0 +1,6 @@
on(construct){
hitTestWidth = 33;
hitTestHeight = 33;
buttonContainer = "HoldObjectButton";
helpSiteRef = "_parent.buttonHelpSite";
}
@@ -0,0 +1,6 @@
on(construct){
hitTestWidth = 33;
hitTestHeight = 33;
buttonContainer = "AssaultButton";
helpSiteRef = "_parent.buttonHelpSite";
}
@@ -0,0 +1,6 @@
on(construct){
hitTestWidth = 33;
hitTestHeight = 33;
buttonContainer = "NormalButton";
helpSiteRef = "_parent.buttonHelpSite";
}
@@ -0,0 +1,6 @@
on(construct){
hitTestWidth = 33;
hitTestHeight = 33;
buttonContainer = "HoldPositionButton";
helpSiteRef = "_parent.buttonHelpSite";
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -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;
}
@@ -0,0 +1,11 @@
if(!done)
{
gotoAndStop("_on");
play();
}
else
{
isOn = false;
gotoAndStop("_off");
play();
}
@@ -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;
}
@@ -0,0 +1,6 @@
if(!initialized)
{
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
@@ -0,0 +1,3 @@
onClipEvent(load){
myText = "$" + qualifyName(_parent,"Text") + "&outline";
}
@@ -0,0 +1,127 @@
function SetEnabled(val)
{
enabled = val != 0;
UpdateButtonGraphic();
}
function SetSelected(val)
{
selected = val != 0;
UpdateButtonGraphic();
}
function SetSecondState(val)
{
secondState = val != 0;
UpdateButtonGraphic();
}
function SetVisibility(vis)
{
_visible = vis != 0;
}
function UpdateButtonGraphic()
{
if(!enabled)
{
buttonContainerClip.gotoAndPlay("_disabled");
return undefined;
}
if(mouseOver)
{
buttonContainerClip.gotoAndPlay("_over");
return undefined;
}
if(selected)
{
buttonContainerClip.gotoAndPlay("_on");
return undefined;
}
if(secondState)
{
buttonContainerClip.gotoAndPlay("_pressed");
return undefined;
}
buttonContainerClip.gotoAndPlay("_off");
}
function OnPress()
{
down = true;
UpdateButtonGraphic();
}
function OnRelease()
{
down = false;
UpdateButtonGraphic();
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnClicked"),"");
}
function OnRollOver()
{
if(!mouseOver)
{
mouseOver = true;
UpdateButtonGraphic();
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnRollOver"),"");
}
}
function OnRollOut()
{
if(mouseOver)
{
mouseOver = false;
UpdateButtonGraphic();
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnRollOut"),"");
}
}
function GetHelpSite()
{
return Pointer.encode(helpSite);
}
function SetHighlighted(highlightArg)
{
var _loc2_ = highlightArg != 0;
if(_loc2_)
{
if(highlightClip == undefined)
{
highlightClip = _global.CreateHUDGadgetFlash(buttonContainerClip);
}
}
else if(highlightClip != undefined)
{
highlightClip.Close();
highlightClip = undefined;
}
}
function onUnload()
{
highlightClip.Close();
delete SetEnabled;
delete SetSelected;
delete SetSecondState;
delete SetVisibility;
delete UpdateButtonGraphic;
delete OnPress;
delete OnRelease;
delete OnRollOver;
delete OnRollOut;
delete GetHelpSite;
delete SetHighlighted;
delete onUnload;
}
if(!initialized)
{
enabled = true;
down = false;
mouseOver = false;
selected = false;
secondState = false;
helpSite = eval(helpSiteRef);
this.attachMovie(this.buttonContainer,"buttonContainerClip",this.getNextHighestDepth());
UpdateButtonGraphic();
hitTestButton._width = hitTestWidth;
hitTestButton._height = hitTestHeight;
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
@@ -0,0 +1,103 @@
function Open()
{
this.coopControl.gotoAndPlay("_opening");
}
function Close()
{
this.coopControl.gotoAndPlay("_closing");
}
function SetVisibility(visArg)
{
_visible = Number(visArg) != 0;
}
function GetMonitor()
{
return Pointer.encode(this.coopControl.monitor);
}
function GetNormalButton()
{
return Pointer.encode(this.coopControl.normalButton);
}
function GetAssaultButton()
{
return Pointer.encode(this.coopControl.assaultButton);
}
function GetHoldObjectButton()
{
return Pointer.encode(this.coopControl.holdObjectButton);
}
function GetHoldPositionButton()
{
return Pointer.encode(this.coopControl.holdPositionButton);
}
function InitializeButtons()
{
}
function setHouseColor(houseColor)
{
var _loc1_ = new Color(coopControl.portrait.houseColorMC);
_loc1_.setRGB(houseColor);
}
function SetHighlighted(highlightArg)
{
var _loc2_ = highlightArg != 0;
if(_loc2_)
{
if(highlightClip == undefined)
{
highlightClip = _global.CreateHUDGadgetFlash(coopControl.highlightDummy);
}
}
else if(highlightClip != undefined)
{
highlightClip.Close();
highlightClip = undefined;
}
}
function SetPortraitHighlighted(highlightArg)
{
var _loc1_ = highlightArg != 0;
if(_loc1_)
{
if(!coopControl.portraitFlashMC.isOn)
{
coopControl.portraitFlashMC.gotoAndPlay("_on");
coopControl.portraitFlashMC.isOn = true;
}
coopControl.portraitFlashMC.done = false;
}
else if(coopControl.portraitFlashMC.isOn)
{
coopControl.portraitFlashMC.done = true;
}
}
function onUnload()
{
highlightClip.Close();
delete Open;
delete Close;
delete SetVisibility;
delete GetMonitor;
delete GetDefaultButton;
delete GetAssaultButton;
delete GetHoldObjectButton;
delete GetHoldPositionButton;
delete InitializeButtons;
delete SetHighlighted;
delete SetPortraitHighlighted;
delete onUnload;
}
if(!initialized)
{
trace("Co Op AI Order Panenl Initialized");
SetVisibility(true);
InitializeButtons();
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
if(!extern.InGame)
{
Open();
SetPortraitHighlighted(1);
}
}
@@ -0,0 +1 @@
itemStage._visible = false;
@@ -0,0 +1 @@
itemStage._visible = true;
@@ -0,0 +1,2 @@
// Forbidden
getURL("FSCommand:" add _global.qualifyName(this,"OnOpened"),"");
@@ -0,0 +1,5 @@
// Forbidden
getURL("FSCommand:" add _global.qualifyName(this,"OnClosed"),"");
itemStage._visible = false;
gotoAndStop("_closed");
play();