mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Small fixes.
This commit is contained in:
parent
4d6d73abb6
commit
c2a030aa6b
1 changed files with 12 additions and 9 deletions
|
|
@ -53,6 +53,7 @@ public partial class ConfigWindow
|
||||||
_cellPadding = ImGui.GetStyle().CellPadding with { X = 2 * ImGuiHelpers.GlobalScale };
|
_cellPadding = ImGui.GetStyle().CellPadding with { X = 2 * ImGuiHelpers.GlobalScale };
|
||||||
_itemSpacing = ImGui.GetStyle().CellPadding with { X = 4 * ImGuiHelpers.GlobalScale };
|
_itemSpacing = ImGui.GetStyle().CellPadding with { X = 4 * ImGuiHelpers.GlobalScale };
|
||||||
|
|
||||||
|
EditButtons();
|
||||||
EditRegularMeta();
|
EditRegularMeta();
|
||||||
ImGui.Dummy( _window._defaultSpace );
|
ImGui.Dummy( _window._defaultSpace );
|
||||||
|
|
||||||
|
|
@ -76,27 +77,29 @@ public partial class ConfigWindow
|
||||||
|
|
||||||
private void EditButtons()
|
private void EditButtons()
|
||||||
{
|
{
|
||||||
|
var buttonSize = new Vector2( 150 * ImGuiHelpers.GlobalScale, 0 );
|
||||||
var folderExists = Directory.Exists( _mod.BasePath.FullName );
|
var folderExists = Directory.Exists( _mod.BasePath.FullName );
|
||||||
var tt = folderExists
|
var tt = folderExists
|
||||||
? $"Open {_mod.BasePath.FullName} in the file explorer of your choice."
|
? $"Open \"{_mod.BasePath.FullName}\" in the file explorer of your choice."
|
||||||
: $"Mod directory {_mod.BasePath.FullName} does not exist.";
|
: $"Mod directory \"{_mod.BasePath.FullName}\" does not exist.";
|
||||||
if( ImGuiUtil.DrawDisabledButton( "Open Mod Directory", Vector2.Zero, tt, !folderExists ) )
|
if( ImGuiUtil.DrawDisabledButton( "Open Mod Directory", buttonSize, tt, !folderExists ) )
|
||||||
{
|
{
|
||||||
Process.Start( new ProcessStartInfo( _mod.BasePath.FullName ) { UseShellExecute = true } );
|
Process.Start( new ProcessStartInfo( _mod.BasePath.FullName ) { UseShellExecute = true } );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
ImGuiUtil.DrawDisabledButton( "Rename Mod Directory", Vector2.Zero, "Not implemented yet", true );
|
ImGuiUtil.DrawDisabledButton( "Rename Mod Directory", buttonSize, "Not implemented yet", true );
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
ImGuiUtil.DrawDisabledButton( "Reload Mod", Vector2.Zero, "Not implemented yet", true );
|
ImGuiUtil.DrawDisabledButton( "Reload Mod", buttonSize, "Not implemented yet", true );
|
||||||
|
|
||||||
ImGuiUtil.DrawDisabledButton( "Deduplicate", Vector2.Zero, "Not implemented yet", true );
|
ImGuiUtil.DrawDisabledButton( "Deduplicate", buttonSize, "Not implemented yet", true );
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
ImGuiUtil.DrawDisabledButton( "Normalize", Vector2.Zero, "Not implemented yet", true );
|
ImGuiUtil.DrawDisabledButton( "Normalize", buttonSize, "Not implemented yet", true );
|
||||||
ImGui.SameLine();
|
ImGui.SameLine();
|
||||||
ImGuiUtil.DrawDisabledButton( "Auto-Create Groups", Vector2.Zero, "Not implemented yet", true );
|
ImGuiUtil.DrawDisabledButton( "Auto-Create Groups", buttonSize, "Not implemented yet", true );
|
||||||
|
|
||||||
ImGuiUtil.DrawDisabledButton( "Change Material Suffix", Vector2.Zero, "Not implemented yet", true );
|
ImGuiUtil.DrawDisabledButton( "Change Material Suffix", buttonSize, "Not implemented yet", true );
|
||||||
|
|
||||||
ImGui.Dummy( _window._defaultSpace );
|
ImGui.Dummy( _window._defaultSpace );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue