fml fix
This commit is contained in:
parent
c017148cb6
commit
12c2a660a6
@ -472,8 +472,8 @@ Void " . self::FUNCTION_SETTOOLTIPTEXT . "(CMlControl _TooltipControl, CMlContro
|
|||||||
if (!" . self::CONSTANT_TOOLTIPTEXTS . "[TooltipId].existskey(HoverId)) return;
|
if (!" . self::CONSTANT_TOOLTIPTEXTS . "[TooltipId].existskey(HoverId)) return;
|
||||||
declare Label = (_TooltipControl as CMlLabel);
|
declare Label = (_TooltipControl as CMlLabel);
|
||||||
Label.Value = " . self::CONSTANT_TOOLTIPTEXTS . "[TooltipId][HoverId];
|
Label.Value = " . self::CONSTANT_TOOLTIPTEXTS . "[TooltipId][HoverId];
|
||||||
}
|
}";
|
||||||
|
$getFunctionText = "
|
||||||
Text " . self::FUNCTION_GETTOOLTIPCONTROLID . "(Text _ControlClass) {
|
Text " . self::FUNCTION_GETTOOLTIPCONTROLID . "(Text _ControlClass) {
|
||||||
declare ClassParts = TextLib::Split(\"-\", _ControlClass);
|
declare ClassParts = TextLib::Split(\"-\", _ControlClass);
|
||||||
if (ClassParts.count < 2) return \"\";
|
if (ClassParts.count < 2) return \"\";
|
||||||
@ -481,6 +481,7 @@ Text " . self::FUNCTION_GETTOOLTIPCONTROLID . "(Text _ControlClass) {
|
|||||||
return ClassParts[1];
|
return ClassParts[1];
|
||||||
}";
|
}";
|
||||||
$this->setFunction(self::FUNCTION_SETTOOLTIPTEXT, $setFunctionText);
|
$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() {
|
private function getSpectateLabels() {
|
||||||
if (!$this->spectate) return '';
|
if (!$this->spectate) return '';
|
||||||
|
$this->setInclude('TextLib', 'TextLib');
|
||||||
$spectateScript = "
|
$spectateScript = "
|
||||||
if (Event.Control.HasClass(\"" . self::CLASS_SPECTATE . "\")) {
|
if (Event.Control.HasClass(\"" . self::CLASS_SPECTATE . "\")) {
|
||||||
declare Login = \"\";
|
declare Login = \"\";
|
||||||
|
Loading…
Reference in New Issue
Block a user