Skip to content

Commit

Permalink
Fix missing using statement if YARNSPINNER_DEBUG symbol is defined. a…
Browse files Browse the repository at this point in the history
…dd ordinal example
  • Loading branch information
dogboydog committed Dec 12, 2024
1 parent 7a64e3f commit 4cb2f0c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Samples/SQLiteVariableStorage/SqlSample.yarn
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ tags:
<<declare $characterName = CharacterName.Eskewwell>>
<<declare $numVariables = VariableStorageLimit.Pending>>
<<declare $impressed = false as bool>>
Guide: Alright, I've been waiting for my last applicant of the day. #line:0d2bca2
<<declare $nthApplicant = 0 as number>>
<<set $nthApplicant to dice(6)>>
Guide: Alright, you're my [ordinal value={$nthApplicant} one="%st" two="%nd" few="%rd" other="%th" /] this morning. #line:0d2bca2
Guide: Hmm, how do you say your name!? It says "S-Q-L". #line:0e6b788
-> Eskew-well #line:0f551f3
<<set $characterName to CharacterName.Eskewwell>>
Expand Down
8 changes: 5 additions & 3 deletions Samples/SampleEntryPoint.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -696.0
offset_top = -64.0
offset_right = 696.0
offset_bottom = 340.0
offset_right = 744.0
offset_bottom = 397.0
grow_horizontal = 2
grow_vertical = 2
size_flags_vertical = 8
Expand All @@ -113,7 +113,9 @@ theme_override_font_sizes/normal_font_size = 28
bbcode_enabled = true
text = "Basic dialogue demo
Talking to NPCs
"
Line Groups
Node Groups
Shadow lines"
scroll_active = false

[node name="VBoxContainer2" type="VBoxContainer" parent="HBoxContainer"]
Expand Down
2 changes: 1 addition & 1 deletion YarnSpinner-Godot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<!--Turn on Nullable so that we can fail the build if there are any incompatible scripts-->
<Nullable>enable</Nullable>
<!-- Include this when debugging source generation -->
<DefineConstants>$(DefineConstants);YARN_SOURCE_GENERATION_DEBUG_LOGGING</DefineConstants>
<DefineConstants>$(DefineConstants);YARN_SOURCE_GENERATION_DEBUG_LOGGING;YARNSPINNER_DEBUG</DefineConstants>

<!-- Uncomment the following two lines if you want to see the generated
Command/Function C# file on disk for debugging purposes. -->
Expand Down
3 changes: 3 additions & 0 deletions addons/YarnSpinner-Godot/Editor/YarnProjectEditorUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
using Yarn.Utility;
using File = System.IO.File;
using Path = System.IO.Path;
#if YARNSPINNER_DEBUG
using System.Diagnostics;
#endif

namespace YarnSpinnerGodot;

Expand Down

0 comments on commit 4cb2f0c

Please sign in to comment.