internal static void RestoreCurrentLevel() { if (CommandLevelStack_.Count > 0) { CurrentLevel_ = CommandLevelStack_.Pop(); } }
internal static void Begin() { CommandList_ = new LGuiCommandList[8]; CommandList_[(int)LGuiCommandLevel.VeryLow] = new LGuiCommandList(); CommandList_[(int)LGuiCommandLevel.Low] = new LGuiCommandList(); CommandList_[(int)LGuiCommandLevel.Normal] = new LGuiCommandList(); CommandList_[(int)LGuiCommandLevel.High] = new LGuiCommandList(); CommandList_[(int)LGuiCommandLevel.VeryHigh] = new LGuiCommandList(); CommandList_[(int)LGuiCommandLevel.Window] = new LGuiCommandList(); CommandList_[(int)LGuiCommandLevel.Popup] = new LGuiCommandList(); CommandList_[(int)LGuiCommandLevel.Tips] = new LGuiCommandList(); CommandLevelStack_ = new Stack <LGuiCommandLevel>(); CurrentLevel_ = LGuiCommandLevel.Normal; }
internal static void SetCurrentLevel(LGuiCommandLevel Level) { CommandLevelStack_.Push(CurrentLevel_); CurrentLevel_ = Level; }