mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-01-02 05:43:42 +01:00
Add Changelog, prevent UI category files from deduplicating, revert ui hash change.
This commit is contained in:
parent
4beded8a7a
commit
1fe334e33a
8 changed files with 59 additions and 17 deletions
31
Penumbra/UI/ConfigWindow.Changelog.cs
Normal file
31
Penumbra/UI/ConfigWindow.Changelog.cs
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
using Lumina.Excel.GeneratedSheets;
|
||||
using OtterGui.Widgets;
|
||||
|
||||
namespace Penumbra.UI;
|
||||
|
||||
public partial class ConfigWindow
|
||||
{
|
||||
public const int LastChangelogVersion = 0;
|
||||
|
||||
public static Changelog CreateChangelog()
|
||||
{
|
||||
var ret = new Changelog( "Penumbra Changelog", () => Penumbra.Config.LastSeenVersion, version =>
|
||||
{
|
||||
Penumbra.Config.LastSeenVersion = version;
|
||||
Penumbra.Config.Save();
|
||||
} );
|
||||
|
||||
Add5_7_0( ret );
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
private static void Add5_7_0( Changelog log )
|
||||
=> log.NextVersion( "Version 0.5.7.0" )
|
||||
.RegisterEntry( "Added a Changelog!" )
|
||||
.RegisterEntry( "Files in the UI category will no longer be deduplicated for the moment." )
|
||||
.RegisterHighlight( "If you experience UI-related crashes, please re-import your UI mods.", 1 )
|
||||
.RegisterEntry( "This is a temporary fix against those not-yet fully understood crashes and may be reworked later.", 1 )
|
||||
.RegisterEntry( "Fixed assigned collections not working correctly on adventurer plates." )
|
||||
.RegisterEntry( "Added some additional functionality for Mare Synchronos." );
|
||||
}
|
||||
|
|
@ -359,6 +359,12 @@ public partial class ConfigWindow
|
|||
Penumbra.Config.TutorialStep = 0;
|
||||
Penumbra.Config.Save();
|
||||
}
|
||||
|
||||
ImGui.SetCursorPos( new Vector2( xPos, 4 * ImGui.GetFrameHeightWithSpacing() ) );
|
||||
if( ImGui.Button( "Show Changelogs", new Vector2( width, 0 ) ) )
|
||||
{
|
||||
Penumbra.Config.LastSeenVersion = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue