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(release){
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnClicked"),"");
}
@@ -0,0 +1,4 @@
on(rollOut){
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnRollOut"),"");
}
@@ -0,0 +1,4 @@
on(rollOver){
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnRollOver"),"");
}
@@ -0,0 +1,4 @@
on(rollOut){
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnRollOut"),"");
}
@@ -0,0 +1,4 @@
on(rollOver){
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnRollOver"),"");
}
@@ -0,0 +1,18 @@
function SetProgress(val)
{
trace("SetProgress( " + String(val) + " )");
var _loc1_ = String(Math.floor(val * 24) + 1);
trace("frameNumStr = " + _loc1_);
gotoAndStop(Number(_loc1_));
}
function onUnload()
{
delete SetProgress;
delete onUnload;
}
if(!initialized)
{
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
@@ -0,0 +1,4 @@
if(!extern.InGame)
{
SetProgress(Math.random());
}
@@ -0,0 +1,2 @@
gotoAndStop("_on");
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,76 @@
function SetEnabled(enabledArg)
{
var _loc2_ = enabledArg != 0;
if(_loc2_ != isEnabled)
{
isEnabled = _loc2_;
var _loc3_ = new Color(this);
_loc3_.setRGB(!isEnabled ? 8355711 : 16777215);
}
}
function SetHighlighted(highlightArg)
{
var _loc3_ = highlightArg != 0;
if(_loc3_ != isHighlighted)
{
isHighlighted = _loc3_;
var _loc2_ = _parent.playerTechStoreButtonHighlight;
if(isHighlighted)
{
_loc2_.done = false;
_loc2_.gotoAndPlay("on");
}
else
{
_loc2_.done = true;
}
}
}
function SetFlashing(flashingArg)
{
var _loc2_ = flashingArg != 0;
if(_loc2_ != isFlashing)
{
isFlashing = _loc2_;
var _loc3_ = !_loc2_ ? "_off" : "_on";
flashyThingy.gotoAndPlay(_loc3_);
if(_loc2_)
{
_parent.ugly.Start();
}
else
{
_parent.ugly.Stop();
}
}
}
function GetHelpSite()
{
return Pointer.encode(helpSite);
}
function SetTechPoints(points)
{
techPoints.gotoAndPlay("_" + String(points));
}
function onUnload()
{
delete SetEnabled;
delete SetHighlighted;
delete SetFlashing;
delete GetHelpSite;
delete SetTechPoints;
delete onUnload;
}
if(!initialized)
{
isEnabled = true;
isHighlighted = false;
isFlashing = false;
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
if(!extern.InGame)
{
SetFlashing(1);
}
}
@@ -0,0 +1 @@
gotoAndPlay(!done ? "on" : "off");
@@ -0,0 +1,70 @@
function Start()
{
stop();
cyclesLeft = cycleCount;
currentArrowNum = 0;
var _loc2_ = this[String(currentArrowNum)];
_loc2_.gotoAndPlay("_flash");
_visible = true;
}
function Stop()
{
if(cyclesLeft > 0)
{
var _loc2_ = this[String(currentArrowNum)];
_loc2_.gotoAndPlay("_off");
cyclesLeft = 0;
_visible = false;
}
}
function NextFlash()
{
if(cyclesLeft <= 0)
{
return undefined;
}
currentArrowNum++;
if(currentArrowNum >= arrowCount)
{
cyclesLeft--;
sunburst.gotoAndPlay("_flash");
if(cyclesLeft <= 0)
{
_visible = false;
return undefined;
}
currentArrowNum = 0;
}
var _loc2_ = this[String(currentArrowNum)];
_loc2_.gotoAndPlay("_flash");
}
function onUnload()
{
delete Start;
delete Stop;
delete NextFlash;
delete onUnload;
}
if(!initialized)
{
_visible = false;
arrowCount = 5;
cycleCount = 5;
var i = 0;
while(i < arrowCount)
{
var arrowClip = this[String(i)];
arrowClip.client = this;
i++;
}
initialized = true;
if(!extern.InGame)
{
onEnterFrame = function()
{
Start();
delete onEnterFrame;
};
}
}
stop();
@@ -0,0 +1,72 @@
function Calibrate(orangeThresholdArg, redThresholdArg)
{
orangeThreshold = Number(orangeThresholdArg);
redThreshold = Number(redThresholdArg);
}
function GetPipIndex(intervals, meterValue, meterRange)
{
var _loc1_ = Math.floor(meterValue / meterRange * intervals);
return Math.max(0,Math.min(_loc1_,intervals));
}
function SetValue(valArg)
{
meterMask._visible = false;
var _loc3_ = 14;
var _loc4_ = GetPipIndex(_loc3_,Number(valArg),1);
var _loc1_ = 0;
while(_loc1_ < _loc3_)
{
var _loc2_ = meter[String(_loc1_)];
_loc2_._visible = _loc1_ < _loc4_;
_loc1_ = _loc1_ + 1;
}
}
function SetValueUsingMask(valArg)
{
var _loc1_ = Number(valArg);
var _loc2_ = 0.44999998807907104;
var _loc4_ = 0.8899999856948853;
var _loc3_ = undefined;
if(_loc1_ < orangeThreshold)
{
_loc3_ = _loc1_ / orangeThreshold * _loc2_;
}
else if(_loc1_ < redThreshold)
{
_loc3_ = _loc2_ + (_loc1_ - orangeThreshold) / (redThreshold - orangeThreshold) * (_loc4_ - _loc2_);
}
else
{
_loc3_ = _loc4_ + (_loc1_ - redThreshold) / (1 - redThreshold) * (1 - _loc4_);
}
meterMask._xscale = 100 * _loc3_;
}
function SetVisibility(visArg)
{
_visible = Number(visArg) != 0;
}
function GetHelpSite()
{
return Pointer.encode(helpSite);
}
function onUnload()
{
delete Calibrate;
delete GetPipIndex;
delete SetValue;
delete SetValueUsingMask;
delete SetVisibility;
delete GetHelpSite;
delete onUnload;
}
if(!initialized)
{
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
if(!extern.InGame)
{
Calibrate("0.33","0.67");
SetValue("0.9");
}
}
@@ -0,0 +1,28 @@
function GetPlayerTechStoreButton()
{
return Pointer.encode(playerTechStoreButton);
}
function GetPlayerExperienceMeter()
{
return Pointer.encode(playerExperienceMeter);
}
function GetThreatMeter()
{
return Pointer.encode(threatMeter);
}
function onUnload()
{
delete GetPlayerTechStoreButton;
delete GetPlayerExperienceMeter;
delete GetThreatMeter;
delete onUnload;
}
if(!initialized)
{
playerTechStoreButton.helpSite = helpSite;
threatMeter.helpSite = helpSite;
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
stop();
@@ -0,0 +1,4 @@
on(construct){
vertAlignment = "bottom";
horzAlignment = "left";
}