mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Add icons to import/export headers.
This commit is contained in:
parent
025e3798a7
commit
36cbca4684
2 changed files with 5 additions and 5 deletions
2
OtterGui
2
OtterGui
|
|
@ -1 +1 @@
|
|||
Subproject commit df754445aa6f67fbeb84a292fe808ee560bc3cf7
|
||||
Subproject commit 4c32d2d448c4e36ea665276ed755a96fa4907c33
|
||||
|
|
@ -77,7 +77,7 @@ public partial class ModEditWindow
|
|||
return true;
|
||||
});
|
||||
|
||||
using (var frame = ImRaii.FramedGroup("Import", size))
|
||||
using (var frame = ImRaii.FramedGroup("Import", size, headerPreIcon: FontAwesomeIcon.FileImport))
|
||||
{
|
||||
if (ImGuiUtil.DrawDisabledButton("Import from glTF", Vector2.Zero, "Imports a glTF file, overriding the content of this mdl.",
|
||||
tab.PendingIo))
|
||||
|
|
@ -89,13 +89,13 @@ public partial class ModEditWindow
|
|||
ImGui.Dummy(new Vector2(ImGui.GetFrameHeight()));
|
||||
}
|
||||
|
||||
if (_dragDropManager.CreateImGuiTarget("ModelDragDrop", out var files, out _) && GetFirstModel(files, out var file))
|
||||
tab.Import(file);
|
||||
if (_dragDropManager.CreateImGuiTarget("ModelDragDrop", out var files, out _) && GetFirstModel(files, out var importFile))
|
||||
tab.Import(importFile);
|
||||
}
|
||||
|
||||
private void DrawExport(MdlTab tab, Vector2 size, bool _)
|
||||
{
|
||||
using var frame = ImRaii.FramedGroup("Export", size);
|
||||
using var frame = ImRaii.FramedGroup("Export", size, headerPreIcon: FontAwesomeIcon.FileExport);
|
||||
|
||||
if (tab.GamePaths == null)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue