-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74aed6d
commit c1609dd
Showing
8 changed files
with
110 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
extends Control | ||
|
||
@onready var _context := BlockEditorContext.get_default() | ||
|
||
@onready var _block_code := %BlockCode | ||
|
||
|
||
func _ready() -> void: | ||
#var block_script: BlockScriptSerialization = | ||
#block_script.script_inherits = _get_custom_or_native_class(get_parent()) | ||
#block_script.generated_script = new_block_script.generated_script.replace("INHERIT_DEFAULT", new_block_script.script_inherits) | ||
|
||
_context.set_block_code_node.call_deferred(_block_code) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
[gd_scene load_steps=12 format=3 uid="uid://d2sgdkbau3tfv"] | ||
|
||
[ext_resource type="PackedScene" uid="uid://bq37yla8ya707" path="res://addons/block_code/ui/main_panel.tscn" id="1_kvne0"] | ||
[ext_resource type="Script" path="res://block_code_demo.gd" id="1_obq7i"] | ||
[ext_resource type="Texture2D" uid="uid://dr8e0tvfxjy1f" path="res://icon.svg" id="2_liip2"] | ||
[ext_resource type="Script" path="res://addons/block_code/block_code_node/block_code.gd" id="2_x7fcc"] | ||
[ext_resource type="Script" path="res://addons/block_code/serialization/block_serialization_tree.gd" id="3_73e6f"] | ||
[ext_resource type="Script" path="res://addons/block_code/serialization/block_serialization.gd" id="4_1yrvj"] | ||
[ext_resource type="Script" path="res://addons/block_code/serialization/block_script_serialization.gd" id="5_bnd5w"] | ||
[ext_resource type="Script" path="res://addons/block_code/code_generation/variable_definition.gd" id="6_h8s2d"] | ||
|
||
[sub_resource type="Resource" id="Resource_oalom"] | ||
script = ExtResource("4_1yrvj") | ||
name = &"ready" | ||
children = Array[ExtResource("4_1yrvj")]([]) | ||
arguments = {} | ||
|
||
[sub_resource type="Resource" id="Resource_8sqy5"] | ||
script = ExtResource("3_73e6f") | ||
root = SubResource("Resource_oalom") | ||
canvas_position = Vector2(54, 47) | ||
|
||
[sub_resource type="Resource" id="Resource_ho2y6"] | ||
script = ExtResource("5_bnd5w") | ||
script_inherits = "Sprite2D" | ||
block_serialization_trees = Array[ExtResource("3_73e6f")]([SubResource("Resource_8sqy5")]) | ||
variables = Array[ExtResource("6_h8s2d")]([]) | ||
generated_script = "extends Sprite2D" | ||
version = 0 | ||
|
||
[node name="BlockCodeDemo" type="Control"] | ||
layout_mode = 3 | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
script = ExtResource("1_obq7i") | ||
|
||
[node name="VSplitContainer" type="VSplitContainer" parent="."] | ||
layout_mode = 1 | ||
anchors_preset = 15 | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
grow_horizontal = 2 | ||
grow_vertical = 2 | ||
|
||
[node name="SubViewportContainer" type="SubViewportContainer" parent="VSplitContainer"] | ||
layout_mode = 2 | ||
size_flags_vertical = 3 | ||
stretch = true | ||
|
||
[node name="SubViewport" type="SubViewport" parent="VSplitContainer/SubViewportContainer"] | ||
handle_input_locally = false | ||
size = Vector2i(1152, 318) | ||
render_target_update_mode = 4 | ||
|
||
[node name="Sprite2D" type="Sprite2D" parent="VSplitContainer/SubViewportContainer/SubViewport"] | ||
position = Vector2(537, 188) | ||
texture = ExtResource("2_liip2") | ||
|
||
[node name="BlockCode" type="Node" parent="VSplitContainer/SubViewportContainer/SubViewport/Sprite2D"] | ||
unique_name_in_owner = true | ||
script = ExtResource("2_x7fcc") | ||
block_script = SubResource("Resource_ho2y6") | ||
|
||
[node name="MainPanel" parent="VSplitContainer" instance=ExtResource("1_kvne0")] | ||
layout_mode = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters