first commit
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
function SetPlayerColor(colorArg)
|
||||
{
|
||||
var _loc1_ = Number(colorArg);
|
||||
clanText.field.textColor = _loc1_;
|
||||
nameText.field.textColor = _loc1_;
|
||||
factionText.field.textColor = _loc1_;
|
||||
teamText.field.textColor = _loc1_;
|
||||
statusText.field.textColor = _loc1_;
|
||||
}
|
||||
function GetMuteCheckbox()
|
||||
{
|
||||
return Pointer.encode(muteCheckbox);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
delete SetPlayerColor;
|
||||
delete GetMuteCheckbox;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
muteCheckbox.loadMovie("InGameCheckbox.swf");
|
||||
initialized = true;
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
|
||||
}
|
||||
stop();
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
text = "$" + qualifyName(_parent,"PlayerName") + "&dropshadow";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
text = "$" + qualifyName(_parent,"ClanId") + "&dropshadow";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
text = "$" + qualifyName(_parent,"Status") + "&dropshadow";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
text = "$" + qualifyName(_parent,"TeamName") + "&dropshadow";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
text = "$" + qualifyName(_parent,"FactionName") + "&dropshadow";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
text = "$" + qualifyName(_parent._parent._parent._parent,"Mute");
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
text = "$" + qualifyName(_parent._parent._parent._parent,"Status");
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
text = "$" + qualifyName(_parent._parent._parent._parent,"Team");
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
text = "$" + qualifyName(_parent._parent._parent._parent,"Faction");
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
text = "$" + qualifyName(_parent._parent._parent._parent,"PlayerName");
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
function OnCloseButtonClicked()
|
||||
{
|
||||
_parent.Close();
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
delete OnCloseButtonClicked;
|
||||
delete onUnload;
|
||||
}
|
||||
closeButton.PressCallback = OnCloseButtonClicked;
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
onClipEvent(load){
|
||||
if(_root.displayLeft != undefined)
|
||||
{
|
||||
var left = _root.displayLeft;
|
||||
var top = _root.displayTop;
|
||||
var ancestor = _parent;
|
||||
while(ancestor != _root)
|
||||
{
|
||||
left -= ancestor._x;
|
||||
top -= ancestor._y;
|
||||
ancestor = ancestor._parent;
|
||||
}
|
||||
_X = left;
|
||||
_Y = top;
|
||||
_width = _root.displayWidth;
|
||||
_height = _root.displayHeight;
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
on(construct){
|
||||
vStartMode = "";
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
SetText("$" + qualifyName(_parent._parent,"CloseButtonLabel"));
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
onClipEvent(load){
|
||||
text = "$" + qualifyName(_parent._parent,"Title");
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
function Close()
|
||||
{
|
||||
if(!closing)
|
||||
{
|
||||
gotoAndStop("_close");
|
||||
play();
|
||||
closing = true;
|
||||
}
|
||||
}
|
||||
function SetStatusLineCount(countArg)
|
||||
{
|
||||
var _loc4_ = Number(countArg);
|
||||
if(items.length < _loc4_)
|
||||
{
|
||||
var _loc5_ = undefined;
|
||||
if(items.length > 0)
|
||||
{
|
||||
var _loc6_ = items[items.length - 1];
|
||||
_loc5_ = _loc6_._y + itemHeight;
|
||||
}
|
||||
else
|
||||
{
|
||||
_loc5_ = 0;
|
||||
}
|
||||
do
|
||||
{
|
||||
var _loc1_ = nextItemId++;
|
||||
var _loc2_ = dialog.table.items.attachMovie("StatusItem",String(_loc1_),_loc1_);
|
||||
_loc2_._y = _loc5_;
|
||||
_loc5_ += itemHeight;
|
||||
items.push(_loc2_);
|
||||
}
|
||||
while(items.length < _loc4_);
|
||||
|
||||
}
|
||||
else if(items.length > _loc4_)
|
||||
{
|
||||
do
|
||||
{
|
||||
var _loc3_ = items.pop();
|
||||
_loc3_.removeMovieClip();
|
||||
}
|
||||
while(items.length > _loc4_);
|
||||
|
||||
if(items.length == 0)
|
||||
{
|
||||
nextItemId = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
function GetStatusLine(indexArg)
|
||||
{
|
||||
var _loc1_ = Number(indexArg);
|
||||
var _loc2_ = items[_loc1_];
|
||||
return Pointer.encode(_loc2_);
|
||||
}
|
||||
function onUnload()
|
||||
{
|
||||
delete SetStatusLineCount;
|
||||
delete GetStatusLine;
|
||||
delete Close;
|
||||
delete onUnload;
|
||||
}
|
||||
if(!initialized)
|
||||
{
|
||||
_parent.OnContentLoaded(this);
|
||||
itemHeight = 28;
|
||||
items = new Array();
|
||||
nextItemId = 0;
|
||||
initialized = true;
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnInitialized"),"");
|
||||
if(!extern.InGame)
|
||||
{
|
||||
SetStatusLineCount("9");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
stop();
|
||||
@@ -0,0 +1,3 @@
|
||||
stop();
|
||||
// Forbidden
|
||||
getURL("FSCommand:" add qualifyName(this,"OnClosed"),"");
|
||||
Reference in New Issue
Block a user