mirror of
https://github.com/Jusctsch5/ironsphererpg.git
synced 2026-01-20 03:54:45 +00:00
Taking everything obtained from http://ironsphererpg2.webs.com/ and dumping it in a git repo
30 lines
1,004 B
C#
30 lines
1,004 B
C#
function RPGZoneEntry::newZone(%this, %zoneName, %rzs, %goodZone, %entered)
|
|
{
|
|
%cTag = (%goodZone) ? "66FF00" : "990000";
|
|
if (%goodZone)
|
|
%t = "<just:center><font:Verdana Bold:30><color:66FF00>" @ %zoneName;
|
|
else
|
|
%t = "<just:center><font:Verdana Bold:30><color:990000>" @ %zoneName;
|
|
RPGZoneEntryText.setValue(collapseEscape(%t));
|
|
RPGZoneEntryTitle.setValue("<just:center><font:Verdana Bold:20><color:666666>You have ");
|
|
RPGZoneEntryTitle.addText(%entered ? "entered" : "left", false);
|
|
|
|
RPGZoneEntryInfo.setValue("<just:center><font:Verdana Bold:18><color:666666>" @ %rzs);
|
|
%this.showText();
|
|
}
|
|
|
|
function RPGZoneEntry::showText(%this)
|
|
{
|
|
canvas.pushDialog(%this);
|
|
|
|
if (isEventPending(%this.dSch))
|
|
cancel(%this.dSch);
|
|
|
|
%this.dSch = canvas.schedule(5000, "popDialog", %this);
|
|
}
|
|
|
|
function clientCmdRPGEnterZone(%zoneName, %rzs, %goodZone, %entered)
|
|
{
|
|
RPGZoneEntry.newZone(%zoneName, %rzs, %goodZone, %entered);
|
|
}
|