npm.io
12.33.1 • Published 1 month ago

@quenty/coreguienabler

Licence
MIT
Version
12.33.1
Deps
5
Size
34 kB
Vulns
0
Weekly
0
Stars
592
Install scriptsThis package runs scripts during installation (preinstall/install/postinstall)

CoreGuiEnabler

Key based CoreGuiEnabler, singleton Use this class to load/unload CoreGuis / other GUIs, by disabling based upon keys Keys are additive, so if you have more than 1 disabled, it's ok.

Installation

npm install @quenty/coreguienabler --save

Usage

Usage is designed to be simple.

CoreGuiEnabler.new()
CoreGuiEnabler:AddState(key, coreGuiStateChangeFunc)
CoreGuiEnabler:Disable(key, coreGuiState)
CoreGuiEnabler:Enable(key, coreGuiState)

Keywords