PrivateadminPrivateadminProtectedbuttonProtectedbuttonPrivate ReadonlybuttonProtectedbuttonProtectedcancelPrivateconfigProtectedcursorProtectededitingProtectederrorProtectedformProtectedinputProtectedinputsProtectedmodalProtectedmodalProtectedmodeProtectedsubmitPrivatetempProtectedtitleProtectedtweenProtectedaddAdds a hover effect to a game object which changes the cursor to a pointer and tints it slighly
the game object to add hover events/effects to
PrivateadminPrivateadminPrivateareOptionalservice: stringPrivateconvertTo be implemented by individual handlers when necessary to free memory Called when BattleScene is reset
Optionalconfig: ModalConfigGet configuration for all fields that should be part of the modal
Gets used by updateFields to add the proper text inputs and labels to the view
array of InputFieldConfig
PrivatepopulatePrivatepopulateThis is used to update the fields' text when loading in a new admin ui handler. It uses the adminResult
to update the input text based on the adminMode. For a linking adminMode, it sets the username and discord.
For a search adminMode, it sets the username. For an admin adminMode, it sets all the info from adminResult in the
appropriate text boxes, and also sets the link/unlink icons for discord/google depending on the result
ProtectedsetChanges the style of the mouse cursor.
cursor style to apply
PrivateupdateOptionalmode: AdminModeOptionalconfig: ModalConfigProtectedupdatePrivate StaticERR_"[field] is required"
Private StaticSUCCESS_"Username and [service] successfully [mode]ed"
A basic abstract class to act as a holder and processor for UI elements.