GuiManager
This item only works when running on the client. Client
Manager module for GUIs (mainly EffectGui), used for things such as the boost & key display.
Functions
CreateBoostFrame
GuiManager:
CreateBoostFrame
(
boostData:
CharacterManager_Types.BoostData
) →
_TDefs.BoostTimerFrame
Creates and returns a boost timer frame for the given boostType
.
The visual data for every type is defined in the BOOST_TIMER_DATA
table.
UpdateBoostFrame
GuiManager:
UpdateBoostFrame
(
boostData:
CharacterManager_Types.BoostData
) →
(
)
Updates a boost's timer frame.
FormatBoostTimer
GuiManager:
FormatBoostTimer
(
boostData:
CharacterManager_Types.BoostData
) →
string
Helper function that formats a boost's remaining time into a string.
DestroyBoostFrame
GuiManager:
DestroyBoostFrame
(
boostData:
CharacterManager_Types.BoostData
) →
(
)
Destroys the given boost's timer frame, fading it out and deleting it when finished
BindKeyCache
GuiManager:
BindKeyCache
(
cache:
_TDefs.KeyCache
) →
(
)
Binds the given cache
to the key cache.
UnbindKeyCache
GuiManager:
UnbindKeyCache
(
cache:
_TDefs.KeyCache
) →
(
)
Unbinds the given cache
from the key cache.
DisplayGUI
GuiManager:
DisplayGUI
(
guiName:
string
,
...:
any
) →
(
)
Displays the GUI with the given guiName
on the player's screen.