Winter Tales Updates
This commit is contained in:
parent
2c64caf284
commit
81cf77ce54
|
|
@ -0,0 +1,87 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
width="16"
|
||||
version="1.1"
|
||||
id="svg4"
|
||||
sodipodi:docname="SequenceActionReference.svg"
|
||||
inkscape:version="1.2.2 (732a01da63, 2022-12-09)"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<defs
|
||||
id="defs8" />
|
||||
<sodipodi:namedview
|
||||
id="namedview6"
|
||||
pagecolor="#505050"
|
||||
bordercolor="#eeeeee"
|
||||
borderopacity="1"
|
||||
inkscape:showpageshadow="0"
|
||||
inkscape:pageopacity="0"
|
||||
inkscape:pagecheckerboard="0"
|
||||
inkscape:deskcolor="#505050"
|
||||
showgrid="false"
|
||||
inkscape:zoom="7.328125"
|
||||
inkscape:cx="20.264392"
|
||||
inkscape:cy="3.684435"
|
||||
inkscape:window-width="1920"
|
||||
inkscape:window-height="1017"
|
||||
inkscape:window-x="-8"
|
||||
inkscape:window-y="-8"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:current-layer="svg4" />
|
||||
<path
|
||||
sodipodi:type="star"
|
||||
style="fill:#f7b200;fill-opacity:1;stroke:none;stroke-width:2.56963;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1;paint-order:stroke markers fill"
|
||||
id="path24485"
|
||||
inkscape:flatsided="false"
|
||||
sodipodi:sides="5"
|
||||
sodipodi:cx="-8.2018356"
|
||||
sodipodi:cy="-2.1710742"
|
||||
sodipodi:r1="7.9176526"
|
||||
sodipodi:r2="4.5684857"
|
||||
sodipodi:arg1="-1.5707963"
|
||||
sodipodi:arg2="-0.94247777"
|
||||
inkscape:rounded="0"
|
||||
inkscape:randomized="0"
|
||||
d="m -8.2018354,-10.088727 2.6852884,4.2216703 4.84484654,1.2492935 -3.18524704,3.85842889 0.3089911,4.99377581 -4.6538794,-1.8370299 -4.6538792,1.8370296 0.308991,-4.99377573 -3.185247,-3.85842907 4.844847,-1.2492932 z"
|
||||
inkscape:transform-center-y="0.17991598"
|
||||
transform="matrix(-0.24167633,0,0,-0.24167633,7.9565055,9.8481604)" />
|
||||
<path
|
||||
sodipodi:type="star"
|
||||
style="fill:none;fill-opacity:1;stroke:#f7b200;stroke-width:1.04696;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:stroke markers fill"
|
||||
id="path24487"
|
||||
inkscape:flatsided="false"
|
||||
sodipodi:sides="5"
|
||||
sodipodi:cx="-8.2018356"
|
||||
sodipodi:cy="-2.1710742"
|
||||
sodipodi:r1="7.9176526"
|
||||
sodipodi:r2="4.7268386"
|
||||
sodipodi:arg1="-1.5707963"
|
||||
sodipodi:arg2="-0.9424778"
|
||||
inkscape:rounded="0"
|
||||
inkscape:randomized="0"
|
||||
d="m -8.2018354,-10.088727 2.7783658,4.0935601 4.75176914,1.3774037 -3.03464454,3.90736248 0.1583886,4.94484222 -4.6538792,-1.6786771 -4.6538794,1.6786768 0.158389,-4.94484188 -3.034645,-3.90736292 4.751769,-1.3774033 z"
|
||||
inkscape:transform-center-y="-0.4517108"
|
||||
transform="matrix(0.60677083,0,0,0.60677083,14.91533,11.690277)" />
|
||||
<g
|
||||
aria-label="*"
|
||||
id="text23547"
|
||||
style="font-weight:bold;font-size:12.6843px;font-family:'Malgun Gothic';-inkscape-font-specification:'Malgun Gothic Bold';text-align:center;text-anchor:middle;fill:#f7b200;fill-opacity:1;stroke:none;stroke-width:0.5;stroke-linecap:round;stroke-linejoin:round;paint-order:stroke fill markers"
|
||||
transform="matrix(1.1441587,0,0,1.1441587,-9.1711463,-0.62224095)">
|
||||
<g
|
||||
id="path23549"
|
||||
style="fill:#f7b200;fill-opacity:1;stroke:none">
|
||||
<path
|
||||
style="color:#000000;-inkscape-font-specification:'Malgun Gothic Bold';fill:#f7b200;fill-opacity:1;stroke:none;stroke-linecap:butt;stroke-linejoin:miter;-inkscape-stroke:none"
|
||||
d="m 11.222656,1.4765625 a 0.250025,0.250025 0 0 0 -0.248047,0.28125 L 11.154297,3.1933594 9.9375,2.6835938 A 0.250025,0.250025 0 0 0 9.6054688,2.8320313 L 9.203125,3.9785156 A 0.250025,0.250025 0 0 0 9.4003906,4.3085937 L 10.6875,4.5058594 9.7578125,5.5625 a 0.250025,0.250025 0 0 0 0.046875,0.3691406 L 10.826172,6.6386719 A 0.250025,0.250025 0 0 0 11.1875,6.5527344 l 0.685547,-1.2441407 0.691406,1.2460938 a 0.250025,0.250025 0 0 0 0.359375,0.083984 l 1.029297,-0.7050782 a 0.250025,0.250025 0 0 0 0.04492,-0.3730468 L 13.0625,4.5058594 14.349609,4.3085937 A 0.250025,0.250025 0 0 0 14.548828,3.9765625 L 14.138672,2.8300781 A 0.250025,0.250025 0 0 0 13.806641,2.6835938 l -1.208985,0.5078125 0.185547,-1.4335938 a 0.250025,0.250025 0 0 0 -0.248047,-0.28125 z m 0.283203,0.5 H 12.25 l -0.205078,1.5820313 a 0.250025,0.250025 0 0 0 0.345703,0.2617187 l 1.365234,-0.5742187 0.21875,0.6132812 -1.439453,0.2207031 a 0.250025,0.250025 0 0 0 -0.15039,0.4121094 l 1.050781,1.1894531 -0.568359,0.3886719 -0.775391,-1.4003906 a 0.250025,0.250025 0 0 0 -0.439453,0.00195 L 10.882813,6.0703125 10.318359,5.6816406 11.367188,4.4921875 A 0.250025,0.250025 0 0 0 11.216797,4.0800781 L 9.7734375,3.859375 9.9882813,3.2480469 11.361328,3.8203125 a 0.250025,0.250025 0 0 0 0.34375,-0.2617187 z"
|
||||
id="path23554" />
|
||||
<path
|
||||
style="color:#000000;-inkscape-font-specification:'Malgun Gothic Bold';fill:#f7b200;fill-opacity:1;stroke:none;stroke-linecap:butt;stroke-linejoin:miter;-inkscape-stroke:none"
|
||||
d="M 14.31252,4.0607098 12.572144,4.3270305 13.810846,5.7267629 12.782724,6.4328226 11.872278,4.7915435 10.968026,6.4328226 9.9460978,5.7267629 11.178606,4.3270305 9.4382303,4.0607098 9.8408082,2.9149112 11.457313,3.5900033 11.22196,1.725758 h 1.313023 l -0.241546,1.8642453 1.610311,-0.6750921 z"
|
||||
id="path23556" />
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.3 KiB |
|
|
@ -0,0 +1,43 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dt3dphndn4swf"
|
||||
path="res://.godot/imported/SequenceActionReference.svg-4359daff0c55d9792387ee93e286001c.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/rokojori_action_library/Icons/SequenceActionReference.svg"
|
||||
dest_files=["res://.godot/imported/SequenceActionReference.svg-4359daff0c55d9792387ee93e286001c.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
|
|
@ -8,8 +8,16 @@ using System.Data;
|
|||
|
||||
namespace Rokojori
|
||||
{
|
||||
#if ! TOOLS
|
||||
[Tool]
|
||||
public partial class RokojoriPlugin:EditorPlugin
|
||||
public partial class RokojoriPlugin:Node
|
||||
{
|
||||
|
||||
}
|
||||
#else
|
||||
[Tool]
|
||||
public partial class RokojoriPlugin: EditorPlugin
|
||||
|
||||
{
|
||||
GizmoDrawerPlugin gizmoDrawerPlugin = new GizmoDrawerPlugin();
|
||||
|
||||
|
|
@ -271,4 +279,6 @@ namespace Rokojori
|
|||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
|
@ -10,6 +10,21 @@ namespace Rokojori
|
|||
[Export]
|
||||
public Action referencedAction;
|
||||
|
||||
[ExportToolButton( "Set Reference Name" )]
|
||||
public Callable setReferencedNameButton => Callable.From(
|
||||
()=>
|
||||
{
|
||||
if ( referencedAction == null )
|
||||
{
|
||||
this.Name = "* (nothing)";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Name = "* " + referencedAction.Name;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
protected override void _OnTrigger()
|
||||
{
|
||||
Action.Trigger( referencedAction );
|
||||
|
|
|
|||
|
|
@ -10,6 +10,21 @@ namespace Rokojori
|
|||
[Export]
|
||||
public AudioStreamPlayer music;
|
||||
|
||||
[ExportToolButton( "Set Reference Name" )]
|
||||
public Callable setReferencedNameButton => Callable.From(
|
||||
()=>
|
||||
{
|
||||
if ( music == null )
|
||||
{
|
||||
this.Name = "Play (nothing)";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Name = "Play " + music.Name;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
[Export]
|
||||
public bool stopSiblingPlayers = false;
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,21 @@ namespace Rokojori
|
|||
[Export]
|
||||
public AudioStreamPlayer3D player;
|
||||
|
||||
[ExportToolButton( "Set Reference Name" )]
|
||||
public Callable setReferencedNameButton => Callable.From(
|
||||
()=>
|
||||
{
|
||||
if ( player == null )
|
||||
{
|
||||
this.Name = "Play (nothing)";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Name = "Play " + player.Name;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
[Export]
|
||||
public AudioFlag overdrivePreventionFlag;
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,68 @@
|
|||
|
||||
using Godot;
|
||||
|
||||
|
||||
namespace Rokojori
|
||||
{
|
||||
[Tool][GlobalClass, Icon("res://addons/rokojori_action_library/Icons/SequenceActionReference.svg")]
|
||||
public partial class SequenceActionReference : SequenceAction
|
||||
{
|
||||
[Export]
|
||||
public SequenceAction referencedSequenceAction;
|
||||
|
||||
[ExportToolButton( "Set Reference Name" )]
|
||||
public Callable setReferencedNameButton => Callable.From(
|
||||
()=>
|
||||
{
|
||||
if ( referencedSequenceAction == null )
|
||||
{
|
||||
this.Name = "* (nothing)";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Name = "* " + referencedSequenceAction.Name;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
protected override void _OnTrigger()
|
||||
{
|
||||
if ( ! IsInstanceValid( referencedSequenceAction ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var ownID = DispatchStart();
|
||||
var referenceID = -1;
|
||||
|
||||
System.Action<SequenceActionFinishedEvent> callback = ( se )=>
|
||||
{
|
||||
if ( se.id != referenceID )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if ( se.success )
|
||||
{
|
||||
DispatchEnd( ownID );
|
||||
}
|
||||
else
|
||||
{
|
||||
DispatchCancelled( ownID );
|
||||
}
|
||||
}
|
||||
;
|
||||
|
||||
referencedSequenceAction.onSequenceDone.Once( callback );
|
||||
|
||||
referenceID = referencedSequenceAction.TriggerSequenceAndGetID();
|
||||
|
||||
if ( referenceID == -1 )
|
||||
{
|
||||
referencedSequenceAction.onSequenceDone.RemoveAction( callback );
|
||||
DispatchCancelled( ownID );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
uid://bvgnrj6aailvl
|
||||
|
|
@ -47,6 +47,15 @@ namespace Rokojori
|
|||
|
||||
}
|
||||
|
||||
public int TriggerSequenceAndGetID()
|
||||
{
|
||||
var nextID = GetLastSequenceActionID() + 1;
|
||||
|
||||
Trigger();
|
||||
|
||||
return GetLastSequenceActionID() < nextID ? -1 : nextID;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,35 @@
|
|||
[gd_resource type="Resource" script_class="ShakeEffect" load_steps=8 format=3 uid="uid://dedieicyxs0wu"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bec6skfqkb2ci" path="res://addons/rokojori_action_library/Runtime/Animation/Shake/ShakeEffect.cs" id="1_grbkn"]
|
||||
[ext_resource type="Script" uid="uid://c5tm02yj1bhhx" path="res://addons/rokojori_action_library/Runtime/Animation/AnimationCurve.cs" id="2_825l5"]
|
||||
[ext_resource type="Resource" uid="uid://h6oi6vkj4c2m" path="res://addons/rokojori_action_library/Runtime/Time/TimeLines/RealTime.tres" id="3_h78cr"]
|
||||
|
||||
[sub_resource type="Curve" id="Curve_63bh3"]
|
||||
_data = [Vector2(0, 1), 0.0, -1.3770282, 0, 0, Vector2(1, 0), -0.00696731, 0.0, 0, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="Resource" id="Resource_lnhr4"]
|
||||
script = ExtResource("2_825l5")
|
||||
curve = SubResource("Curve_63bh3")
|
||||
|
||||
[sub_resource type="Curve" id="Curve_4owub"]
|
||||
_limits = [-1.0, 1.0, 0.0, 1.0]
|
||||
_data = [Vector2(0, 1), 0.0, 0.0, 0, 1, Vector2(1, 1), 0.0, 0.0, 1, 0]
|
||||
point_count = 2
|
||||
|
||||
[sub_resource type="Resource" id="Resource_sn0rc"]
|
||||
script = ExtResource("2_825l5")
|
||||
curve = SubResource("Curve_4owub")
|
||||
scaleY = 60.0
|
||||
|
||||
[resource]
|
||||
script = ExtResource("1_grbkn")
|
||||
shakeAmountCurve = SubResource("Resource_lnhr4")
|
||||
shakeChangeFPSCurve = SubResource("Resource_sn0rc")
|
||||
timeline = ExtResource("3_h78cr")
|
||||
smoothingStrength = 0.477
|
||||
positionShake = Vector3(0.2, 0, 0.2)
|
||||
globalPosition = false
|
||||
rotationShake = Vector3(1, 1, 20)
|
||||
globalRotation = false
|
||||
scaleShake = Vector3(0.1, 0.1, 0.1)
|
||||
|
|
@ -15,6 +15,21 @@ namespace Rokojori
|
|||
[Export]
|
||||
public VirtualCamera virtualCamera;
|
||||
|
||||
[ExportToolButton( "Set Reference Name" )]
|
||||
public Callable setReferencedNameButton => Callable.From(
|
||||
()=>
|
||||
{
|
||||
if ( virtualCamera == null )
|
||||
{
|
||||
this.Name = "Set Active Camera (nothing)";
|
||||
}
|
||||
else
|
||||
{
|
||||
this.Name = "Set Active Camera " + virtualCamera.Name;
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
[ExportGroup( "Create Slot")]
|
||||
[Export]
|
||||
public bool createSlotIfNotPresent = true;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace Rokojori
|
|||
public CameraEffect cameraEffect;
|
||||
|
||||
[Export]
|
||||
public bool useActiveCameraSlot = false;
|
||||
public bool useActiveCameraSlot = true;
|
||||
|
||||
[ExportGroup("Other Camera Slot")]
|
||||
[Export]
|
||||
|
|
@ -35,6 +35,12 @@ namespace Rokojori
|
|||
protected override void _OnTrigger()
|
||||
{
|
||||
var manager = CameraManager.Get();
|
||||
|
||||
if ( manager == null )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var resolvedSlot = useActiveCameraSlot ? manager.activeSlot : cameraSlot;
|
||||
|
||||
if ( resolvedSlot == null && camera != null )
|
||||
|
|
|
|||
|
|
@ -0,0 +1,73 @@
|
|||
|
||||
using System.Diagnostics;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using Godot;
|
||||
|
||||
|
||||
namespace Rokojori
|
||||
{
|
||||
[Tool]
|
||||
[GlobalClass]
|
||||
public partial class ScreenShake:Action
|
||||
{
|
||||
[Export]
|
||||
public ScreenShakeSettings settings;
|
||||
|
||||
[Export]
|
||||
public bool useActiveCameraSlot = false;
|
||||
|
||||
[ExportGroup("Other Camera Slot")]
|
||||
[Export]
|
||||
public CameraSlot cameraSlot;
|
||||
|
||||
[Export]
|
||||
public VirtualCamera camera;
|
||||
|
||||
[Export]
|
||||
public int cameraSlotIndex = -1;
|
||||
|
||||
[Export]
|
||||
public Selector cameraSlotSelector;
|
||||
|
||||
|
||||
protected override void _OnTrigger()
|
||||
{
|
||||
var manager = CameraManager.Get();
|
||||
var resolvedSlot = useActiveCameraSlot ? manager.activeSlot : cameraSlot;
|
||||
|
||||
if ( resolvedSlot == null && camera != null )
|
||||
{
|
||||
resolvedSlot = manager.GetSlot( camera );
|
||||
}
|
||||
|
||||
if ( resolvedSlot == null )
|
||||
{
|
||||
if ( cameraSlotIndex != -1 )
|
||||
{
|
||||
resolvedSlot = manager.GetSlot( cameraSlotIndex );
|
||||
}
|
||||
else if ( cameraSlotSelector != null )
|
||||
{
|
||||
resolvedSlot = Selectors.GetFromDirectChildren<CameraSlot>( manager, cameraSlotSelector );
|
||||
}
|
||||
}
|
||||
|
||||
if ( resolvedSlot == null )
|
||||
{
|
||||
this.LogError( "No camera slot found" );
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
// this.LogInfo( "Camera slot found" );
|
||||
var cameraEffect = new CameraEffect();
|
||||
|
||||
cameraEffect.timeline = TimeLineManager.Ensure( settings.duration.timeLine );
|
||||
resolvedSlot.SetCameraEffect( cameraEffect );
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
uid://66geefo04i8e
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
using System.Diagnostics;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using Godot;
|
||||
|
||||
|
||||
namespace Rokojori
|
||||
{
|
||||
[Tool]
|
||||
[GlobalClass]
|
||||
public partial class ScreenShakeSettings:Resource
|
||||
{
|
||||
[Export]
|
||||
public Duration duration;
|
||||
|
||||
[Export]
|
||||
public float shakeX = 1;
|
||||
|
||||
[Export]
|
||||
public float shakeY = 1;
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1 @@
|
|||
uid://bws5dkau0kssg
|
||||
|
|
@ -602,7 +602,9 @@ namespace Rokojori
|
|||
|
||||
if ( forceUpdate )
|
||||
{
|
||||
#if TOOLS
|
||||
EditorInterface.Singleton.GetResourceFilesystem().Scan();
|
||||
#endif
|
||||
}
|
||||
|
||||
return error;
|
||||
|
|
|
|||
|
|
@ -10,8 +10,15 @@ namespace Rokojori
|
|||
{
|
||||
public static class ResourceExtensions
|
||||
{
|
||||
|
||||
|
||||
public static Error SaveAs( this Resource resource, string savePath, bool forceUpdate = false, ResourceSaver.SaverFlags saverFlags = ResourceSaver.SaverFlags.None )
|
||||
{
|
||||
#if ! TOOLS
|
||||
|
||||
return Error.Unavailable;
|
||||
|
||||
#else
|
||||
var error = ResourceSaver.Save( resource, savePath, saverFlags );
|
||||
|
||||
if ( forceUpdate )
|
||||
|
|
@ -20,6 +27,10 @@ namespace Rokojori
|
|||
}
|
||||
|
||||
return error;
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,9 @@ namespace Rokojori
|
|||
{
|
||||
if ( Engine.IsEditorHint() )
|
||||
{
|
||||
#if TOOLS
|
||||
rootWindow = EditorInterface.Singleton.GetEditedSceneRoot();
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -38,7 +40,9 @@ namespace Rokojori
|
|||
{
|
||||
if ( Engine.IsEditorHint() )
|
||||
{
|
||||
#if TOOLS
|
||||
rootWindow = EditorInterface.Singleton.GetEditedSceneRoot();
|
||||
#endif
|
||||
_singleton = Nodes.GetAnyChild<N>( rootWindow );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -144,8 +144,10 @@ namespace Rokojori
|
|||
{
|
||||
if ( useDebugSingleMeshGeneration )
|
||||
{
|
||||
#if TOOLS
|
||||
EditorInterface.Singleton.GetSelection().Clear();
|
||||
EditorInterface.Singleton.GetSelection().AddNode( deselecter );
|
||||
#endif
|
||||
await this.RequestNextFrame();
|
||||
}
|
||||
|
||||
|
|
@ -541,7 +543,10 @@ namespace Rokojori
|
|||
var rr = random.Sample( subdivisionNoiseRange );
|
||||
p.position += random.InSphere( rr * minT * b.height / (float)subdivisions );
|
||||
var sp = spline.CreateChild<SplinePoint>();
|
||||
|
||||
#if TOOLS
|
||||
sp.editorSplinePointSize = 0.001f;
|
||||
#endif
|
||||
|
||||
p.Set( sp );
|
||||
|
||||
|
|
@ -620,8 +625,9 @@ namespace Rokojori
|
|||
var root = spline.CreateChild<SplinePoint>();
|
||||
var end = spline.CreateChild<SplinePoint>();
|
||||
|
||||
#if TOOLS
|
||||
root.editorSplinePointSize = 0.001f;
|
||||
|
||||
#endif
|
||||
end.Position = new Vector3( 0, rootHeight, 0 ) + random.InSphere( noise );
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,9 @@ namespace Rokojori
|
|||
|
||||
public void SetEditorPointSize( float size )
|
||||
{
|
||||
#if TOOLS
|
||||
this.ForEachDirectChild<SplinePoint>( p => p.editorSplinePointSize = size );
|
||||
#endif
|
||||
}
|
||||
|
||||
SplineCurve splineCurve;
|
||||
|
|
|
|||
|
|
@ -218,7 +218,9 @@ namespace Rokojori
|
|||
|
||||
if ( Engine.IsEditorHint() )
|
||||
{
|
||||
#if TOOLS
|
||||
_assignedCamera = EditorInterface.Singleton.GetEditorViewport3D().GetCamera3D();
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -99,7 +99,9 @@ namespace Rokojori
|
|||
await this.RequestNextFrame();
|
||||
await this.RequestNextFrame();
|
||||
|
||||
#if TOOLS
|
||||
EditorInterface.Singleton.GetResourceFilesystem().ScanSources();
|
||||
#endif
|
||||
}
|
||||
|
||||
Node3D CreateGlyph( string character )
|
||||
|
|
|
|||
|
|
@ -5,6 +5,15 @@ using System.Collections.Generic;
|
|||
|
||||
namespace Rokojori
|
||||
{
|
||||
#if !TOOLS
|
||||
|
||||
public interface GizmoDrawer
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
public interface GizmoDrawer
|
||||
{
|
||||
void DrawGizmo( EditorNode3DGizmoPlugin gizmoPlugin, EditorNode3DGizmo gizmo );
|
||||
|
|
@ -43,4 +52,6 @@ namespace Rokojori
|
|||
|
||||
*/
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
|
|
@ -5,6 +5,15 @@ using System.Collections.Generic;
|
|||
|
||||
namespace Rokojori
|
||||
{
|
||||
#if !TOOLS
|
||||
[Tool]
|
||||
public partial class GizmoDrawerPlugin : Node
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
[Tool]
|
||||
public partial class GizmoDrawerPlugin : EditorNode3DGizmoPlugin
|
||||
{
|
||||
|
|
@ -85,4 +94,6 @@ namespace Rokojori
|
|||
gizmoDrawerWithHandles.CommitHandle( gizmo, handle_id, secondary, restore, cancel );
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
|
After Width: | Height: | Size: 45 MiB |
|
|
@ -0,0 +1,43 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://q75oyia4n1s1"
|
||||
path="res://.godot/imported/rokojori-action-library-images.svg-ece3ab09c35567bdc4063e2817f21870.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/rokojori_action_library/rokojori-action-library-images.svg"
|
||||
dest_files=["res://.godot/imported/rokojori-action-library-images.svg-ece3ab09c35567bdc4063e2817f21870.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 33 KiB |
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cshyuq7f1s0sj"
|
||||
path="res://.godot/imported/winter-tales-header-portrait.jpg-14a70a64abb20071c40a5cc6a5e5d29a.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/rokojori_action_library/winter-tales-header-portrait.jpg"
|
||||
dest_files=["res://.godot/imported/winter-tales-header-portrait.jpg-14a70a64abb20071c40a5cc6a5e5d29a.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
|
|
@ -0,0 +1,40 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cm7ojdi7uqp2k"
|
||||
path="res://.godot/imported/winter-tales-header.jpg-270ad72c392a0765eb2a3ca81777b258.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://addons/rokojori_action_library/winter-tales-header.jpg"
|
||||
dest_files=["res://.godot/imported/winter-tales-header.jpg-270ad72c392a0765eb2a3ca81777b258.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
Loading…
Reference in New Issue