private void DrawName()
            {
                var name = Meta !.Name;

                if (ImGuiCustom.InputOrText(_editMode, LabelEditName, ref name, 64) &&
                    name.Length > 0 && name != Meta.Name)
                {
                    Meta.Name = name;
                    _selector.SaveCurrentMod();
                }
            }
예제 #2
0
            private void DrawName()
            {
                var name = Meta !.Name;

                if (ImGuiCustom.InputOrText(_editMode, LabelEditName, ref name, 64) && _modManager.RenameMod(name, Mod !.Data))
                {
                    _selector.SelectModOnUpdate(Mod.Data.BasePath.Name);
                    if (!_modManager.Config.ModSortOrder.ContainsKey(Mod !.Data.BasePath.Name))
                    {
                        Mod.Data.Rename(name);
                    }
                }
            }
예제 #3
0
            private void DrawAuthor()
            {
                ImGui.BeginGroup();
                ImGui.TextColored(GreyColor, "by");

                ImGui.SameLine();
                var author = Meta !.Author;

                if (ImGuiCustom.InputOrText(_editMode, LabelEditAuthor, ref author, 64) &&
                    author != Meta.Author)
                {
                    Meta.Author = author;
                    _selector.SaveCurrentMod();
                }

                ImGui.EndGroup();
            }