From 12c2a660a665cc53d936ee187587fb5a9d924c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Sun, 12 Jan 2014 01:38:55 +0100 Subject: [PATCH] fml fix --- application/core/FML/Script/Script.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/core/FML/Script/Script.php b/application/core/FML/Script/Script.php index 86122e8d..31bcd7d0 100644 --- a/application/core/FML/Script/Script.php +++ b/application/core/FML/Script/Script.php @@ -472,8 +472,8 @@ Void " . self::FUNCTION_SETTOOLTIPTEXT . "(CMlControl _TooltipControl, CMlContro if (!" . self::CONSTANT_TOOLTIPTEXTS . "[TooltipId].existskey(HoverId)) return; declare Label = (_TooltipControl as CMlLabel); Label.Value = " . self::CONSTANT_TOOLTIPTEXTS . "[TooltipId][HoverId]; -} - +}"; + $getFunctionText = " Text " . self::FUNCTION_GETTOOLTIPCONTROLID . "(Text _ControlClass) { declare ClassParts = TextLib::Split(\"-\", _ControlClass); if (ClassParts.count < 2) return \"\"; @@ -481,6 +481,7 @@ Text " . self::FUNCTION_GETTOOLTIPCONTROLID . "(Text _ControlClass) { return ClassParts[1]; }"; $this->setFunction(self::FUNCTION_SETTOOLTIPTEXT, $setFunctionText); + $this->setFunction(self::FUNCTION_GETTOOLTIPCONTROLID, $getFunctionText); } /** @@ -779,6 +780,7 @@ if (Event.Control.HasClass(\"" . self::CLASS_TOGGLE . "\")) { */ private function getSpectateLabels() { if (!$this->spectate) return ''; + $this->setInclude('TextLib', 'TextLib'); $spectateScript = " if (Event.Control.HasClass(\"" . self::CLASS_SPECTATE . "\")) { declare Login = \"\";