fix: Enable tasks to generate proxy nodes
This commit is contained in:
@@ -7,6 +7,14 @@
|
||||
<MakeDir Directories="$(ProjectDir)Concepts" Condition="!Exists('$(ProjectDir)Concepts')"/>
|
||||
<MakeDir Directories="$(ProjectDir)Registries" Condition="!Exists('$(ProjectDir)Registries')"/>
|
||||
<MakeDir Directories="$(ProjectDir)Data" Condition="!Exists('$(ProjectDir)Data')"/>
|
||||
<Exec
|
||||
Command='mklink /D "$(ProjectDir)GlobalClasses" "$(MSBuildThisFileDirectory)GlobalClasses"'
|
||||
Condition="'$(OS)'=='Windows_NT' and !Exists('$(ProjectDir)GlobalClasses')"
|
||||
/>
|
||||
<Exec
|
||||
Command='ln -s "$(MSBuildThisFileDirectory)GlobalClasses" "$(ProjectDir)/GlobalClasses"'
|
||||
Condition="'$(OS)'!='Windows_NT' and !Exists('$(ProjectDir)GlobalClasses')"
|
||||
/>
|
||||
</Target>
|
||||
<ItemGroup>
|
||||
<Folder Include="Concepts"/>
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
#!/bin/bash
|
||||
dotnet nuget push "$(ls -t ../../.godot/mono/temp/bin/Debug/Polonium.*.nupkg | head -n 1)" --source hangman-lab
|
||||
@@ -1,4 +1,4 @@
|
||||
<Project Sdk="Godot.NET.Sdk/4.4.0-beta.2">
|
||||
<Project Sdk="Godot.NET.Sdk/4.4.0-beta.3">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
@@ -8,18 +8,35 @@
|
||||
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
|
||||
<PackageId>Polonium</PackageId>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<Version>0.0.8</Version>
|
||||
<Version>0.0.162</Version>
|
||||
<Authors>Hangman</Authors>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="GodotSharp" Version="4.4.0-beta.2"/>
|
||||
<PackageReference Include="GodotSharp" Version="4.4.0-beta.3"/>
|
||||
<PackageReference Include="Polonium.Tasks" Version="0.0.9" />
|
||||
</ItemGroup>
|
||||
<Target Name="GenerateProxyNodes" BeforeTargets="BeforeBuild">
|
||||
<GenerateProxyNodesTask
|
||||
SourceDirectory="$(ProjectDir)src/Scenes"
|
||||
OutputDirectory="$(ProjectDir)GlobalClasses"
|
||||
AttributeName="ProxyNode"
|
||||
/>
|
||||
</Target>
|
||||
<ItemGroup>
|
||||
<None
|
||||
Include="Package\build\$(AssemblyName).targets"
|
||||
Pack="true"
|
||||
PackagePath="build"
|
||||
/>
|
||||
<None
|
||||
Include="GlobalClasses\**\*.cs"
|
||||
Pack="true"
|
||||
PackagePath="build\GlobalClasses"
|
||||
/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Package\build\$(AssemblyName).targets" Pack="true" PackagePath="build"/>
|
||||
<None Include="publish" />
|
||||
<None Include="summerizer.py" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Package\build\publish" />
|
||||
<Content Include="summerizer.py" />
|
||||
</ItemGroup>
|
||||
|
||||
|
||||
</Project>
|
||||
|
||||
18
Polonium.sln
18
Polonium.sln
@@ -6,6 +6,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Polonium.Generators", "..\P
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Polonium.Generators.Test", "..\Polonium.Generators.Test\Polonium.Generators.Test.csproj", "{3BADB215-214B-41C1-B94E-89AF4A972F30}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Polonium.Tasks", "..\Polonium.Tasks\Polonium.Tasks.csproj", "{5F0664A8-563F-408A-9EB6-05B2F25F5DC5}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -24,5 +26,21 @@ Global
|
||||
{3BADB215-214B-41C1-B94E-89AF4A972F30}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3BADB215-214B-41C1-B94E-89AF4A972F30}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3BADB215-214B-41C1-B94E-89AF4A972F30}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{1B24F8AC-B185-48D0-835B-59857AF907E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{1B24F8AC-B185-48D0-835B-59857AF907E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{1B24F8AC-B185-48D0-835B-59857AF907E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{1B24F8AC-B185-48D0-835B-59857AF907E5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{D2BA966D-140F-4C04-8EE1-88FFE5FEB67C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D2BA966D-140F-4C04-8EE1-88FFE5FEB67C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D2BA966D-140F-4C04-8EE1-88FFE5FEB67C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D2BA966D-140F-4C04-8EE1-88FFE5FEB67C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{25595747-BE10-4F36-BDE0-9400576EA921}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{25595747-BE10-4F36-BDE0-9400576EA921}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{25595747-BE10-4F36-BDE0-9400576EA921}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{25595747-BE10-4F36-BDE0-9400576EA921}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{5F0664A8-563F-408A-9EB6-05B2F25F5DC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{5F0664A8-563F-408A-9EB6-05B2F25F5DC5}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{5F0664A8-563F-408A-9EB6-05B2F25F5DC5}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{5F0664A8-563F-408A-9EB6-05B2F25F5DC5}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
||||
2
publish
Normal file
2
publish
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
dotnet nuget push "$(ls -t ./.godot/mono/temp/bin/Debug/Polonium.*.nupkg | head -n 1)" --source hangman-lab
|
||||
@@ -6,13 +6,13 @@ namespace Polonium.Scenes;
|
||||
public partial class CameraScene : Scene
|
||||
{
|
||||
private Camera2D Camera { get; set; }
|
||||
[Export(PropertyHint.Range)]
|
||||
|
||||
public float MaxZoom { get; set; }
|
||||
[Export(PropertyHint.Range)]
|
||||
|
||||
public float MinZoom { get; set; }
|
||||
[Export(PropertyHint.Range)]
|
||||
|
||||
public float ZoomRate { get; set; }
|
||||
[Export(PropertyHint.Range)]
|
||||
|
||||
private float Zoom
|
||||
{
|
||||
get => Camera.Zoom.X;
|
||||
|
||||
Reference in New Issue
Block a user