Skip to content

Commit

Permalink
Merge pull request #47 from YarnSpinnerTool/0.2.4
Browse files Browse the repository at this point in the history
0.2.4
  • Loading branch information
dogboydog committed Apr 18, 2024
2 parents c835c33 + 42d5184 commit 1217a64
Show file tree
Hide file tree
Showing 61 changed files with 73 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [0.2.4] 2024-04-17
* fix #46 - The Create Yarn Project menu item was not working in 4.1.2
* fix #45 - Add `#nullable disable` to the plugin's C# source files for compatibility with projects with nullable enabled
* fix #35 - Don't have the example OptionView expand vertically

## [0.2.3] 2024-04-03
* Make LineView compatible with any subclass of BaseButton used as your continueButton. #40 by @fmoo
* Add GlobalClass attribute to InMemoryVariableStorage, TexTLineProvider, LineView, OptionsListView. #41 by @fmoo
Expand Down
1 change: 1 addition & 0 deletions Samples/PausingTypewriter/PauseResponder.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using Godot;
using YarnSpinnerGodot;

Expand Down
1 change: 1 addition & 0 deletions Samples/ReturnOnComplete.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using Godot;
using YarnSpinnerGodot;

Expand Down
1 change: 1 addition & 0 deletions Samples/SampleEntryPoint.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using Godot;
using System.Collections.Generic;

Expand Down
1 change: 1 addition & 0 deletions Samples/Space/DialogueTarget.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using Godot;
using System;
namespace Samples.Space
Expand Down
1 change: 1 addition & 0 deletions Samples/Space/Player.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using Godot;
using Godot.Collections;
using YarnSpinnerGodot;
Expand Down
1 change: 1 addition & 0 deletions Samples/Space/Scripts/SpaceSample.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using Godot;
using YarnSpinnerGodot;
public partial class SpaceSample : Node
Expand Down
1 change: 1 addition & 0 deletions Samples/Space/Scripts/StopButton.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using Godot;
using System;
using YarnSpinnerGodot;
Expand Down
1 change: 1 addition & 0 deletions Samples/Space/SpaceCamera.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using Godot;
using System;

Expand Down
1 change: 1 addition & 0 deletions Samples/VisualNovel/Scripts/VisualNovelManager.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using Godot;
using System;
using System.Collections.Generic;
Expand Down
11 changes: 6 additions & 5 deletions YarnSpinner-Godot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<EnableDynamicLoading>true</EnableDynamicLoading>
<WarningsAsErrors>true</WarningsAsErrors>
<!--Turn on Nullable so that we can fail the build if there are any incompatible scripts-->
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<!-- Add some extra files for ease of developing samples -->
<None Include="addons\YarnSpinner-Godot\YarnSpinner-Godot.props"/>
<None Include="addons\YarnSpinner-Godot\plugin.cfg"/>
<None Include="**\*.md"/>
<None Include="addons\YarnSpinner-Godot\YarnSpinner-Godot.props" />
<None Include="addons\YarnSpinner-Godot\plugin.cfg" />
<None Include="**\*.md" />
</ItemGroup>

<Import Project="addons\YarnSpinner-Godot\YarnSpinner-Godot.props" />
</Project>
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Editor/UI/LineEditWithSubmit.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
#if TOOLS
using Godot;

Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Editor/UI/LocaleDeleteButton.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
#if TOOLS
using Godot;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using Godot;

namespace YarnSpinnerGodot.Editor.UI;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using Godot;

namespace YarnSpinnerGodot.Editor.UI;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using Godot;

namespace YarnSpinnerGodot.Editor.UI;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
#if TOOLS
using System.Linq;
using Godot;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
#if TOOLS
using System.Linq;
using Godot;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
#if TOOLS
using Godot;
using Array = Godot.Collections.Array;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Editor/YarnEditorUtility.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
#if TOOLS
using System.Collections.Generic;
using Godot;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Editor/YarnImporter.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
#if TOOLS
using System.Security.Cryptography;
using System.Text;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
#if TOOLS
using System;
using Godot;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
#if TOOLS
using System;
using System.Collections;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Editor/YarnProjectImporter.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
#if TOOLS
using System;
using System.IO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
#if TOOLS
using System;
using System.Collections.Generic;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/AssemblyExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
DEALINGS IN THE SOFTWARE.
*/
#nullable disable

using System.Collections.Generic;
using System.Reflection;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/Commands/ActionManager.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using System.Collections.Generic;
using System.Globalization;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using System.Threading.Tasks;
using Godot;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using System.Reflection;
using Godot;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
#nullable disable


namespace YarnSpinnerGodot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
*/

#nullable disable

using System.Collections;
using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using Yarn;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
*/

#nullable disable

using System;
using Godot;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/DialogueOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
DEALINGS IN THE SOFTWARE.
*/
#nullable disable

namespace YarnSpinnerGodot
{
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/DialogueRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
DEALINGS IN THE SOFTWARE.
*/
#nullable disable

using System.Collections.Generic;
using System;
Expand Down
2 changes: 1 addition & 1 deletion addons/YarnSpinner-Godot/Runtime/FunctionInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
#nullable disable
using Godot;

namespace YarnSpinnerGodot
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
*/

#nullable disable

using System.Collections;
using System.Collections.Generic;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/LanguageAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable


namespace YarnSpinnerGodot
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/LineMetadata.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/LineMetadataTableEntry.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using CsvHelper;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System.Collections.Generic;
using Godot;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Godot;
#nullable disable
using Godot;

namespace YarnSpinnerGodot;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System.Collections.Generic;
using Godot;

Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/Localization.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/MarkupAttribute.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using System.Text;
using Godot;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/Option.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using Godot;
using Yarn;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/SerializedDeclaration.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using System.Collections.Generic;
using Godot;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/StringInfo.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using Godot;
public partial class StringInfo : Resource
{
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/StringTableEntry.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using System.Collections.Generic;
using CsvHelper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
*/


#nullable disable

using Yarn;
namespace YarnSpinnerGodot
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/Views/DialogueViewBase.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;

namespace YarnSpinnerGodot
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/Views/Effects.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/Views/LineView.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/Views/MarkupPalette.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System.Collections;
using System.Collections.Generic;
using Godot;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/Views/OptionView.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using Godot;

Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/Views/OptionsListView.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
Expand Down
2 changes: 2 additions & 0 deletions addons/YarnSpinner-Godot/Runtime/YarnProject.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#nullable disable

using System;
using System.Collections.Generic;
using System.Globalization;
Expand Down
1 change: 1 addition & 0 deletions addons/YarnSpinner-Godot/Runtime/YarnProjectError.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#nullable disable
using System;
using Godot;
namespace YarnSpinnerGodot
Expand Down
2 changes: 1 addition & 1 deletion addons/YarnSpinner-Godot/Scenes/OptionView.tscn
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
[ext_resource type="Script" path="res://addons/YarnSpinner-Godot/Runtime/Views/OptionView.cs" id="1"]

[node name="OptionView" type="Button" node_paths=PackedStringArray("label")]
custom_minimum_size = Vector2(0, 32)
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
Expand All @@ -13,7 +14,6 @@ offset_top = -142.0
offset_right = 119.0
offset_bottom = -42.0
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_font_sizes/font_size = 36
script = ExtResource("1")
label = NodePath("VBoxContainer/RichTextLabel")
Expand Down
3 changes: 2 additions & 1 deletion addons/YarnSpinner-Godot/YarnSpinnerPlugin.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#if TOOLS
#nullable disable
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down Expand Up @@ -229,7 +230,7 @@ private void CreateYarnProject()
dialog.PopupCentered(new Vector2I(700, 500));
}

private static void CreateYarnProjectDestinationSelected(string destination)
private void CreateYarnProjectDestinationSelected(string destination)
{
GD.Print("Creating a yarn project at " + destination);
YarnEditorUtility.CreateYarnProject(destination);
Expand Down

0 comments on commit 1217a64

Please sign in to comment.