1
0
Bifurcation 0
Ce dépôt a été archivé le 2024-10-10. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
ButtonForge-classic/ButtonForge/UILibLayers.lua
2018-05-24 10:10:52 +10:00

57 lignes
1,3 Kio
Lua

--[[
Author: Alternator (Massiner of Nathrezim)
Copyright 2010
Notes:
]]
local UILib = BFUILib;
local Util = BFUtil;
local EventFull = BFEventFrames["Full"];
--[[
Setup the configure env (this is called when the configurelayer is made visible)
--]]
function UILib.ConfigureModeEnabled()
ButtonForgeSave["ConfigureMode"] = true;
Util.RefreshGridStatus();
Util.RefreshBarStrata();
Util.RefreshBarGUIStatus();
Util.VDriverOverride();
EventFull.RefreshButtons = true;
EventFull.RefChecked = true;
EventFull.RefUsable = true;
PlaySound(839, "Master");
end
--[[
Close the configure mode cleanly (this is called when the configurelayer is hidden)
--]]
function UILib.ConfigureModeDisabled()
ButtonForgeSave["ConfigureMode"] = false;
UILib.ClearModes();
Util.RefreshGridStatus();
Util.RefreshBarStrata();
Util.RefreshBarGUIStatus();
Util.VDriverOverride();
EventFull.RefreshButtons = true;
EventFull.RefChecked = true;
EventFull.RefUsable = true;
PlaySound(840, "Master");
end
--[[
Call this to clear any current input processes (does not exit configure mode)
--]]
function UILib.ClearModes()
UILib.ToggleCreateBarMode(true);
UILib.ToggleDestroyBarMode(true);
BFKeyBinder.CancelButtonSelectorMode();
UILib.SetMask(nil);
UILib.InputBox(nil);
end