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
Binary file not shown.

After

Width:  |  Height:  |  Size: 120 B

@@ -0,0 +1,3 @@
on(press){
client.OnPress();
}
@@ -0,0 +1,3 @@
on(release){
client.OnRelease();
}
@@ -0,0 +1,3 @@
on(rollOut, dragOut){
client.OnRollOut();
}
@@ -0,0 +1,3 @@
on(rollOver, dragOver){
client.OnRollOver();
}
@@ -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,179 @@
function SetState(newStateLabel)
{
if(newStateLabel != stateLabel)
{
imageStage.clip.gotoAndPlay(newStateLabel);
backgroundStage.clip.gotoAndPlay(newStateLabel);
buttonStage.clip.gotoAndPlay(newStateLabel);
stateLabel = newStateLabel;
}
}
function OnPress()
{
if(isEnabled)
{
SetState("_down");
}
}
function OnRelease()
{
if(isEnabled)
{
SetState("_over");
}
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnClicked"),"");
}
function OnRollOver()
{
if(!isOver)
{
if(isEnabled)
{
SetState("_over");
}
isOver = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnRollOver"),"");
}
}
function OnRollOut()
{
if(isOver)
{
if(isEnabled)
{
SetState("_up");
}
isOver = false;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnRollOut"),"");
}
}
function AttachContent()
{
var _loc1_ = imageStage.clip;
if(_loc1_ != undefined)
{
_loc1_.removeMovieClip();
}
if(imageClipName != undefined && imageClipName.length > 0)
{
var _loc2_ = imageClipName + (!isSelected ? "Normal" : "Highlighted");
_loc1_ = imageStage.attachMovie(_loc2_,"clip",0);
_loc1_.gotoAndPlay(stateLabel);
}
_loc1_ = backgroundStage.clip;
if(_loc1_ != undefined)
{
_loc1_.removeMovieClip();
}
if(backgroundClipName != undefined && backgroundClipName.length > 0)
{
_loc1_ = backgroundStage.attachMovie(backgroundClipName + (!isSelected ? "Normal" : "Highlighted"),"clip",0);
_loc1_.gotoAndPlay(stateLabel);
}
}
function SetVisibility(visArg)
{
var _loc1_ = Number(visArg) != 0;
_visible = _loc1_;
flashyThingy._visible = _loc1_;
}
function SetEnabled(enableArg)
{
var _loc1_ = Number(enableArg) != 0;
if(_loc1_ != isEnabled)
{
isEnabled = _loc1_;
SetState(!isEnabled ? "_disabled" : "_up");
}
}
function SetSelected(selectArg)
{
var _loc1_ = Number(selectArg) != 0;
if(_loc1_ != isSelected)
{
isSelected = _loc1_;
AttachContent();
}
}
function SetFlashing(flashArg)
{
if(flashyThingy == undefined)
{
return undefined;
}
var _loc1_ = Number(flashArg) != 0;
if(flashyThingy.initialized)
{
if(_loc1_)
{
flashyThingy.Start();
}
else
{
flashyThingy.Stop();
}
}
else
{
flashyThingy.shouldPlay = _loc1_;
}
}
function SetHighlighted(highlightArg)
{
var _loc3_ = highlightArg != 0;
if(_loc3_)
{
if(highlightClip == undefined)
{
highlightClip = _global.CreateHUDGadgetFlash(this);
}
}
else if(highlightClip != undefined)
{
highlightClip.Close();
highlightClip = undefined;
}
}
function GetHelpSite()
{
return Pointer.encode(helpSite);
}
function onUnload()
{
highlightClip.Close();
delete SetState;
delete OnPress;
delete OnRelease;
delete OnRollOver;
delete OnRollOut;
delete AttachContent;
delete SetVisibility;
delete SetEnabled;
delete SetSelected;
delete SetFlashing;
delete SetHighlighted;
delete GetHelpSite;
delete onUnload;
}
if(!initialized)
{
stateLabel = "_disabled";
isEnabled = false;
isSelected = false;
isOver = false;
var buttonClip = buttonStage.attachMovie(buttonClipName,"clip",0);
buttonClip.client = this;
buttonClip.gotoAndPlay("_disabled");
AttachContent();
SetEnabled("1");
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
if(!extern.InGame && flashyThingy != undefined)
{
}
}
stop();
@@ -0,0 +1,29 @@
function GetSellButton()
{
return Pointer.encode(sellButton);
}
function GetRepairButton()
{
return Pointer.encode(repairButton);
}
function GetPauseButton()
{
return Pointer.encode(pauseButton);
}
function onUnload()
{
delete GetSellButton;
delete GetRepairButton;
delete GetPauseButton;
delete onUnload;
}
if(!initialized)
{
sellButton.helpSite = helpSite;
repairButton.helpSite = helpSite;
pauseButton.helpSite = helpSite;
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
stop();
@@ -0,0 +1,4 @@
on(construct){
vertAlignment = "top";
horzAlignment = "right";
}
@@ -0,0 +1,5 @@
on(construct){
buttonClipName = "RA3CommandModeButtonClip";
imageClipName = "RepairButton";
backgroundClipName = "";
}
@@ -0,0 +1,5 @@
on(construct){
buttonClipName = "RA3CommandModeButtonClip";
imageClipName = "ObjectivesButton";
backgroundClipName = "";
}
@@ -0,0 +1,5 @@
on(construct){
buttonClipName = "RA3CommandModeButtonClip";
imageClipName = "SellButton";
backgroundClipName = "";
}
@@ -0,0 +1,7 @@
3;RA3CommandModeButtonClip
13;SellButtonNormal
21;RepairButtonNormal
29;SellButtonHighlighted
37;RepairButtonHighlighted
45;ObjectivesButtonHighlighted
53;ObjectivesButtonNormal
1 3 RA3CommandModeButtonClip
2 13 SellButtonNormal
3 21 RepairButtonNormal
4 29 SellButtonHighlighted
5 37 RepairButtonHighlighted
6 45 ObjectivesButtonHighlighted
7 53 ObjectivesButtonNormal