mirror of
https://github.com/Ragora/T2-BoL.git
synced 2026-01-19 19:14:45 +00:00
31 lines
759 B
C#
31 lines
759 B
C#
// #autoload
|
|
// #name = GUIML Workaround
|
|
// #version = 2.0
|
|
// #date = March 1st, 2010
|
|
// #category = Fix
|
|
// #author = Dark Dragon DX
|
|
// #warrior = DarkDragonDX
|
|
// #email = DarkDragonDX@Hotmail.com
|
|
// #description = Adds a failSafe for the <a:command> tag. Mainly for players that use mods with interactive GUIML elements.
|
|
|
|
package GUIMLPackage
|
|
{
|
|
function toggleEditor(%make)
|
|
{
|
|
parent::toggleEditor(%make); //Call parent function
|
|
if (!isActivePackage(GUIMLWorkaround))
|
|
activatePackage(GUIMLWorkaround);
|
|
}
|
|
};
|
|
activatePackage(GUIMLPackage);
|
|
|
|
//Seperate package to activate our new code
|
|
package GUIMLWorkaround
|
|
{
|
|
function GuiMLTextCtrl::onURL(%this, %url)
|
|
{
|
|
//parent::onURL(%this, %url);
|
|
commandToServer('ProcessGameLink',getField(%url,1));
|
|
}
|
|
};
|