mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-15 05:04:16 +01:00
Merge pull request #86 from StoiaCode/main
Auto Fill Name into Fixed design plate if empty
This commit is contained in:
commit
d167d798d7
1 changed files with 8 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ using Dalamud.Interface;
|
||||||
using Glamourer.Designs;
|
using Glamourer.Designs;
|
||||||
using Glamourer.FileSystem;
|
using Glamourer.FileSystem;
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
|
using Penumbra.PlayerWatch;
|
||||||
|
|
||||||
namespace Glamourer.Gui
|
namespace Glamourer.Gui
|
||||||
{
|
{
|
||||||
|
|
@ -129,6 +130,13 @@ namespace Glamourer.Gui
|
||||||
_newFixDesignGroup = _plugin.FixedDesigns.JobGroups[1];
|
_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();
|
raii.PopFonts();
|
||||||
ImGui.TableNextColumn();
|
ImGui.TableNextColumn();
|
||||||
ImGui.SetNextItemWidth(200 * ImGuiHelpers.GlobalScale);
|
ImGui.SetNextItemWidth(200 * ImGuiHelpers.GlobalScale);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue