mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-12 10:17:23 +01:00
Auto Fill Name into Fixed design plate if empty
This commit is contained in:
parent
5561306a39
commit
d896cb7414
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue