From 58cf83b9752a02b1b29de70ed8b41d8a91605b86 Mon Sep 17 00:00:00 2001 From: beu Date: Thu, 3 Mar 2022 19:19:26 +0100 Subject: [PATCH] Change toggle update timing to every tick --- libs/FML/Script/Features/ToggleInterface.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/FML/Script/Features/ToggleInterface.php b/libs/FML/Script/Features/ToggleInterface.php index 5e41523a..63c376b7 100644 --- a/libs/FML/Script/Features/ToggleInterface.php +++ b/libs/FML/Script/Features/ToggleInterface.php @@ -106,7 +106,7 @@ class ToggleInterface extends ScriptFeature if ($this->keyCode != null || $this->keyName != null) { $script->appendGenericScriptLabel(ScriptLabel::KEYPRESS, $this->getKeyPressScriptText()); } else { - $script->appendGenericScriptLabel(ScriptLabel::TICK, $this->getTickScriptText()); + $script->appendGenericScriptLabel(ScriptLabel::LOOP, $this->getLoopScriptText()); } return $this; } @@ -156,7 +156,7 @@ if (Event.{$keyProperty} == {$keyValue}) { * * @return string */ - protected function getTickScriptText() + protected function getLoopScriptText() { $VarIsVisible = $this::VAR_ISVISIBLE; $VarWasVisible = $this::VAR_WASVISIBLE;