This commit is contained in:
Rokojori 2026-07-23 16:19:24 +02:00
parent 310ef51a86
commit 72ab6d5df4
15 changed files with 65 additions and 13 deletions

View File

@ -4,15 +4,16 @@ importer="texture"
type="CompressedTexture2D" type="CompressedTexture2D"
uid="uid://d26yo7jsrxtws" uid="uid://d26yo7jsrxtws"
path.s3tc="res://.godot/imported/grass-albedo.jpg-c84cfed4e689cec916b830b5e61c6fc2.s3tc.ctex" path.s3tc="res://.godot/imported/grass-albedo.jpg-c84cfed4e689cec916b830b5e61c6fc2.s3tc.ctex"
path.etc2="res://.godot/imported/grass-albedo.jpg-c84cfed4e689cec916b830b5e61c6fc2.etc2.ctex"
metadata={ metadata={
"imported_formats": ["s3tc_bptc"], "imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true "vram_texture": true
} }
[deps] [deps]
source_file="res://addons/rokojori_action_library/Assets/Procedural/Grass/grass-albedo.jpg" source_file="res://addons/rokojori_action_library/Assets/Procedural/Grass/grass-albedo.jpg"
dest_files=["res://.godot/imported/grass-albedo.jpg-c84cfed4e689cec916b830b5e61c6fc2.s3tc.ctex"] dest_files=["res://.godot/imported/grass-albedo.jpg-c84cfed4e689cec916b830b5e61c6fc2.s3tc.ctex", "res://.godot/imported/grass-albedo.jpg-c84cfed4e689cec916b830b5e61c6fc2.etc2.ctex"]
[params] [params]

View File

@ -4,15 +4,16 @@ importer="texture"
type="CompressedTexture2D" type="CompressedTexture2D"
uid="uid://bq7d1ml585fxg" uid="uid://bq7d1ml585fxg"
path.s3tc="res://.godot/imported/grass-normal.jpg-161cf607f42dce5cf9be332a6b828c4c.s3tc.ctex" path.s3tc="res://.godot/imported/grass-normal.jpg-161cf607f42dce5cf9be332a6b828c4c.s3tc.ctex"
path.etc2="res://.godot/imported/grass-normal.jpg-161cf607f42dce5cf9be332a6b828c4c.etc2.ctex"
metadata={ metadata={
"imported_formats": ["s3tc_bptc"], "imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true "vram_texture": true
} }
[deps] [deps]
source_file="res://addons/rokojori_action_library/Assets/Procedural/Grass/grass-normal.jpg" source_file="res://addons/rokojori_action_library/Assets/Procedural/Grass/grass-normal.jpg"
dest_files=["res://.godot/imported/grass-normal.jpg-161cf607f42dce5cf9be332a6b828c4c.s3tc.ctex"] dest_files=["res://.godot/imported/grass-normal.jpg-161cf607f42dce5cf9be332a6b828c4c.s3tc.ctex", "res://.godot/imported/grass-normal.jpg-161cf607f42dce5cf9be332a6b828c4c.etc2.ctex"]
[params] [params]

View File

@ -4,15 +4,16 @@ importer="texture"
type="CompressedTexture2D" type="CompressedTexture2D"
uid="uid://b4qprmwr2fmno" uid="uid://b4qprmwr2fmno"
path.s3tc="res://.godot/imported/grass-orm.jpg-c21643a740d42c09c2f89b7bf2e82eda.s3tc.ctex" path.s3tc="res://.godot/imported/grass-orm.jpg-c21643a740d42c09c2f89b7bf2e82eda.s3tc.ctex"
path.etc2="res://.godot/imported/grass-orm.jpg-c21643a740d42c09c2f89b7bf2e82eda.etc2.ctex"
metadata={ metadata={
"imported_formats": ["s3tc_bptc"], "imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true "vram_texture": true
} }
[deps] [deps]
source_file="res://addons/rokojori_action_library/Assets/Procedural/Grass/grass-orm.jpg" source_file="res://addons/rokojori_action_library/Assets/Procedural/Grass/grass-orm.jpg"
dest_files=["res://.godot/imported/grass-orm.jpg-c21643a740d42c09c2f89b7bf2e82eda.s3tc.ctex"] dest_files=["res://.godot/imported/grass-orm.jpg-c21643a740d42c09c2f89b7bf2e82eda.s3tc.ctex", "res://.godot/imported/grass-orm.jpg-c21643a740d42c09c2f89b7bf2e82eda.etc2.ctex"]
[params] [params]

View File

@ -4,15 +4,16 @@ importer="texture"
type="CompressedTexture2D" type="CompressedTexture2D"
uid="uid://b7u8spfui08e7" uid="uid://b7u8spfui08e7"
path.s3tc="res://.godot/imported/FlareVFX.svg-7c0691138c416c828300e95f7f8b3111.s3tc.ctex" path.s3tc="res://.godot/imported/FlareVFX.svg-7c0691138c416c828300e95f7f8b3111.s3tc.ctex"
path.etc2="res://.godot/imported/FlareVFX.svg-7c0691138c416c828300e95f7f8b3111.etc2.ctex"
metadata={ metadata={
"imported_formats": ["s3tc_bptc"], "imported_formats": ["s3tc_bptc", "etc2_astc"],
"vram_texture": true "vram_texture": true
} }
[deps] [deps]
source_file="res://addons/rokojori_action_library/Icons/FlareVFX.svg" source_file="res://addons/rokojori_action_library/Icons/FlareVFX.svg"
dest_files=["res://.godot/imported/FlareVFX.svg-7c0691138c416c828300e95f7f8b3111.s3tc.ctex"] dest_files=["res://.godot/imported/FlareVFX.svg-7c0691138c416c828300e95f7f8b3111.s3tc.ctex", "res://.godot/imported/FlareVFX.svg-7c0691138c416c828300e95f7f8b3111.etc2.ctex"]
[params] [params]

View File

@ -0,0 +1,41 @@
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Text;
using Godot;
using Rokojori.Extensions;
namespace Rokojori;
[Tool]
[GlobalClass]
public partial class MoveOnSpline:Action
{
[Export]
public Node3D target;
[Export]
public Spline spline;
[Export]
public float duration;
[Export]
public Timeline timeline;
protected override void _OnTrigger()
{
var curve = spline.GetCurve();
var position = ( timeline.position % duration ) / duration;
// RJLog.Log( timeline.position, position );
target.GlobalPosition = curve.PositionAt( position );
}
}

View File

@ -0,0 +1 @@
uid://4eggei5kwxm4

View File

@ -75,8 +75,8 @@ namespace Rokojori
var tm = root.CreateChild<TimelineManager>( "Timeline Manager" ); var tm = root.CreateChild<TimelineManager>( "Timeline Manager" );
var timelinePath = "res://addons/rokojori_action_library/Runtime/Time/TimeLines/"; var timelinePath = "res://addons/rokojori_action_library/Runtime/Time/TimeLines/";
var gameTime = ResourceLoader.Load<Timeline>( timelinePath + "GameTime.tres" ); var gameTime = ResourceLoader.Load<Timeline>( timelinePath + "Game Time.tres" );
var realTime = ResourceLoader.Load<Timeline>( timelinePath + "RealTime.tres" ); var realTime = ResourceLoader.Load<Timeline>( timelinePath + "Real Time.tres" );
tm.timeScaleTimeline = gameTime; tm.timeScaleTimeline = gameTime;
tm.realtimeTimeline = realTime; tm.realtimeTimeline = realTime;

View File

@ -46,7 +46,7 @@ namespace Rokojori
} }
[Export] [Export]
public Shader[] shaders; public Shader[] shaders = [];
[ExportToolButton( "Get Material Code")] [ExportToolButton( "Get Material Code")]
public Callable getMaterialCodeButton => Callable.From( public Callable getMaterialCodeButton => Callable.From(

View File

@ -14,7 +14,8 @@ namespace Rokojori
GamePad, GamePad,
Keyboard_and_Mouse, Keyboard_and_Mouse,
Keyboard, Keyboard,
Mouse Mouse,
Touch
} }
[Export] [Export]

View File

@ -0,0 +1 @@
uid://dk3j08t5evitr

View File

@ -0,0 +1 @@
uid://265t3iw34spd

View File

@ -0,0 +1 @@
uid://i61y8ksecjih

View File

@ -0,0 +1 @@
uid://cm32xy4cjb4ah

View File

@ -0,0 +1 @@
uid://coe7ieoo2kma3

View File

@ -1,6 +1,6 @@
[gd_resource type="Resource" script_class="Timeline" format=3 uid="uid://ch5nsa6yafs5l"] [gd_resource type="Resource" script_class="Timeline" format=3 uid="uid://ch5nsa6yafs5l"]
[ext_resource type="Script" uid="uid://ydp0av62q8oi" path="res://addons/rokojori_action_library/Runtime/Time/Timeline.cs" id="1_afdkj"] [ext_resource type="Script" uid="uid://lhkx6c78a61x" path="res://addons/rokojori_action_library/Runtime/Time/Timeline.cs" id="1_afdkj"]
[resource] [resource]
script = ExtResource("1_afdkj") script = ExtResource("1_afdkj")