Skip to content

Commit

Permalink
chore: comments stuff which will not be included in 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
OctoD committed Jan 15, 2024
1 parent 08f7cd0 commit 81e82c8
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion project/demos/ability_test_ui/abilities/ability_000.gd
Original file line number Diff line number Diff line change
@@ -1 +1 @@
extends Ability
class_name TestAbilityScript extends Ability
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[gd_resource type="Ability" format=3 uid="uid://bt7jgvhdfhsqc"]

[resource]
ability_name = &"test_ability_resource"
tags_added_on_activation = PackedStringArray("enemy.ai.combat.chasing", "enemy.ai.combat.low_health", "enemy.ai.combat.panic")
1 change: 1 addition & 0 deletions project/demos/ability_test_ui/main.gd
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
extends Control

10 changes: 6 additions & 4 deletions project/demos/ability_test_ui/main.tscn
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[gd_scene load_steps=3 format=3 uid="uid://ye6lunjs1ns2"]
[gd_scene load_steps=5 format=3 uid="uid://ye6lunjs1ns2"]

[ext_resource type="Script" path="res://demos/ability_test_ui/main.gd" id="1_8w5uo"]
[ext_resource type="Ability" uid="uid://bt7jgvhdfhsqc" path="res://demos/ability_test_ui/abilities/test_ability_resource.tres" id="2_fs4wh"]
[ext_resource type="Script" path="res://demos/ability_test_ui/abilities/ability_000.gd" id="3_nqgh0"]

[sub_resource type="Ability" id="Ability_o615e"]
tags_added_on_activation = PackedStringArray("enemy.ai.combat.chasing", "enemy.ai.combat.low_health", "enemy.ai.combat.panic")
[sub_resource type="Ability" id="Ability_qsw14"]
script = ExtResource("3_nqgh0")

[node name="Main" type="Control"]
layout_mode = 3
Expand All @@ -15,4 +17,4 @@ grow_vertical = 2
script = ExtResource("1_8w5uo")

[node name="AbilityContainer" type="AbilityContainer" parent="."]
abilities = Array[Ability]([SubResource("Ability_o615e")])
abilities = Array[Ability]([ExtResource("2_fs4wh"), SubResource("Ability_qsw14")])
6 changes: 4 additions & 2 deletions src/editor_plugin/main_scene/ggs_main_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ void MainScene::_ready()

tab_container->add_child(tag_manager_panel);
tab_container->add_child(attributes_panel);
tab_container->add_child(ability_panel);
// commented. Will come with a visual ability designer in the future.
// tab_container->add_child(ability_panel);

tag_manager_panel->set_name(tag_manager_panel->tr("Tag Manager"));
attributes_panel->set_name(attributes_panel->tr("Attributes"));
ability_panel->set_name(ability_panel->tr("Ability"));
// commented. Will come with a visual ability designer in the future.
// ability_panel->set_name(ability_panel->tr("Ability"));

AttributeMainScene *attribute_main_scene = memnew(AttributeMainScene);
TagMainScene *tag_main_scene = memnew(TagMainScene);
Expand Down

0 comments on commit 81e82c8

Please sign in to comment.