예제 #1
0
            public static bool DrawSortOrder(ModData mod, ModManager manager, Selector selector)
            {
                var currentSortOrder = mod.SortOrder.FullPath;

                ImGui.SetNextItemWidth(300 * ImGuiHelpers.GlobalScale);
                if (ImGui.InputText("Sort Order", ref currentSortOrder, 256, ImGuiInputTextFlags.EnterReturnsTrue))
                {
                    manager.ChangeSortOrder(mod, currentSortOrder);
                    selector.SelectModOnUpdate(mod.BasePath.Name);
                    return(true);
                }

                return(false);
            }