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,3 @@
on(press){
_root.PlaySound("Gui_ShellMapSelect");
}
@@ -0,0 +1,5 @@
on(release){
_root.GameCode(this.gameCode);
gotoAndStop("_down");
play();
}
@@ -0,0 +1,4 @@
on(rollOut){
gotoAndStop("_rollout");
play();
}
@@ -0,0 +1,5 @@
on(rollOver){
gotoAndStop("_over");
play();
_root.PlaySound("Gui_ShellMapMouseOver");
}
@@ -0,0 +1 @@
overClip.gotoAndPlay(20);
@@ -0,0 +1,2 @@
gotoAndStop("_up");
play();
@@ -0,0 +1,3 @@
gotoAndStop("_up");
play();
this.DoButtonCallBack();
@@ -0,0 +1,9 @@
if(_parent.isBuddyChat)
{
stop();
}
else
{
gotoAndStop("_enabled");
play();
}
@@ -0,0 +1,5 @@
on(construct){
_type = "TextEntry";
_Init = "AptInGameChat::InitGadgets";
_Load = "Apt/TextEntry.wnd";
}
@@ -0,0 +1,34 @@
Send.buttonName = "$Send";
Cancel.buttonName = "$Cancel";
Send.DoButtonCallBack = function()
{
Send.gotoAndPlay("_up");
_root.GameCode("Send");
};
Cancel.DoButtonCallBack = function()
{
Cancel.gotoAndPlay("_disabled");
_root.GameCode("Close");
trace("Closing" + _global.LabelToClose);
_root.CloseChat();
};
Release = function(param)
{
eval(param).gotoAndPlay("_down");
_root.PlaySound("Gui_ShellMapSelect");
};
Press = function(param)
{
eval(param).gotoAndStop("_down");
};
RollOver = function(param)
{
eval(param).gotoAndPlay("_over");
_root.PlaySound("Gui_ShellMapMouseOver");
};
RollOut = function(param)
{
eval(param).gotoAndPlay("_rollout");
_root.PlaySound("Gui_ShellMapMouseOut");
};
stop();
@@ -0,0 +1,3 @@
onClipEvent(load){
text = "$InGameChatHeading&dropshadow";
}
@@ -0,0 +1,2 @@
stop();
_root.GameCode("OnClosed");
@@ -0,0 +1,176 @@
function SetDisplayResolution(widthArg, heightArg)
{
var _loc1_ = Number(widthArg);
var _loc3_ = Number(heightArg);
var _loc2_ = 1024;
var _loc4_ = 768;
if(_loc1_ * _loc4_ > _loc3_ * _loc2_)
{
_loc1_ *= _loc4_ / _loc3_;
panel._x -= (_loc1_ - _loc2_) * 0.5;
trace("panel._x = " + String(panel._x));
}
}
function GameCode(func, params)
{
trace("Call " + _root.CodePrefix + "::" + func + "(" + params + ")");
// Checked
getURL("FSCommand:" add (_root.CodePrefix + "::" + func),params);
}
function GameCodeNoPrefix(func, params)
{
trace("Call(NP) " + func + "(" + params + ")");
// Never used
// Checked
getURL("FSCommand:" add func,params);
}
function PlaySound(name)
{
if(!_root.Initialized)
{
return undefined;
}
// Checked
getURL("FSCommand:PlaySound",name);
}
function InitialSetup()
{
_root.Initialized = false;
if(extern.InGame)
{
_global.InGame = true;
_global.InBetaDemo = undefined;
_global.InDreamMachineDemo = undefined;
}
if(_global.InBetaDemo == undefined && extern.InBetaDemo)
{
_global.InBetaDemo = true;
}
if(_global.InDreamMachineDemo == undefined && extern.InDreamMachineDemo)
{
_global.InDreamMachineDemo = true;
}
_root.InitFunc();
_root.Initialized = true;
}
function EnableComponents(path)
{
trace("EnableComponents:" + path);
// Checked
getURL("FSCommand:EnableComponents",path);
}
function DisableComponents(path)
{
trace("DisableComponents:" + path);
// Checked
getURL("FSCommand:DisableComponents",path);
}
function GetExtern(ext, testDefault)
{
var _loc3_ = undefined;
if(_global.InGame)
{
_loc3_ = extern[ext];
}
else
{
if(_root[ext] == undefined)
{
_loc3_ = testDefault;
}
else
{
_loc3_ = _root[ext];
}
trace("GetExtern(" + ext + ")=>" + _loc3_);
}
return _loc3_;
}
function SetExtern(ext, to)
{
if(_global.InGame)
{
extern[ext] = to;
}
else
{
_root[ext] = to;
trace("SetExtern(" + ext + ")=>" + to);
}
}
function ToggleExtern(ext)
{
var _loc3_ = undefined;
if(_global.InGame)
{
_loc3_ = !Number(extern[ext]);
extern[ext] = _loc3_;
}
else
{
_loc3_ = !_root[ext];
_root[ext] = _loc3_;
}
return _loc3_;
}
function StopBackground()
{
getUrl("FSCommand:SetBackground", "off");
}
function FadeInBackground()
{
getUrl("FSCommand:SetBackground", "fadein");
}
function FadeOutBackground()
{
getUrl("FSCommand:SetBackground", "fadeout");
}
function FindAbsolute(of, from)
{
if(from._parent == undefined)
{
return from[of];
}
return FindAbsolute(of,from._parent) + from[of];
}
function OpenChat()
{
panel.gotoAndPlay("_open");
}
function CloseChat()
{
panel.gotoAndPlay("_close");
}
function EnableSendButton()
{
panel.mcInGameChat.Send.gotoAndPlay("_reveal");
}
function DisableSendButton()
{
panel.mcInGameChat.Send.gotoAndPlay("_disabled");
}
_root.CodePrefix = "AptInGameChat";
colorInnerFrameA = "3399FF";
colorInnerFrameB = "3399FF";
colorLine = "3399FF";
colorGadgetBox = "3399FF";
colorGadgetGameSpeed = "3399FF";
colorTextDark = "0x57512B";
colorTextBright = "0x31210F";
colorSubTextBright = "0xC2F47D";
colorSubTextDark = "0x57842B";
colorTitleA = "0xCDE47E";
tabTextColorDark = "0x123B15";
tabTextColorBritght = "0x8ac14d";
if(!_root.Initialized)
{
if(_root.InitFunc == undefined)
{
_root.InitFunc = function()
{
GameCode("OnInitialized");
};
}
InitialSetup();
}
OpenChat();