internal void BeginGroup(string Title, float CursorX) { var LayoutContext = LGuiLayout.GetCurrentLayoutContext(); GroupStack.Push(new LGuiGroupContext(Title, LayoutContext.CursorPos.X, LayoutContext.BeginCursorPos.X)); LGuiContext.PushID(LGuiHash.CalculateID(Title)); LayoutContext.BeginCursorPos.X = CursorX; LayoutContext.CursorPos.X = CursorX; }
internal void EndGroup() { if (GroupStack.Count > 0) { LGuiContext.PopID(); var Context = GroupStack.Pop(); var LayoutContext = LGuiLayout.GetCurrentLayoutContext(); LayoutContext.BeginCursorPos.X = Context.PreviousBeginCursorX; LayoutContext.CursorPos.X = Context.PreviousCursorX; } }
public static LGuiVec2 GetCursorPos() { return(LGuiLayout.GetCurrentLayoutContext().CursorPos); }