mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-18 05:47:52 +01:00
Some style fixes.
This commit is contained in:
parent
d7214cd851
commit
d59869dbfe
6 changed files with 16 additions and 14 deletions
|
|
@ -88,7 +88,7 @@ namespace Penumbra.UI
|
|||
if( _manager.Collections.AddCollection( _newCollectionName, settings ) )
|
||||
{
|
||||
UpdateNames();
|
||||
SetCurrentCollection( _manager.Collections.Collections[_newCollectionName], true );
|
||||
SetCurrentCollection( _manager.Collections.Collections[ _newCollectionName ], true );
|
||||
}
|
||||
|
||||
_newCollectionName = string.Empty;
|
||||
|
|
@ -100,10 +100,11 @@ namespace Penumbra.UI
|
|||
{
|
||||
var changes = ModFunctions.CleanUpCollection( _manager.Collections.CurrentCollection.Settings,
|
||||
_manager.BasePath.EnumerateDirectories() );
|
||||
_manager.Collections.CurrentCollection.UpdateSettings( forceSave: changes );
|
||||
_manager.Collections.CurrentCollection.UpdateSettings( changes );
|
||||
}
|
||||
|
||||
ImGuiCustom.HoverTooltip( "Remove all stored settings for mods not currently available and fix invalid settings.\nUse at own risk." );
|
||||
ImGuiCustom.HoverTooltip(
|
||||
"Remove all stored settings for mods not currently available and fix invalid settings.\nUse at own risk." );
|
||||
}
|
||||
|
||||
private void DrawNewCollectionInput()
|
||||
|
|
@ -128,7 +129,7 @@ namespace Penumbra.UI
|
|||
var deleteCondition = _manager.Collections.Collections.Count > 1
|
||||
&& _manager.Collections.CurrentCollection.Name != ModCollection.DefaultCollection;
|
||||
ImGui.SameLine();
|
||||
if( ImGuiCustom.DisableButton( "Delete Current Collection", deleteCondition) )
|
||||
if( ImGuiCustom.DisableButton( "Delete Current Collection", deleteCondition ) )
|
||||
{
|
||||
_manager.Collections.RemoveCollection( _manager.Collections.CurrentCollection.Name );
|
||||
SetCurrentCollection( _manager.Collections.CurrentCollection, true );
|
||||
|
|
@ -149,7 +150,7 @@ namespace Penumbra.UI
|
|||
return;
|
||||
}
|
||||
|
||||
_manager.Collections.SetCurrentCollection( _collections[idx + 1] );
|
||||
_manager.Collections.SetCurrentCollection( _collections[ idx + 1 ] );
|
||||
_currentCollectionIndex = idx;
|
||||
_selector.Cache.TriggerListReset();
|
||||
if( _selector.Mod != null )
|
||||
|
|
@ -223,7 +224,7 @@ namespace Penumbra.UI
|
|||
ImGui.InputTextWithHint( "##New Character", "New Character Name", ref _newCharacterName, 32 );
|
||||
|
||||
ImGui.SameLine();
|
||||
if( ImGuiCustom.DisableButton( "Create New Character Collection", _newCharacterName.Length > 0 ))
|
||||
if( ImGuiCustom.DisableButton( "Create New Character Collection", _newCharacterName.Length > 0 ) )
|
||||
{
|
||||
_manager.Collections.CreateCharacterCollection( _newCharacterName );
|
||||
_currentCharacterIndices[ _newCharacterName ] = 0;
|
||||
|
|
|
|||
|
|
@ -349,9 +349,9 @@ namespace Penumbra.UI
|
|||
return;
|
||||
}
|
||||
|
||||
var manager = Service<ModManager>.Get();
|
||||
var manager = Service< ModManager >.Get();
|
||||
var cache = manager.Collections.CurrentCollection.Cache;
|
||||
if( cache == null || !ImGui.BeginTable( "##MissingFilesDebugList", 1, ImGuiTableFlags.RowBg, -Vector2.UnitX))
|
||||
if( cache == null || !ImGui.BeginTable( "##MissingFilesDebugList", 1, ImGuiTableFlags.RowBg, -Vector2.UnitX ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
@ -366,6 +366,7 @@ namespace Penumbra.UI
|
|||
{
|
||||
ImGui.SetClipboardText( file.FullName );
|
||||
}
|
||||
|
||||
ImGuiCustom.HoverTooltip( "Click to copy to clipboard." );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue