From d896cb7414557420a6a3601b6af190dfc00a2549 Mon Sep 17 00:00:00 2001 From: Stoia Date: Sat, 10 Jun 2023 23:45:11 +0200 Subject: [PATCH] Auto Fill Name into Fixed design plate if empty --- Glamourer/Gui/InterfaceFixedDesigns.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Glamourer/Gui/InterfaceFixedDesigns.cs b/Glamourer/Gui/InterfaceFixedDesigns.cs index 428873b..1f08a84 100644 --- a/Glamourer/Gui/InterfaceFixedDesigns.cs +++ b/Glamourer/Gui/InterfaceFixedDesigns.cs @@ -6,6 +6,7 @@ using Dalamud.Interface; using Glamourer.Designs; using Glamourer.FileSystem; using ImGuiNET; +using Penumbra.PlayerWatch; namespace Glamourer.Gui { @@ -129,6 +130,13 @@ namespace Glamourer.Gui _newFixDesignGroup = _plugin.FixedDesigns.JobGroups[1]; } + if (_newFixCharacterName == string.Empty) { + var player = CharacterFactory.Convert(Dalamud.Objects[0]); + if (player != null) + _newFixCharacterName = player.Name.ToString(); + + } + raii.PopFonts(); ImGui.TableNextColumn(); ImGui.SetNextItemWidth(200 * ImGuiHelpers.GlobalScale);