From 41677fccc3ffddab993f1efacc6157713793e47b Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Thu, 22 Dec 2022 21:19:11 +0530 Subject: [PATCH] fix ui text alphas --- src/gui/PlayGui.hx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/PlayGui.hx b/src/gui/PlayGui.hx index 64e1ae87..2aa9a1ef 100644 --- a/src/gui/PlayGui.hx +++ b/src/gui/PlayGui.hx @@ -362,13 +362,13 @@ class PlayGui { } public function setHelpTextOpacity(value:Float) { - helpTextForeground.text.color.a = value; - helpTextBackground.text.color.a = value; + @:privateAccess helpTextForeground.text._textColorVec.a = value; + @:privateAccess helpTextBackground.text._textColorVec.a = value; } public function setAlertTextOpacity(value:Float) { - alertTextForeground.text.color.a = value; - alertTextBackground.text.color.a = value; + @:privateAccess alertTextForeground.text._textColorVec.a = value; + @:privateAccess alertTextBackground.text._textColorVec.a = value; } public function setAlertText(text:String) {