fml fix
This commit is contained in:
parent
12c2a660a6
commit
a790309e02
@ -354,20 +354,21 @@ class Script {
|
|||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
private function buildScriptText() {
|
private function buildScriptText() {
|
||||||
$scriptText = "";
|
$mainFunction = $this->getMainFunction();
|
||||||
$scriptText .= $this->getHeaderComment();
|
$labels = $this->getLabels();
|
||||||
$scriptText .= $this->getIncludes();
|
$functions = $this->getFunctions();
|
||||||
$scriptText .= $this->getConstants();
|
$constants = $this->getConstants();
|
||||||
$scriptText .= $this->getFunctions();
|
$includes = $this->getIncludes();
|
||||||
$scriptText .= $this->getTooltipLabels();
|
$headerComment = $this->getHeaderComment();
|
||||||
$scriptText .= $this->getMenuLabels();
|
|
||||||
$scriptText .= $this->getPagesLabels();
|
$scriptText = PHP_EOL;
|
||||||
$scriptText .= $this->getProfileLabels();
|
$scriptText .= $headerComment;
|
||||||
$scriptText .= $this->getMapInfoLabels();
|
$scriptText .= $includes;
|
||||||
$scriptText .= $this->getSoundLabels();
|
$scriptText .= $constants;
|
||||||
$scriptText .= $this->getToggleLabels();
|
$scriptText .= $functions;
|
||||||
$scriptText .= $this->getSpectateLabels();
|
$scriptText .= $labels;
|
||||||
$scriptText .= $this->getMainFunction();
|
$scriptText .= $mainFunction;
|
||||||
|
|
||||||
return $scriptText;
|
return $scriptText;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -473,6 +474,7 @@ Void " . self::FUNCTION_SETTOOLTIPTEXT . "(CMlControl _TooltipControl, CMlContro
|
|||||||
declare Label = (_TooltipControl as CMlLabel);
|
declare Label = (_TooltipControl as CMlLabel);
|
||||||
Label.Value = " . self::CONSTANT_TOOLTIPTEXTS . "[TooltipId][HoverId];
|
Label.Value = " . self::CONSTANT_TOOLTIPTEXTS . "[TooltipId][HoverId];
|
||||||
}";
|
}";
|
||||||
|
$this->setFunction(self::FUNCTION_SETTOOLTIPTEXT, $setFunctionText);
|
||||||
$getFunctionText = "
|
$getFunctionText = "
|
||||||
Text " . self::FUNCTION_GETTOOLTIPCONTROLID . "(Text _ControlClass) {
|
Text " . self::FUNCTION_GETTOOLTIPCONTROLID . "(Text _ControlClass) {
|
||||||
declare ClassParts = TextLib::Split(\"-\", _ControlClass);
|
declare ClassParts = TextLib::Split(\"-\", _ControlClass);
|
||||||
@ -480,10 +482,27 @@ Text " . self::FUNCTION_GETTOOLTIPCONTROLID . "(Text _ControlClass) {
|
|||||||
if (ClassParts[0] != \"" . self::CLASS_TOOLTIP . "\") return \"\";
|
if (ClassParts[0] != \"" . self::CLASS_TOOLTIP . "\") return \"\";
|
||||||
return ClassParts[1];
|
return ClassParts[1];
|
||||||
}";
|
}";
|
||||||
$this->setFunction(self::FUNCTION_SETTOOLTIPTEXT, $setFunctionText);
|
|
||||||
$this->setFunction(self::FUNCTION_GETTOOLTIPCONTROLID, $getFunctionText);
|
$this->setFunction(self::FUNCTION_GETTOOLTIPCONTROLID, $getFunctionText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Labels
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
private function getLabels() {
|
||||||
|
$labelsText = PHP_EOL;
|
||||||
|
$labelsText .= $this->getTooltipLabels();
|
||||||
|
$labelsText .= $this->getMenuLabels();
|
||||||
|
$labelsText .= $this->getPagesLabels();
|
||||||
|
$labelsText .= $this->getProfileLabels();
|
||||||
|
$labelsText .= $this->getMapInfoLabels();
|
||||||
|
$labelsText .= $this->getSoundLabels();
|
||||||
|
$labelsText .= $this->getToggleLabels();
|
||||||
|
$labelsText .= $this->getSpectateLabels();
|
||||||
|
return $labelsText;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the Tooltip Labels
|
* Get the Tooltip Labels
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user