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,5 @@
on(rollOut, dragOut){
isMouseOver = false;
// Forbidden
getURL("FSCommand:" add qualifyName(_parent._parent,"OnLeave"),"");
}
@@ -0,0 +1,5 @@
on(rollOver, dragOver){
// Forbidden
getURL("FSCommand:" add qualifyName(_parent._parent,"OnEnter"),GetMousePosString());
isMouseOver = true;
}
@@ -0,0 +1,2 @@
_visible = false;
stop();
@@ -0,0 +1,2 @@
_visible = true;
play();
@@ -0,0 +1,4 @@
if(_global.MinLOD)
{
effect1._visible = 0;
}
@@ -0,0 +1,4 @@
if(_global.MinLOD)
{
effect2._visible = 0;
}
@@ -0,0 +1,4 @@
if(this.done == undefined || !this.done)
{
this.gotoAndPlay("_loop");
}
@@ -0,0 +1,8 @@
if(_parent.initialized)
{
_parent.DestroyPing(this);
}
else
{
this.removeMovieClip();
}
@@ -0,0 +1,12 @@
if(_parent.done == undefined || !_parent.done)
{
_parent.gotoAndPlay(1);
}
else if(_parent._parent.initialized)
{
_parent._parent.DestroyPing(_parent);
}
else
{
_parent.removeMovieClip();
}
@@ -0,0 +1 @@
this.loopcount = 5;
@@ -0,0 +1,4 @@
if(--this.loopcount > 0)
{
this.gotoAndPlay("_loop");
}
@@ -0,0 +1,8 @@
if(_parent._parent.initialized)
{
_parent._parent.DestroyPing(_parent);
}
else
{
_parent.removeMovieClip();
}
@@ -0,0 +1,5 @@
if(pingColor != undefined)
{
var colorizer = new Color(mov);
colorizer.setRGB(pingColor);
}
@@ -0,0 +1,5 @@
if(beaconColor != undefined)
{
var colorizer = new Color(mov.circle.inner);
colorizer.setRGB(beaconColor);
}
@@ -0,0 +1,4 @@
if(this.done == undefined || !this.done)
{
this.gotoAndPlay("_loop");
}
@@ -0,0 +1,8 @@
if(_parent.initialized)
{
_parent.DestroyPing(this);
}
else
{
this.removeMovieClip();
}
@@ -0,0 +1,4 @@
if(this.done == undefined || !this.done)
{
this.gotoAndPlay("_loop");
}
@@ -0,0 +1,8 @@
if(_parent.initialized)
{
_parent.DestroyPing(this);
}
else
{
this.removeMovieClip();
}
@@ -0,0 +1,4 @@
if(this.done == undefined || !this.done)
{
this.gotoAndPlay("_loop");
}
@@ -0,0 +1,8 @@
if(_parent.initialized)
{
_parent.DestroyPing(this);
}
else
{
this.removeMovieClip();
}
@@ -0,0 +1,71 @@
function GetMousePos()
{
var _loc7_ = _root;
var _loc6_ = 0;
var _loc5_ = 0;
var _loc9_ = 1;
var _loc8_ = 1;
ancestor = _parent._parent;
while(ancestor != _loc7_)
{
var _loc3_ = ancestor._xscale * 0.009999999776482582;
_loc6_ *= _loc3_;
_loc6_ -= ancestor._x;
_loc9_ /= _loc3_;
var _loc4_ = ancestor._yscale * 0.009999999776482582;
_loc5_ *= _loc4_;
_loc5_ -= ancestor._y;
_loc8_ /= _loc4_;
ancestor = ancestor._parent;
}
return {x:(_loc7_._xmouse + _loc6_) * _loc9_,y:(_loc7_._ymouse + _loc5_) * _loc8_};
}
function GetMousePosString()
{
var _loc2_ = GetMousePos();
var _loc4_ = (_loc2_.x - _parent._parent.mapX) / _parent._parent.mapWidth;
var _loc3_ = (_loc2_.y - _parent._parent.mapY) / _parent._parent.mapHeight;
return "x=" + String(_loc4_) + "&y=" + String(_loc3_);
}
function onMouseMove()
{
if(isMouseOver || isDragging)
{
var _loc3_ = _parent._parent._xmouse;
var _loc2_ = _parent._parent._ymouse;
if(_loc3_ != lastXMouse || _loc2_ != lastYMouse)
{
lastXMouse = _loc3_;
lastYMouse = _loc2_;
// Forbidden
getURL("FSCommand:" add qualifyName(_parent._parent,"OnMove"),GetMousePosString());
}
}
}
function onMouseDown()
{
if(isMouseOver)
{
// Forbidden
getURL("FSCommand:" add qualifyName(_parent._parent,"OnPress"),GetMousePosString());
isDragging = true;
}
}
function onMouseUp()
{
if(isDragging)
{
// Forbidden
getURL("FSCommand:" add qualifyName(_parent._parent,"OnRelease"),GetMousePosString());
isDragging = false;
}
}
function onUnload()
{
delete GetMousePos;
delete GetMousePosString;
delete onMouseMove;
delete onMouseDown;
delete onMouseUp;
delete onUnload;
}
@@ -0,0 +1,86 @@
function Resize(newWidth, newHeight)
{
sizer._width = newWidth;
sizer._height = newHeight;
var _loc2_ = 0;
while(_loc2_ < indicators.length)
{
var _loc1_ = indicators[_loc2_];
if(_loc1_ != undefined && _loc1_.relX != undefined && _loc1_.relY != undefined)
{
_loc1_._x = _loc1_.relX * newWidth;
_loc1_._y = _loc1_.relY * newHeight;
}
_loc2_ = _loc2_ + 1;
}
}
function AddIndicator(idArg, imageLabelArg)
{
var _loc3_ = Number(idArg);
var _loc4_ = String(imageLabelArg);
var _loc2_ = this[String(_loc3_)];
if(_loc2_ != undefined)
{
DestroyIndicator(_loc2_);
}
_loc2_ = attachMovie("BuildQueueIndicator",String(_loc3_),_loc3_);
_loc2_.imageLabel = _loc4_;
_loc2_.relX = 0;
_loc2_.relY = 0;
indicators.push(_loc2_);
}
function RemoveIndicator(idArg)
{
var _loc3_ = Number(idArg);
var _loc2_ = this[String(_loc3_)];
DestroyIndicator(_loc2_);
}
function MoveIndicator(idArg, relXArg, relYArg)
{
var _loc5_ = Number(idArg);
var _loc4_ = Number(relXArg);
var _loc3_ = Number(relYArg);
var _loc2_ = this[String(_loc5_)];
_loc2_.relX = _loc4_;
_loc2_.relY = _loc3_;
_loc2_._x = _loc4_ * sizer._width;
_loc2_._y = _loc3_ * sizer._height;
}
function DestroyIndicator(indicator)
{
var _loc1_ = 0;
while(_loc1_ < indicators.length)
{
if(indicators[_loc1_] == indicator)
{
indicators.splice(_loc1_,1);
break;
}
_loc1_ = _loc1_ + 1;
}
indicator.removeMovieClip();
}
function onUnload()
{
delete Resize;
delete AddIndicator;
delete RemoveIndicator;
delete MoveIndicator;
delete DestroyIndicator;
delete onUnload;
}
if(!initialized)
{
indicators = new Array();
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
if(!extern.InGame)
{
AddIndicator(0,"Def");
MoveIndicator(0,0.25,0.5);
AddIndicator(1,"Air");
MoveIndicator(1,0.75,0.5);
}
}
stop();
@@ -0,0 +1,73 @@
function Resize(newWidth, newHeight)
{
sizer._width = newWidth;
sizer._height = newHeight;
var _loc2_ = 0;
while(_loc2_ < indicators.length)
{
var _loc1_ = indicators[_loc2_];
if(_loc1_ != undefined && _loc1_.relX != undefined && _loc1_.relY != undefined)
{
_loc1_._x = _loc1_.relX * newWidth;
_loc1_._y = _loc1_.relY * newHeight;
}
_loc2_ = _loc2_ + 1;
}
}
function AddMpBeaconIndicator(beaconColor)
{
var _loc3_ = nextIndicatorId++;
var _loc2_ = this.attachMovie("MpBeaconIndicator",String(_loc3_),_loc3_);
_loc2_.beaconColor = beaconColor;
_loc2_.relX = 0;
_loc2_.relY = 0;
indicators.push(_loc2_);
return !inGame ? _loc2_ : Pointer.encode(_loc2_);
}
function RemoveIndicator(indicator)
{
var _loc1_ = 0;
while(_loc1_ < indicators.length)
{
if(indicators[_loc1_] == indicator)
{
indicators.splice(_loc1_,1);
if(indicators.length == 0)
{
nextIndicatorId = 0;
}
break;
}
_loc1_ = _loc1_ + 1;
}
indicator.removeMovieClip();
}
function MoveIndicator(indicator, relX, relY)
{
indicator.relX = relX;
indicator.relY = relY;
indicator._x = relX * sizer._width;
indicator._y = relY * sizer._height;
}
function onUnload()
{
delete Resize;
delete AddMpBeaconIndicator;
delete RemoveIndicator;
delete MoveIndicator;
delete onUnload;
}
inGame = extern.InGame;
if(!initialized)
{
nextIndicatorId = 0;
indicators = new Array();
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
if(!inGame)
{
MoveIndicator(AddMpBeaconIndicator(65280),0.8999999761581421,0.8999999761581421);
}
}
stop();
@@ -0,0 +1,87 @@
function Resize(newWidth, newHeight)
{
sizer._width = newWidth;
sizer._height = newHeight;
var _loc2_ = undefined;
_loc2_ = 0;
while(_loc2_ < pings.length)
{
var _loc1_ = pings[_loc2_];
if(_loc1_ != undefined && _loc1_.relX != undefined && _loc1_.relY != undefined)
{
_loc1_._x = _loc1_.relX * newWidth;
_loc1_._y = _loc1_.relY * newHeight;
}
_loc2_ = _loc2_ + 1;
}
}
function CreatePing(type, pingColor)
{
var _loc2_ = nextPingId++;
var _loc1_ = attachMovie(type,String(_loc2_),_loc2_);
_loc1_.relX = 0;
_loc1_.relY = 0;
_loc1_.pingColor = pingColor;
pings.push(_loc1_);
return !inGame ? _loc1_ : Pointer.encode(_loc1_);
}
function DetachPing(ping)
{
if(ping != undefined)
{
ping.done = true;
}
}
function MovePing(ping, relX, relY)
{
if(ping != undefined)
{
ping.relX = relX;
ping.relY = relY;
ping._x = relX * sizer._width;
ping._y = relY * sizer._height;
}
}
function DestroyPing(ping)
{
var _loc1_ = 0;
while(_loc1_ < pings.length)
{
if(pings[_loc1_] == ping)
{
pings.splice(_loc1_,1);
break;
}
_loc1_ = _loc1_ + 1;
}
ping.removeMovieClip();
if(pings.length <= 0)
{
nextPingId = 0;
}
}
function onUnload()
{
delete Resize;
delete CreatePing;
delete DetachPing;
delete MovePing;
delete DestroyPing;
delete onUnload;
}
inGame = extern.InGame;
if(!initialized)
{
nextPingId = 0;
pings = new Array();
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
if(!extern.InGame)
{
MovePing(CreatePing("PingPlayer",4278190336),0.5,0.5);
MovePing(CreatePing("PingBeacon"),0.25,0.25);
MovePing(CreatePing("PingUpgrade"),0.75,0.25);
}
}
stop();
@@ -0,0 +1,32 @@
function OnContentLoaded(contentClip)
{
if(contentClip == objectiveStage)
{
_parent.OnObjectiveStageLoaded(contentClip);
}
else if(contentClip == coOpAITargetLayer)
{
_parent.OnCoOpAITargetLayerLoaded(contentClip);
}
else if(contentClip == hotSpotLayer)
{
_parent.OnHotSpotLayerLoaded(contentClip);
}
else if(contentClip == bridgeLayerMC)
{
_parent.OnBridgeLayerLoaded(contentClip);
}
}
function onUnload()
{
delete OnContentLoaded;
delete onUnload;
}
if(!initialized)
{
objectiveStage.loadMovie("../../common/hud/ig_RadarObjectivesLayer.swf");
coOpAITargetLayer.loadMovie("../../common/hud/ig_RadarCoOpAITargetLayer.swf");
hotSpotLayer.loadMovie("ig_missionMapHotSpotLayer.swf");
bridgeLayerMC.loadMovie("ig_RadarBridgeLayer.swf");
initialized = 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,263 @@
function Open()
{
coverMC.gotoAndPlay("_opening");
panel._visible = true;
}
function Close()
{
inputShield._visible = true;
isCoverClosed = true;
isMapAspectRatioChanging = false;
coverMC.gotoAndPlay("_closing");
}
function GetViewBoxSurface()
{
return Pointer.encode(panel.viewBoxSurface);
}
function GetPingStage()
{
return Pointer.encode(panel.pingSurface);
}
function GetTelestratorSurface()
{
return Pointer.encode(panel.telestratorSurface);
}
function GetObjectiveStage()
{
return Pointer.encode(panel.objectiveStage);
}
function GetMovieSurface()
{
return Pointer.encode(movieSurface);
}
function GetBuildQueueStage()
{
return Pointer.encode(panel.buildQueueStage);
}
function GetBeaconStage()
{
return Pointer.encode(panel.beaconStage);
}
function GetObjectsSurface()
{
return Pointer.encode(panel.objectsSurface);
}
function GetTerrainSurface()
{
return Pointer.encode(panel.terrainSurface);
}
function GetCoOpAITargetLayer()
{
return Pointer.encode(panel.coOpAITargetLayer);
}
function GetShroudSurface()
{
return Pointer.encode(panel.shroudSurface);
}
function GetHotSpotLayer()
{
return Pointer.encode(panel.hotSpotLayer);
}
function GetBridgeLayer()
{
return Pointer.encode(panel.bridgeLayerMC);
}
function GetMapWidth()
{
return String(mapWidth);
}
function GetMapHeight()
{
return String(mapHeight);
}
function MoveToMapArea(clip)
{
clip._x = mapX;
clip._y = mapY;
clip._width = mapWidth;
clip._height = mapHeight;
}
function MoveToMapAreaWithoutScaling(clip)
{
clip._x = mapX;
clip._y = mapY;
if(clip.initialized)
{
clip.Resize(mapWidth,mapHeight);
}
else
{
clip.sizer._width = mapWidth;
clip.sizer._height = mapHeight;
}
clip._width = mapWidth;
clip._height = mapHeight;
}
function SetMapAspectRatio(newRatio)
{
if(newRatio == mapAspectRatio)
{
return undefined;
}
if(newRatio > backAspectRatio)
{
mapWidth = backWidth;
mapHeight = mapWidth / newRatio;
mapX = backX;
mapY = backY + (backHeight - mapHeight) / 2;
}
else
{
mapHeight = backHeight;
mapWidth = mapHeight * newRatio;
mapY = backY;
mapX = backX + (backWidth - mapWidth) / 2;
}
mapAspectRatio = newRatio;
MoveToMapArea(panel.viewBoxSurface);
MoveToMapArea(panel.shroudSurface);
MoveToMapArea(panel.objectsSurface);
MoveToMapArea(panel.taintSurface);
MoveToMapArea(panel.terrainSurface);
MoveToMapArea(panel.telestratorSurface);
MoveToMapArea(panel.inputCatcher);
MoveToMapAreaWithoutScaling(panel.pingSurface);
trace("##################******************* pingSurface is " + panel.pingSurface + ", pingSurface._x is " + panel.pingSurface._x + ", pingSurface._y is " + panel.pingSurface._y);
MoveToMapAreaWithoutScaling(panel.objectiveStage);
MoveToMapAreaWithoutScaling(panel.beaconStage);
MoveToMapAreaWithoutScaling(panel.buildQueueStage);
MoveToMapAreaWithoutScaling(panel.coOpAITargetLayer);
MoveToMapAreaWithoutScaling(panel.hotSpotLayer);
MoveToMapAreaWithoutScaling(panel.bridgeLayer);
if(!isCoverClosed)
{
isMapAspectRatioChanging = true;
inputShield._visible = true;
coverMC.gotoAndPlay("_closing");
}
}
function SetJammedMessageVisibility(vis)
{
jammedMessage._visible = vis != 0;
}
function SetHighlighted(highlightArg)
{
var _loc2_ = highlightArg != 0;
if(_loc2_)
{
if(highlightClip == undefined)
{
highlightClip = _global.CreateHUDGadgetFlash(panel.back);
}
}
else
{
highlightClip.Close();
highlightClip = undefined;
}
}
function OnObjectiveStageLoaded(objectiveStage)
{
MoveToMapAreaWithoutScaling(objectiveStage);
}
function OnCoOpAITargetLayerLoaded(coOpAITargetLayer)
{
MoveToMapAreaWithoutScaling(coOpAITargetLayer);
}
function OnHotSpotLayerLoaded(hotSpotLayer)
{
MoveToMapAreaWithoutScaling(hotSpotLayer);
}
function OnBridgeLayerLoaded(bridgeLayer)
{
MoveToMapAreaWithoutScaling(bridgeLayer);
}
function OnCoverClipOpened()
{
inputShield._visible = false;
if(isMapAspectRatioChanging)
{
isMapAspectRatioChanging = false;
}
else
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnOpened"),"");
isCoverClosed = false;
}
}
function OnCoverClipClosed()
{
if(isMapAspectRatioChanging)
{
coverMC.gotoAndPlay("_opening");
}
else
{
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnClosed"),"");
panel._visible = false;
}
}
function onUnload()
{
highlightClip.Close();
delete Open;
delete Close;
delete GetViewBoxSurface;
delete GetPingStage;
delete GetTelestratorSurface;
delete GetObjectiveStage;
delete GetMovieSurface;
delete GetBuildQueueStage;
delete GetBeaconStage;
delete GetObjectsSurface;
delete GetTerrainSurface;
delete GetCoOpAITargetLayer;
delete GetShroudSurface;
delete GetHotSpotLayer;
delete GetBridgeLayer;
delete GetMapWidth;
delete GetMapHeight;
delete MoveToMapArea;
delete MoveToMapAreaWithoutScaling;
delete SetMapAspectRatio;
delete SetJammedMessageVisibility;
delete SetHighlighted;
delete OnObjectiveStageLoaded;
delete OnCoOpAITargetLayerLoaded;
delete OnHotSpotLayerLoaded;
delete OnBridgeLayerLoaded;
delete OnCoverClipOpened;
delete OnCoverClipClosed;
delete coverMC.onOpened;
delete coverMC.onClosed;
delete onUnload;
}
if(!initialized)
{
backX = panel.back._x;
backY = panel.back._y;
backWidth = panel.back._width;
backHeight = panel.back._height;
backAspectRatio = backWidth / backHeight;
mapX = backX;
mapY = backY;
mapWidth = backWidth;
mapHeight = backHeight;
mapAspectRatio = backAspectRatio;
isCoverClosed = true;
isMapAspectRatioChanging = false;
jammedMessage._visible = false;
panel._visible = false;
coverMC.onOpened = _global.bind0(this,OnCoverClipOpened);
coverMC.onClosed = _global.bind0(this,OnCoverClipClosed);
initialized = true;
// Forbidden
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
if(!extern.InGame)
{
SetMapAspectRatio(0.5);
Close();
}
}
@@ -0,0 +1,3 @@
onClipEvent(load){
text = "$" + qualifyName(_parent,"JammedMessage") + "&outline";
}