Skip to content

Commit 7e68596

Browse files
authored
GUI update: EventWindow (#2778)
code logic and methods update code creates it's own default styled json file as fallback if there's none (restores the ability to use .json file templates for event Dialogues). refactor EventWindow to use dynamically created buttons within a scrollable control adds configurable dimmed background for EventWindow. additional text splitting logic to handle empty strings and long single words in order to fix readability of event dialogues.
1 parent 22fee7b commit 7e68596

File tree

3 files changed

+287
-150
lines changed

3 files changed

+287
-150
lines changed

Framework/Intersect.Framework.Core/Configuration/ClientConfiguration.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ public static ClientConfiguration LoadAndSave(string? filePath = default) =>
9090

9191
public static List<string> DefaultTypewriterSounds => ["octave-beep-tapped.wav"];
9292

93+
private const bool DefaultDimmedEventWindowBackground = true;
94+
9395
#endregion
9496

9597
#region Static Properties and Methods
@@ -258,6 +260,11 @@ public void Validate()
258260

259261
public List<string> TypewriterSounds { get; set; } = DefaultTypewriterSounds;
260262

263+
/// <summary>
264+
/// Adds dimmed background to EventWindow.
265+
/// </summary>
266+
public bool DimmedEventWindowBackground { get; set; } = DefaultDimmedEventWindowBackground;
267+
261268
#region Hidden Properties
262269

263270
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]

0 commit comments

Comments
 (0)