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: 90 B

@@ -0,0 +1,3 @@
on(release){
OnClicked();
}
@@ -0,0 +1,78 @@
function Move(newX, newY)
{
_parent.MoveIndicator(this,newX,newY);
}
function SetSelected(val)
{
var _loc1_ = val != 0;
if(_loc1_ != isSelected)
{
isSelected = _loc1_;
_alpha = !_loc1_ ? 50 : 100;
var _loc2_ = getDepth();
if(_loc1_)
{
_loc2_ += 1000;
}
else
{
_loc2_ -= 1000;
}
swapDepths(_loc2_);
}
}
function SetVisibility(val)
{
_visible = val != 0;
}
function OnBound()
{
if(initialized)
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
}
function OnDestroying()
{
if(initialized)
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnClipDestroyed"),"");
}
}
function OnClicked()
{
trace("ObjectiveIndicator OnClicked(), this = " + String(this));
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnClicked"),"");
}
function onUnload()
{
delete Move;
delete SetSelected;
delete SetVisibility;
delete OnBound;
delete OnDestroying;
delete OnClicked;
delete onUnload;
}
if(!initialized)
{
textMC.text = "$" + qualifyName(this,"Ordinal");
primary.gotoAndPlay(category);
bonus.gotoAndPlay(category);
if(isBonus)
{
primary._visible = false;
}
else
{
bonus._visible = false;
}
isSelected = false;
_alpha = 50;
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
@@ -0,0 +1,40 @@
function Move(newX, newY)
{
_parent.MoveIndicator(this,newX,newY);
}
function SetColor(newColor)
{
var _loc2_ = new Color(this);
_loc2_.setRGB(newColor);
}
function OnBound()
{
if(initialized)
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
}
function OnDestroying()
{
if(initialized)
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnClipDestroyed"),"");
}
}
function onUnload()
{
delete Move;
delete SetColor;
delete OnBound;
delete OnDestroying;
delete onUnload;
}
if(!initialized)
{
gotoAndPlay(structureType);
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
@@ -0,0 +1,50 @@
function Move(newX, newY)
{
_parent.MoveIndicator(this,newX,newY);
}
function ColorizeDot()
{
var _loc1_ = new Color(dot);
_loc1_.setRGB(indicatorColor);
}
function SetColor(newColor)
{
indicatorColor = newColor;
ColorizeDot();
}
function SetRevealed(arg)
{
gotoAndPlay(arg == 0 ? "Shrouded" : "Revealed");
}
function OnBound()
{
if(initialized)
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
}
function OnDestroying()
{
if(initialized)
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnClipDestroyed"),"");
}
}
function onUnload()
{
delete Move;
delete SetColor;
delete SetRevealed;
delete OnBound;
delete OnDestroying;
delete onUnload;
}
if(!initialized)
{
indicatorColor = 16777215;
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
@@ -0,0 +1,20 @@
function OnDestroying()
{
trace("SimpleRenderingSurface OnDestroying()");
if(initialized)
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnClipDestroyed"),"");
}
}
function onUnload()
{
delete OnDestroying;
delete onUnload;
}
if(!initialized)
{
var initContent = {_type:qualifyName(this,"Render"),_x:shape._x,_y:shape._y,_width:shape._width,_height:shape._height};
var contentClip = attachMovie("SimpleRenderingSurfaceContentPlaceholder","content",0,initContent);
initialized = true;
}
@@ -0,0 +1,91 @@
function AddIndicator(structureType)
{
var _loc3_ = nextIndicatorId;
nextIndicatorId++;
var _loc2_ = this.attachMovie("StructureIndicator",String(_loc3_),_loc3_);
_loc2_.structureType = structureType;
_loc2_.relX = 0;
_loc2_.relY = 0;
indicators.push(_loc2_);
return Pointer.encode(_loc2_);
}
function RemoveIndicator(indicator)
{
var _loc2_ = indicators.length;
var _loc1_ = 0;
while(_loc1_ < _loc2_)
{
if(indicator == indicators[_loc1_])
{
indicators.splice(_loc1_,1);
if(indicators.length == 0)
{
nextIndicatorId = 0;
}
break;
}
_loc1_ = _loc1_ + 1;
}
indicator.removeMovieClip();
}
function MoveIndicator(indicator, newX, newY)
{
indicator.relX = newX;
indicator.relY = newY;
indicator._x = sizer._width * newX;
indicator._y = sizer._height * newY;
}
function Resize(newWidth, newHeight)
{
sizer._width = newWidth;
sizer._height = newHeight;
var _loc3_ = indicators.length;
var _loc2_ = 0;
while(_loc2_ < _loc3_)
{
var _loc1_ = indicators[_loc2_];
_loc1_._x = _loc1_.relX * newWidth;
_loc1_._y = _loc1_.relY * newHeight;
_loc2_ = _loc2_ + 1;
}
}
function OnBound()
{
if(initialized)
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
}
function OnDestroying()
{
var _loc3_ = indicators.length;
var _loc2_ = 0;
while(_loc2_ < _loc3_)
{
indicators[_loc2_].OnDestroying();
_loc2_ = _loc2_ + 1;
}
if(initialized)
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnClipDestroyed"),"");
}
}
function onUnload()
{
delete AddIndicator;
delete RemoveIndicator;
delete MoveIndicator;
delete OnBound;
delete OnDestroying;
delete onUnload;
}
if(!initialized)
{
indicators = new Array();
nextIndicatorId = 0;
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
@@ -0,0 +1,90 @@
function AddIndicator()
{
var _loc3_ = nextIndicatorId;
nextIndicatorId++;
var _loc2_ = this.attachMovie("StartPosIndicator",String(_loc3_),_loc3_);
_loc2_.relX = 0;
_loc2_.relY = 0;
indicators.push(_loc2_);
return Pointer.encode(_loc2_);
}
function RemoveIndicator(indicator)
{
var _loc2_ = indicators.length;
var _loc1_ = 0;
while(_loc1_ < _loc2_)
{
if(indicator == indicators[_loc1_])
{
indicators.splice(_loc1_,1);
if(indicators.length == 0)
{
nextIndicatorId = 0;
}
break;
}
_loc1_ = _loc1_ + 1;
}
indicator.removeMovieClip();
}
function MoveIndicator(indicator, newX, newY)
{
indicator.relX = newX;
indicator.relY = newY;
indicator._x = sizer._width * newX;
indicator._y = sizer._height * newY;
}
function Resize(newWidth, newHeight)
{
sizer._width = newWidth;
sizer._height = newHeight;
var _loc3_ = indicators.length;
var _loc2_ = 0;
while(_loc2_ < _loc3_)
{
var _loc1_ = indicators[_loc2_];
_loc1_._x = _loc1_.relX * newWidth;
_loc1_._y = _loc1_.relY * newHeight;
_loc2_ = _loc2_ + 1;
}
}
function OnBound()
{
if(initialized)
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
}
function OnDestroying()
{
var _loc3_ = indicators.length;
var _loc2_ = 0;
while(_loc2_ < _loc3_)
{
indicators[_loc2_].OnDestroying();
_loc2_ = _loc2_ + 1;
}
if(initialized)
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnClipDestroyed"),"");
}
}
function onUnload()
{
delete AddIndicator;
delete RemoveIndicator;
delete MoveIndicator;
delete OnBound;
delete OnDestroying;
delete onUnload;
}
if(!initialized)
{
indicators = new Array();
nextIndicatorId = 0;
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
@@ -0,0 +1,92 @@
function AddIndicator(category, isBonus)
{
var _loc3_ = nextIndicatorId;
nextIndicatorId++;
var _loc2_ = this.attachMovie("ObjectiveIndicator",String(_loc3_),_loc3_);
_loc2_.category = category;
_loc2_.isBonus = isBonus != 0;
_loc2_.relX = 0;
_loc2_.relY = 0;
indicators.push(_loc2_);
return Pointer.encode(_loc2_);
}
function RemoveIndicator(indicator)
{
var _loc2_ = indicators.length;
var _loc1_ = 0;
while(_loc1_ < _loc2_)
{
if(indicator == indicators[_loc1_])
{
indicators.splice(_loc1_,1);
if(indicators.length == 0)
{
nextIndicatorId = 0;
}
break;
}
_loc1_ = _loc1_ + 1;
}
indicator.removeMovieClip();
}
function MoveIndicator(indicator, newX, newY)
{
indicator.relX = newX;
indicator.relY = newY;
indicator._x = sizer._width * newX;
indicator._y = sizer._height * newY;
}
function Resize(newWidth, newHeight)
{
sizer._width = newWidth;
sizer._height = newHeight;
var _loc3_ = indicators.length;
var _loc2_ = 0;
while(_loc2_ < _loc3_)
{
var _loc1_ = indicators[_loc2_];
_loc1_._x = _loc1_.relX * newWidth;
_loc1_._y = _loc1_.relY * newHeight;
_loc2_ = _loc2_ + 1;
}
}
function OnBound()
{
if(initialized)
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
}
function OnDestroying()
{
var _loc3_ = indicators.length;
var _loc2_ = 0;
while(_loc2_ < _loc3_)
{
indicators[_loc2_].OnDestroying();
_loc2_ = _loc2_ + 1;
}
if(initialized)
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnClipDestroyed"),"");
}
}
function onUnload()
{
delete AddIndicator;
delete RemoveIndicator;
delete MoveIndicator;
delete OnBound;
delete OnDestroying;
delete onUnload;
}
if(!initialized)
{
indicators = new Array();
nextIndicatorId = 0;
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
@@ -0,0 +1,150 @@
function ResizeRenderingSurface(surfaceClip, x, y, w, h)
{
surfaceClip._x = x;
surfaceClip._y = y;
surfaceClip._width = w;
surfaceClip._height = h;
}
function ResizeIndicatorLayer(layerClip, x, y, w, h)
{
layerClip._x = x;
layerClip._y = y;
if(layerClip.initialized)
{
layerClip.Resize(w,h);
}
else
{
layerClip.sizer._width = w;
layerClip.sizer._height = h;
}
}
function SetMapAspectRatio(mapAspectRatio)
{
var _loc7_ = backgroundMC._x;
var _loc8_ = backgroundMC._y;
var _loc6_ = backgroundMC._width;
var _loc5_ = backgroundMC._height;
var _loc10_ = _loc6_ / _loc5_;
var _loc4_ = undefined;
var _loc3_ = undefined;
var _loc1_ = undefined;
var _loc2_ = undefined;
if(mapAspectRatio >= _loc10_)
{
_loc4_ = _loc7_;
_loc1_ = _loc6_;
_loc2_ = _loc1_ / mapAspectRatio;
_loc3_ = _loc8_ + (_loc5_ - _loc2_) * 0.5;
}
else
{
_loc3_ = _loc8_;
_loc2_ = _loc5_;
_loc1_ = _loc2_ * mapAspectRatio;
_loc4_ = _loc7_ + (_loc6_ - _loc1_) * 0.5;
}
ResizeRenderingSurface(terrainSurface,_loc4_,_loc3_,_loc1_,_loc2_);
ResizeRenderingSurface(shroudSurface,_loc4_,_loc3_,_loc1_,_loc2_);
ResizeIndicatorLayer(objectiveLayer,_loc4_,_loc3_,_loc1_,_loc2_);
ResizeIndicatorLayer(structureLayer,_loc4_,_loc3_,_loc1_,_loc2_);
ResizeIndicatorLayer(hotSpotLayer,_loc4_,_loc3_,_loc1_,_loc2_);
ResizeIndicatorLayer(startPosLayer,_loc4_,_loc3_,_loc1_,_loc2_);
ResizeIndicatorLayer(bridgeLayer,_loc4_,_loc3_,_loc1_,_loc2_);
}
function GetObjectiveLayer()
{
return Pointer.encode(objectiveLayer);
}
function GetStructureLayer()
{
return Pointer.encode(structureLayer);
}
function GetHotSpotLayer()
{
return Pointer.encode(hotSpotLayer);
}
function GetBridgeLayer()
{
return Pointer.encode(bridgeLayer);
}
function GetStartPosLayer()
{
return Pointer.encode(startPosLayer);
}
function GetTerrainRenderingSurface()
{
return Pointer.encode(terrainSurface);
}
function GetShroudRenderingSurface()
{
return Pointer.encode(shroudSurface);
}
function OnBound()
{
if(initialized)
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
shroudSurface.OnBound();
terrainSurface.OnBound();
objectiveLayer.OnBound();
structureLayer.OnBound();
hotSpotLayer.OnBound();
startPosLayer.OnBound();
bridgeLayer.OnBound();
}
function OnDestroying()
{
trace("ig_missionMap OnDestroying()");
startPosLayer.OnDestroying();
hotSpotLayer.OnDestroying();
structureLayer.OnDestroying();
objectiveLayer.OnDestroying();
terrainSurface.OnDestroying();
shroudSurface.OnDestroying();
bridgeLayer.OnDestroying();
if(initialized)
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnClipDestroyed"),"");
}
}
function OnContentLoaded(contentClip)
{
if(contentClip == hotSpotLayer || contentClip == bridgeLayer)
{
contentClip._x = objectiveLayer._x;
contentClip._y = objectiveLayer._y;
contentClip.sizer._width = objectiveLayer.sizer._width;
contentClip.sizer._height = objectiveLayer.sizer._height;
}
}
function onUnload()
{
trace("ig_missionMap onUnload()");
delete ResizeRenderingSurface;
delete ResizeIndicatorLayer;
delete SetMapAspectRatio;
delete GetObjectiveLayer;
delete GetHotSpotLayer;
delete GetBridgeLayer;
delete GetStartPosLayer;
delete GetTerrainRenderingSurface;
delete GetShroudRenderingSurface;
delete OnBound;
delete OnDestroying;
delete OnContentLoaded;
delete onUnload;
}
if(!initialized)
{
trace("ig_missionMap loaded");
_parent.OnContentLoaded(this);
hotSpotLayer.loadMovie("ig_missionMapHotSpotLayer.swf");
bridgeLayer.loadMovie("ig_RadarBridgeLayer.swf");
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
}
@@ -0,0 +1,4 @@
29;ObjectiveIndicator
31;SimpleRenderingSurfaceContentPlaceholder
36;StructureIndicator
40;StartPosIndicator
1 29 ObjectiveIndicator
2 31 SimpleRenderingSurfaceContentPlaceholder
3 36 StructureIndicator
4 40 StartPosIndicator
@@ -0,0 +1 @@
3