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/UILibLayers.lua

58 lignes
1,3 Kio
Lua
Brut Vue normale Historique

2018-05-12 02:23:16 +02:00
--[[
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;
2018-05-24 02:10:52 +02:00
PlaySound(839, "Master");
2018-05-12 02:23:16 +02:00
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;
2018-05-24 02:10:52 +02:00
PlaySound(840, "Master");
2018-05-12 02:23:16 +02:00
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