improve a code.

This commit is contained in:
Ottermandias 2024-05-31 23:02:39 +02:00
parent 9851533143
commit 8ce667e7e4
3 changed files with 12 additions and 6 deletions

View file

@ -56,13 +56,16 @@ public class GlamourerChangelog
private static void Add1_2_3_0(Changelog log)
=> log.NextVersion("Version 1.2.3.0")
.RegisterHighlight("Added a field to rename designs directly from the mod selector context menu, instead of moving them in the filesystem.")
.RegisterHighlight(
"Added a field to rename designs directly from the mod selector context menu, instead of moving them in the filesystem.")
.RegisterEntry("You can choose which rename field (none, either one or both) to display in the settings.", 1)
.RegisterEntry("Automatically applied offhand weapons due to mainhand settings now also apply the mainhands dye.")
.RegisterHighlight("Added a height display in real-world units next to the height-selector.")
.RegisterEntry("This can be configured to use your favourite unit of measurement, even wrong ones, or not display at all.", 1)
.RegisterHighlight("Added a chat command '/glamour applycustomization' that can apply single customization values to actors. Use without arguments for help.")
.RegisterHighlight("Added an option for designs to always force a redraw when applied to a character, regardless of whether it is necessary or not.")
.RegisterHighlight(
"Added a chat command '/glamour applycustomization' that can apply single customization values to actors. Use without arguments for help.")
.RegisterHighlight(
"Added an option for designs to always force a redraw when applied to a character, regardless of whether it is necessary or not.")
.RegisterHighlight("Added a button to overwrite the selected design with the current player state.")
.RegisterEntry("Added some copy/paste functionality for mod associations.")
.RegisterEntry("Reworked the API and IPC structure heavily.")
@ -81,9 +84,11 @@ public class GlamourerChangelog
=> log.NextVersion("Version 1.2.1.0")
.RegisterEntry("Updated for .net 8 and FFXIV 6.58, using some new framework options to improve performance and stability.")
.RegisterEntry("Previewing changed items in Penumbra now works with all weapons in GPose. (1.2.0.8)")
.RegisterEntry("Added a design type selectable for automation that applies the design currently selected in the quick design bar. (1.2.0.4)")
.RegisterEntry(
"Added a design type selectable for automation that applies the design currently selected in the quick design bar. (1.2.0.4)")
.RegisterEntry("Added an option to respect manual changes when changing automation settings. (1.2.0.3)")
.RegisterEntry("You can now apply designs to the player character with a double click on them (can be turned off in settings). (1.2.0.1)")
.RegisterEntry(
"You can now apply designs to the player character with a double click on them (can be turned off in settings). (1.2.0.1)")
.RegisterEntry("The last selected design and tab are now stored and applied on startup. (1.2.0.1)")
.RegisterEntry("Fixed behavior of revert to automation to actually revert and not just reapply. (1.2.0.8)")
.RegisterEntry("Added Reapply Automation buttons and chat commands with prior behaviour.", 1)

View file

@ -173,6 +173,7 @@ public class CodeDrawer(Configuration config, CodeService codeService, FunModule
ImUtf8.SameLineInner();
using (ImUtf8.Group())
{
using var mono = ImRaii.PushFont(UiBuilder.MonoFont);
ImUtf8.Text($"{data.CapitalCount}");
ImUtf8.Text($"{data.Punctuation}");
}

View file

@ -211,7 +211,7 @@ public class CodeService
=> flag switch
{
CodeFlag.Clown => (true, 3, ",.", "A punchline uttered by Rorschach.", "Randomizes dyes for every player."),
CodeFlag.Emperor => (true, 1, ".", "A truth that only a child can see.", "Randomizes clothing for every player."),
CodeFlag.Emperor => (true, 1, ".", "A truth about clothes that only a child will speak.", "Randomizes clothing for every player."),
CodeFlag.Individual => (true, 2, "'!'!", "Something an unwilling prophet tries to convince his followers of.", "Randomizes customizations for every player."),
CodeFlag.Dwarf => (true, 1, "!", "A centuries old metaphor about humility and the progress of science.", "Sets the player character to minimum height and all other players to maximum height."),
CodeFlag.Giant => (true, 2, "!", "A Swift renaming of one of the most famous literary openings of all time.", "Sets the player character to maximum height and all other players to minimum height."),