mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-29 11:59:27 +01:00
.
This commit is contained in:
parent
7710cfadfa
commit
2d6fd6015d
88 changed files with 2304 additions and 383 deletions
90
GlamourerOld/Gui/InterfaceHelpers.cs
Normal file
90
GlamourerOld/Gui/InterfaceHelpers.cs
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
using System;
|
||||
using System.Linq;
|
||||
using Dalamud.Logging;
|
||||
using Glamourer.Customization;
|
||||
using Glamourer.Structs;
|
||||
using ImGuiNET;
|
||||
using Penumbra.GameData.Enums;
|
||||
|
||||
namespace Glamourer.Gui;
|
||||
|
||||
//internal partial class Interface
|
||||
//{
|
||||
//
|
||||
|
||||
//
|
||||
|
||||
//
|
||||
//
|
||||
// private enum DesignNameUse
|
||||
// {
|
||||
// SaveCurrent,
|
||||
// NewDesign,
|
||||
// DuplicateDesign,
|
||||
// NewFolder,
|
||||
// FromClipboard,
|
||||
// }
|
||||
//
|
||||
// private void DrawDesignNamePopup(DesignNameUse use)
|
||||
// {
|
||||
// if (ImGui.BeginPopup($"{DesignNamePopupLabel}{use}"))
|
||||
// {
|
||||
// if (ImGui.InputText("##designName", ref _newDesignName, 64, ImGuiInputTextFlags.EnterReturnsTrue)
|
||||
// && _newDesignName.Any())
|
||||
// {
|
||||
// switch (use)
|
||||
// {
|
||||
// case DesignNameUse.SaveCurrent:
|
||||
// SaveNewDesign(ConditionalCopy(_currentSave, _holdShift, _holdCtrl));
|
||||
// break;
|
||||
// case DesignNameUse.NewDesign:
|
||||
// var empty = new CharacterSave();
|
||||
// empty.Load(CharacterCustomization.Default);
|
||||
// empty.WriteCustomizations = false;
|
||||
// SaveNewDesign(empty);
|
||||
// break;
|
||||
// case DesignNameUse.DuplicateDesign:
|
||||
// SaveNewDesign(ConditionalCopy(_selection!.Data, _holdShift, _holdCtrl));
|
||||
// break;
|
||||
// case DesignNameUse.NewFolder:
|
||||
// _designs.FileSystem
|
||||
// .CreateAllFolders($"{_newDesignName}/a"); // Filename is just ignored, but all folders are created.
|
||||
// break;
|
||||
// case DesignNameUse.FromClipboard:
|
||||
// try
|
||||
// {
|
||||
// var text = ImGui.GetClipboardText();
|
||||
// var save = CharacterSave.FromString(text);
|
||||
// SaveNewDesign(save);
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// PluginLog.Information($"Could not save new Design from Clipboard:\n{e}");
|
||||
// }
|
||||
//
|
||||
// break;
|
||||
// }
|
||||
//
|
||||
// _newDesignName = string.Empty;
|
||||
// ImGui.CloseCurrentPopup();
|
||||
// }
|
||||
//
|
||||
// if (_keyboardFocus)
|
||||
// {
|
||||
// ImGui.SetKeyboardFocusHere();
|
||||
// _keyboardFocus = false;
|
||||
// }
|
||||
//
|
||||
// ImGui.EndPopup();
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// private void OpenDesignNamePopup(DesignNameUse use)
|
||||
// {
|
||||
// _newDesignName = string.Empty;
|
||||
// _keyboardFocus = true;
|
||||
// _holdCtrl = ImGui.GetIO().KeyCtrl;
|
||||
// _holdShift = ImGui.GetIO().KeyShift;
|
||||
// ImGui.OpenPopup($"{DesignNamePopupLabel}{use}");
|
||||
// }
|
||||
//}
|
||||
Loading…
Add table
Add a link
Reference in a new issue