diff --git a/DungeonShooting_Godot/editor/ide_cn_font_8.tres b/DungeonShooting_Godot/editor/ide_cn_font_8.tres new file mode 100644 index 0000000..3797db3 --- /dev/null +++ b/DungeonShooting_Godot/editor/ide_cn_font_8.tres @@ -0,0 +1,10 @@ +[gd_resource type="DynamicFont" load_steps=2 format=2] + +[ext_resource path="res://SourceHanSerifCN-SemiBold.otf" type="DynamicFontData" id=1] + +[resource] +size = 4 +use_mipmaps = true +use_filter = true +extra_spacing_space = 2 +font_data = ExtResource( 1 ) diff --git a/DungeonShooting_Godot/editor/prefabs/CodePanel.tscn b/DungeonShooting_Godot/editor/prefabs/CodePanel.tscn index 423ae3a..f88cee3 100644 --- a/DungeonShooting_Godot/editor/prefabs/CodePanel.tscn +++ b/DungeonShooting_Godot/editor/prefabs/CodePanel.tscn @@ -1,9 +1,10 @@ -[gd_scene load_steps=5 format=2] +[gd_scene load_steps=6 format=2] [ext_resource path="res://editor/src/CodeTextEditor.cs" type="Script" id=1] [ext_resource path="res://editor/ide_cn_font_6.tres" type="DynamicFont" id=2] [ext_resource path="res://editor/src/CodePanel.cs" type="Script" id=3] [ext_resource path="res://editor/src/TextEditPainter.cs" type="Script" id=4] +[ext_resource path="res://editor/prefabs/HintPanel.tscn" type="PackedScene" id=5] [node name="CodePanel" type="Control"] anchor_right = 1.0 @@ -39,5 +40,11 @@ [node name="TextEditPainter" type="Node2D" parent="ScalePanel/TextEdit"] script = ExtResource( 4 ) +[node name="Popup" parent="ScalePanel/TextEdit" instance=ExtResource( 5 )] +margin_left = 155.556 +margin_top = 115.556 +margin_right = 286.556 +margin_bottom = 209.556 + [connection signal="resized" from="ScalePanel" to="." method="_on_ScalePanel_resized"] [connection signal="text_changed" from="ScalePanel/TextEdit" to="ScalePanel/TextEdit" method="_on_TextEdit_text_changed"] diff --git a/DungeonShooting_Godot/editor/prefabs/HintPanel.tscn b/DungeonShooting_Godot/editor/prefabs/HintPanel.tscn index 9782366..379e43b 100644 --- a/DungeonShooting_Godot/editor/prefabs/HintPanel.tscn +++ b/DungeonShooting_Godot/editor/prefabs/HintPanel.tscn @@ -1,8 +1,17 @@ -[gd_scene load_steps=7 format=2] +[gd_scene load_steps=9 format=2] -[ext_resource path="res://editor/ActivityObject.svg" type="Texture" id=1] +[ext_resource path="res://addons/dungeonShooting_plugin/ActivityObject.svg" type="Texture" id=1] [ext_resource path="res://editor/src/HintPanel.cs" type="Script" id=2] [ext_resource path="res://editor/src/HintItem.cs" type="Script" id=3] +[ext_resource path="res://editor/ide_cn_font_8.tres" type="DynamicFont" id=4] + +[sub_resource type="StyleBoxFlat" id=4] +bg_color = Color( 0.145098, 0.145098, 0.14902, 1 ) +border_width_left = 1 +border_width_top = 1 +border_width_right = 1 +border_width_bottom = 1 +border_color = Color( 0.270588, 0.270588, 0.270588, 1 ) [sub_resource type="StyleBoxFlat" id=3] bg_color = Color( 1, 1, 1, 0.0784314 ) @@ -13,176 +22,531 @@ [sub_resource type="StyleBoxFlat" id=1] bg_color = Color( 0, 0, 0, 0 ) -[node name="HintPanel" type="Control"] -anchor_right = 1.0 -anchor_bottom = 1.0 +[node name="Popup" type="PopupPanel"] +visible = true +margin_right = 114.0 +margin_bottom = 84.0 +custom_styles/panel = SubResource( 4 ) script = ExtResource( 2 ) -[node name="Popup" type="PopupPanel" parent="."] -visible = true +[node name="ScrollContainer" type="ScrollContainer" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 -margin_right = -202.0 -margin_bottom = -106.0 - -[node name="ScrollContainer" type="ScrollContainer" parent="Popup"] -anchor_right = 1.0 -anchor_bottom = 1.0 -margin_left = 4.0 -margin_top = 4.0 -margin_right = -4.0 -margin_bottom = -4.0 +margin_left = 1.0 +margin_top = 1.0 +margin_right = -1.0 +margin_bottom = -1.0 scroll_horizontal_enabled = false -[node name="VBoxContainer" type="VBoxContainer" parent="Popup/ScrollContainer"] -margin_right = 270.0 -margin_bottom = 84.0 +[node name="VBoxContainer" type="VBoxContainer" parent="ScrollContainer"] +margin_right = 100.0 +margin_bottom = 117.0 size_flags_horizontal = 3 custom_constants/separation = 0 -[node name="Button" type="Button" parent="Popup/ScrollContainer/VBoxContainer"] -margin_right = 270.0 -margin_bottom = 12.0 -rect_min_size = Vector2( 0, 12 ) -custom_colors/font_color_focus = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color_hover = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color_pressed = Color( 0.0901961, 0.352941, 0.976471, 1 ) +[node name="Button" type="Button" parent="ScrollContainer/VBoxContainer"] +margin_right = 100.0 +margin_bottom = 9.0 +rect_min_size = Vector2( 0, 9 ) +custom_constants/hseparation = 0 custom_styles/hover = SubResource( 3 ) custom_styles/pressed = SubResource( 2 ) custom_styles/focus = SubResource( 2 ) custom_styles/disabled = SubResource( 1 ) custom_styles/normal = SubResource( 1 ) -text = "123456789" -icon = ExtResource( 1 ) align = 0 expand_icon = true script = ExtResource( 3 ) -[node name="Button2" type="Button" parent="Popup/ScrollContainer/VBoxContainer"] -margin_top = 12.0 -margin_right = 270.0 -margin_bottom = 24.0 -rect_min_size = Vector2( 0, 12 ) -custom_colors/font_color_focus = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color_hover = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color_pressed = Color( 0.0901961, 0.352941, 0.976471, 1 ) +[node name="Icon" type="TextureRect" parent="ScrollContainer/VBoxContainer/Button"] +margin_left = 1.0 +margin_top = 1.0 +margin_right = 8.0 +margin_bottom = 8.0 +rect_min_size = Vector2( 7, 7 ) +texture = ExtResource( 1 ) +expand = true + +[node name="Text" type="RichTextLabel" parent="ScrollContainer/VBoxContainer/Button"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 9.0 +margin_top = 1.0 +margin_right = -2.0 +margin_bottom = 1.0 +rect_min_size = Vector2( 0, 9 ) +mouse_filter = 2 +custom_fonts/normal_font = ExtResource( 4 ) +text = "private" +fit_content_height = true +scroll_active = false + +[node name="Button2" type="Button" parent="ScrollContainer/VBoxContainer"] +margin_top = 9.0 +margin_right = 100.0 +margin_bottom = 18.0 +rect_min_size = Vector2( 0, 9 ) +custom_constants/hseparation = 0 custom_styles/hover = SubResource( 3 ) custom_styles/pressed = SubResource( 2 ) custom_styles/focus = SubResource( 2 ) custom_styles/disabled = SubResource( 1 ) custom_styles/normal = SubResource( 1 ) -text = "123456789" -icon = ExtResource( 1 ) align = 0 expand_icon = true script = ExtResource( 3 ) -[node name="Button3" type="Button" parent="Popup/ScrollContainer/VBoxContainer"] -margin_top = 24.0 -margin_right = 270.0 +[node name="Icon" type="TextureRect" parent="ScrollContainer/VBoxContainer/Button2"] +margin_left = 1.0 +margin_top = 1.0 +margin_right = 8.0 +margin_bottom = 8.0 +rect_min_size = Vector2( 7, 7 ) +texture = ExtResource( 1 ) +expand = true + +[node name="Text" type="RichTextLabel" parent="ScrollContainer/VBoxContainer/Button2"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 9.0 +margin_top = 1.0 +margin_right = -2.0 +margin_bottom = 1.0 +rect_min_size = Vector2( 0, 9 ) +mouse_filter = 2 +custom_fonts/normal_font = ExtResource( 4 ) +text = "private" +fit_content_height = true +scroll_active = false + +[node name="Button3" type="Button" parent="ScrollContainer/VBoxContainer"] +margin_top = 18.0 +margin_right = 100.0 +margin_bottom = 27.0 +rect_min_size = Vector2( 0, 9 ) +custom_constants/hseparation = 0 +custom_styles/hover = SubResource( 3 ) +custom_styles/pressed = SubResource( 2 ) +custom_styles/focus = SubResource( 2 ) +custom_styles/disabled = SubResource( 1 ) +custom_styles/normal = SubResource( 1 ) +align = 0 +expand_icon = true +script = ExtResource( 3 ) + +[node name="Icon" type="TextureRect" parent="ScrollContainer/VBoxContainer/Button3"] +margin_left = 1.0 +margin_top = 1.0 +margin_right = 8.0 +margin_bottom = 8.0 +rect_min_size = Vector2( 7, 7 ) +texture = ExtResource( 1 ) +expand = true + +[node name="Text" type="RichTextLabel" parent="ScrollContainer/VBoxContainer/Button3"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 9.0 +margin_top = 1.0 +margin_right = -2.0 +margin_bottom = 1.0 +rect_min_size = Vector2( 0, 9 ) +mouse_filter = 2 +custom_fonts/normal_font = ExtResource( 4 ) +text = "private" +fit_content_height = true +scroll_active = false + +[node name="Button4" type="Button" parent="ScrollContainer/VBoxContainer"] +margin_top = 27.0 +margin_right = 100.0 margin_bottom = 36.0 -rect_min_size = Vector2( 0, 12 ) -custom_colors/font_color_focus = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color_hover = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color_pressed = Color( 0.0901961, 0.352941, 0.976471, 1 ) +rect_min_size = Vector2( 0, 9 ) +custom_constants/hseparation = 0 custom_styles/hover = SubResource( 3 ) custom_styles/pressed = SubResource( 2 ) custom_styles/focus = SubResource( 2 ) custom_styles/disabled = SubResource( 1 ) custom_styles/normal = SubResource( 1 ) -text = "123456789" -icon = ExtResource( 1 ) align = 0 expand_icon = true script = ExtResource( 3 ) -[node name="Button4" type="Button" parent="Popup/ScrollContainer/VBoxContainer"] +[node name="Icon" type="TextureRect" parent="ScrollContainer/VBoxContainer/Button4"] +margin_left = 1.0 +margin_top = 1.0 +margin_right = 8.0 +margin_bottom = 8.0 +rect_min_size = Vector2( 7, 7 ) +texture = ExtResource( 1 ) +expand = true + +[node name="Text" type="RichTextLabel" parent="ScrollContainer/VBoxContainer/Button4"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 9.0 +margin_top = 1.0 +margin_right = -2.0 +margin_bottom = 1.0 +rect_min_size = Vector2( 0, 9 ) +mouse_filter = 2 +custom_fonts/normal_font = ExtResource( 4 ) +text = "private" +fit_content_height = true +scroll_active = false + +[node name="Button5" type="Button" parent="ScrollContainer/VBoxContainer"] margin_top = 36.0 -margin_right = 270.0 -margin_bottom = 48.0 -rect_min_size = Vector2( 0, 12 ) -custom_colors/font_color_focus = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color_hover = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color_pressed = Color( 0.0901961, 0.352941, 0.976471, 1 ) +margin_right = 100.0 +margin_bottom = 45.0 +rect_min_size = Vector2( 0, 9 ) +custom_constants/hseparation = 0 custom_styles/hover = SubResource( 3 ) custom_styles/pressed = SubResource( 2 ) custom_styles/focus = SubResource( 2 ) custom_styles/disabled = SubResource( 1 ) custom_styles/normal = SubResource( 1 ) -text = "123456789" -icon = ExtResource( 1 ) align = 0 expand_icon = true script = ExtResource( 3 ) -[node name="Button5" type="Button" parent="Popup/ScrollContainer/VBoxContainer"] -margin_top = 48.0 -margin_right = 270.0 -margin_bottom = 60.0 -rect_min_size = Vector2( 0, 12 ) -custom_colors/font_color_focus = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color_hover = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color_pressed = Color( 0.0901961, 0.352941, 0.976471, 1 ) +[node name="Icon" type="TextureRect" parent="ScrollContainer/VBoxContainer/Button5"] +margin_left = 1.0 +margin_top = 1.0 +margin_right = 8.0 +margin_bottom = 8.0 +rect_min_size = Vector2( 7, 7 ) +texture = ExtResource( 1 ) +expand = true + +[node name="Text" type="RichTextLabel" parent="ScrollContainer/VBoxContainer/Button5"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 9.0 +margin_top = 1.0 +margin_right = -2.0 +margin_bottom = 1.0 +rect_min_size = Vector2( 0, 9 ) +mouse_filter = 2 +custom_fonts/normal_font = ExtResource( 4 ) +text = "private" +fit_content_height = true +scroll_active = false + +[node name="Button6" type="Button" parent="ScrollContainer/VBoxContainer"] +margin_top = 45.0 +margin_right = 100.0 +margin_bottom = 54.0 +rect_min_size = Vector2( 0, 9 ) +custom_constants/hseparation = 0 custom_styles/hover = SubResource( 3 ) custom_styles/pressed = SubResource( 2 ) custom_styles/focus = SubResource( 2 ) custom_styles/disabled = SubResource( 1 ) custom_styles/normal = SubResource( 1 ) -text = "123456789" -icon = ExtResource( 1 ) align = 0 expand_icon = true script = ExtResource( 3 ) -[node name="Button6" type="Button" parent="Popup/ScrollContainer/VBoxContainer"] -margin_top = 60.0 -margin_right = 270.0 +[node name="Icon" type="TextureRect" parent="ScrollContainer/VBoxContainer/Button6"] +margin_left = 1.0 +margin_top = 1.0 +margin_right = 8.0 +margin_bottom = 8.0 +rect_min_size = Vector2( 7, 7 ) +texture = ExtResource( 1 ) +expand = true + +[node name="Text" type="RichTextLabel" parent="ScrollContainer/VBoxContainer/Button6"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 9.0 +margin_top = 1.0 +margin_right = -2.0 +margin_bottom = 1.0 +rect_min_size = Vector2( 0, 9 ) +mouse_filter = 2 +custom_fonts/normal_font = ExtResource( 4 ) +text = "private" +fit_content_height = true +scroll_active = false + +[node name="Button7" type="Button" parent="ScrollContainer/VBoxContainer"] +margin_top = 54.0 +margin_right = 100.0 +margin_bottom = 63.0 +rect_min_size = Vector2( 0, 9 ) +custom_constants/hseparation = 0 +custom_styles/hover = SubResource( 3 ) +custom_styles/pressed = SubResource( 2 ) +custom_styles/focus = SubResource( 2 ) +custom_styles/disabled = SubResource( 1 ) +custom_styles/normal = SubResource( 1 ) +align = 0 +expand_icon = true +script = ExtResource( 3 ) + +[node name="Icon" type="TextureRect" parent="ScrollContainer/VBoxContainer/Button7"] +margin_left = 1.0 +margin_top = 1.0 +margin_right = 8.0 +margin_bottom = 8.0 +rect_min_size = Vector2( 7, 7 ) +texture = ExtResource( 1 ) +expand = true + +[node name="Text" type="RichTextLabel" parent="ScrollContainer/VBoxContainer/Button7"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 9.0 +margin_top = 1.0 +margin_right = -2.0 +margin_bottom = 1.0 +rect_min_size = Vector2( 0, 9 ) +mouse_filter = 2 +custom_fonts/normal_font = ExtResource( 4 ) +text = "private" +fit_content_height = true +scroll_active = false + +[node name="Button8" type="Button" parent="ScrollContainer/VBoxContainer"] +margin_top = 63.0 +margin_right = 100.0 margin_bottom = 72.0 -rect_min_size = Vector2( 0, 12 ) -custom_colors/font_color_focus = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color_hover = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color_pressed = Color( 0.0901961, 0.352941, 0.976471, 1 ) +rect_min_size = Vector2( 0, 9 ) +custom_constants/hseparation = 0 custom_styles/hover = SubResource( 3 ) custom_styles/pressed = SubResource( 2 ) custom_styles/focus = SubResource( 2 ) custom_styles/disabled = SubResource( 1 ) custom_styles/normal = SubResource( 1 ) -text = "123456789" -icon = ExtResource( 1 ) align = 0 expand_icon = true script = ExtResource( 3 ) -[node name="Button7" type="Button" parent="Popup/ScrollContainer/VBoxContainer"] +[node name="Icon" type="TextureRect" parent="ScrollContainer/VBoxContainer/Button8"] +margin_left = 1.0 +margin_top = 1.0 +margin_right = 8.0 +margin_bottom = 8.0 +rect_min_size = Vector2( 7, 7 ) +texture = ExtResource( 1 ) +expand = true + +[node name="Text" type="RichTextLabel" parent="ScrollContainer/VBoxContainer/Button8"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 9.0 +margin_top = 1.0 +margin_right = -2.0 +margin_bottom = 1.0 +rect_min_size = Vector2( 0, 9 ) +mouse_filter = 2 +custom_fonts/normal_font = ExtResource( 4 ) +text = "private" +fit_content_height = true +scroll_active = false + +[node name="Button9" type="Button" parent="ScrollContainer/VBoxContainer"] margin_top = 72.0 -margin_right = 270.0 -margin_bottom = 84.0 -rect_min_size = Vector2( 0, 12 ) -custom_colors/font_color_focus = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color_hover = Color( 0.752941, 0.752941, 0.776471, 1 ) -custom_colors/font_color_pressed = Color( 0.0901961, 0.352941, 0.976471, 1 ) +margin_right = 100.0 +margin_bottom = 81.0 +rect_min_size = Vector2( 0, 9 ) +custom_constants/hseparation = 0 custom_styles/hover = SubResource( 3 ) custom_styles/pressed = SubResource( 2 ) custom_styles/focus = SubResource( 2 ) custom_styles/disabled = SubResource( 1 ) custom_styles/normal = SubResource( 1 ) -text = "123456789" -icon = ExtResource( 1 ) align = 0 expand_icon = true script = ExtResource( 3 ) -[connection signal="pressed" from="Popup/ScrollContainer/VBoxContainer/Button" to="Popup/ScrollContainer/VBoxContainer/Button" method="_on_click"] -[connection signal="pressed" from="Popup/ScrollContainer/VBoxContainer/Button2" to="Popup/ScrollContainer/VBoxContainer/Button2" method="_on_click"] -[connection signal="pressed" from="Popup/ScrollContainer/VBoxContainer/Button3" to="Popup/ScrollContainer/VBoxContainer/Button3" method="_on_click"] -[connection signal="pressed" from="Popup/ScrollContainer/VBoxContainer/Button4" to="Popup/ScrollContainer/VBoxContainer/Button4" method="_on_click"] -[connection signal="pressed" from="Popup/ScrollContainer/VBoxContainer/Button5" to="Popup/ScrollContainer/VBoxContainer/Button5" method="_on_click"] -[connection signal="pressed" from="Popup/ScrollContainer/VBoxContainer/Button6" to="Popup/ScrollContainer/VBoxContainer/Button6" method="_on_click"] -[connection signal="pressed" from="Popup/ScrollContainer/VBoxContainer/Button7" to="Popup/ScrollContainer/VBoxContainer/Button7" method="_on_click"] +[node name="Icon" type="TextureRect" parent="ScrollContainer/VBoxContainer/Button9"] +margin_left = 1.0 +margin_top = 1.0 +margin_right = 8.0 +margin_bottom = 8.0 +rect_min_size = Vector2( 7, 7 ) +texture = ExtResource( 1 ) +expand = true + +[node name="Text" type="RichTextLabel" parent="ScrollContainer/VBoxContainer/Button9"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 9.0 +margin_top = 1.0 +margin_right = -2.0 +margin_bottom = 1.0 +rect_min_size = Vector2( 0, 9 ) +mouse_filter = 2 +custom_fonts/normal_font = ExtResource( 4 ) +text = "private" +fit_content_height = true +scroll_active = false + +[node name="Button10" type="Button" parent="ScrollContainer/VBoxContainer"] +margin_top = 81.0 +margin_right = 100.0 +margin_bottom = 90.0 +rect_min_size = Vector2( 0, 9 ) +custom_constants/hseparation = 0 +custom_styles/hover = SubResource( 3 ) +custom_styles/pressed = SubResource( 2 ) +custom_styles/focus = SubResource( 2 ) +custom_styles/disabled = SubResource( 1 ) +custom_styles/normal = SubResource( 1 ) +align = 0 +expand_icon = true +script = ExtResource( 3 ) + +[node name="Icon" type="TextureRect" parent="ScrollContainer/VBoxContainer/Button10"] +margin_left = 1.0 +margin_top = 1.0 +margin_right = 8.0 +margin_bottom = 8.0 +rect_min_size = Vector2( 7, 7 ) +texture = ExtResource( 1 ) +expand = true + +[node name="Text" type="RichTextLabel" parent="ScrollContainer/VBoxContainer/Button10"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 9.0 +margin_top = 1.0 +margin_right = -2.0 +margin_bottom = 1.0 +rect_min_size = Vector2( 0, 9 ) +mouse_filter = 2 +custom_fonts/normal_font = ExtResource( 4 ) +text = "private" +fit_content_height = true +scroll_active = false + +[node name="Button11" type="Button" parent="ScrollContainer/VBoxContainer"] +margin_top = 90.0 +margin_right = 100.0 +margin_bottom = 99.0 +rect_min_size = Vector2( 0, 9 ) +custom_constants/hseparation = 0 +custom_styles/hover = SubResource( 3 ) +custom_styles/pressed = SubResource( 2 ) +custom_styles/focus = SubResource( 2 ) +custom_styles/disabled = SubResource( 1 ) +custom_styles/normal = SubResource( 1 ) +align = 0 +expand_icon = true +script = ExtResource( 3 ) + +[node name="Icon" type="TextureRect" parent="ScrollContainer/VBoxContainer/Button11"] +margin_left = 1.0 +margin_top = 1.0 +margin_right = 8.0 +margin_bottom = 8.0 +rect_min_size = Vector2( 7, 7 ) +texture = ExtResource( 1 ) +expand = true + +[node name="Text" type="RichTextLabel" parent="ScrollContainer/VBoxContainer/Button11"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 9.0 +margin_top = 1.0 +margin_right = -2.0 +margin_bottom = 1.0 +rect_min_size = Vector2( 0, 9 ) +mouse_filter = 2 +custom_fonts/normal_font = ExtResource( 4 ) +text = "private" +fit_content_height = true +scroll_active = false + +[node name="Button12" type="Button" parent="ScrollContainer/VBoxContainer"] +margin_top = 99.0 +margin_right = 100.0 +margin_bottom = 108.0 +rect_min_size = Vector2( 0, 9 ) +custom_constants/hseparation = 0 +custom_styles/hover = SubResource( 3 ) +custom_styles/pressed = SubResource( 2 ) +custom_styles/focus = SubResource( 2 ) +custom_styles/disabled = SubResource( 1 ) +custom_styles/normal = SubResource( 1 ) +align = 0 +expand_icon = true +script = ExtResource( 3 ) + +[node name="Icon" type="TextureRect" parent="ScrollContainer/VBoxContainer/Button12"] +margin_left = 1.0 +margin_top = 1.0 +margin_right = 8.0 +margin_bottom = 8.0 +rect_min_size = Vector2( 7, 7 ) +texture = ExtResource( 1 ) +expand = true + +[node name="Text" type="RichTextLabel" parent="ScrollContainer/VBoxContainer/Button12"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 9.0 +margin_top = 1.0 +margin_right = -2.0 +margin_bottom = 1.0 +rect_min_size = Vector2( 0, 9 ) +mouse_filter = 2 +custom_fonts/normal_font = ExtResource( 4 ) +text = "private" +fit_content_height = true +scroll_active = false + +[node name="Button13" type="Button" parent="ScrollContainer/VBoxContainer"] +margin_top = 108.0 +margin_right = 100.0 +margin_bottom = 117.0 +rect_min_size = Vector2( 0, 9 ) +custom_constants/hseparation = 0 +custom_styles/hover = SubResource( 3 ) +custom_styles/pressed = SubResource( 2 ) +custom_styles/focus = SubResource( 2 ) +custom_styles/disabled = SubResource( 1 ) +custom_styles/normal = SubResource( 1 ) +align = 0 +expand_icon = true +script = ExtResource( 3 ) + +[node name="Icon" type="TextureRect" parent="ScrollContainer/VBoxContainer/Button13"] +margin_left = 1.0 +margin_top = 1.0 +margin_right = 8.0 +margin_bottom = 8.0 +rect_min_size = Vector2( 7, 7 ) +texture = ExtResource( 1 ) +expand = true + +[node name="Text" type="RichTextLabel" parent="ScrollContainer/VBoxContainer/Button13"] +anchor_right = 1.0 +anchor_bottom = 1.0 +margin_left = 9.0 +margin_top = 1.0 +margin_right = -2.0 +margin_bottom = 1.0 +rect_min_size = Vector2( 0, 9 ) +mouse_filter = 2 +custom_fonts/normal_font = ExtResource( 4 ) +text = "private" +fit_content_height = true +scroll_active = false + +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Button" to="ScrollContainer/VBoxContainer/Button" method="_on_click"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Button2" to="ScrollContainer/VBoxContainer/Button2" method="_on_click"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Button3" to="ScrollContainer/VBoxContainer/Button3" method="_on_click"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Button4" to="ScrollContainer/VBoxContainer/Button4" method="_on_click"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Button5" to="ScrollContainer/VBoxContainer/Button5" method="_on_click"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Button6" to="ScrollContainer/VBoxContainer/Button6" method="_on_click"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Button7" to="ScrollContainer/VBoxContainer/Button7" method="_on_click"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Button8" to="ScrollContainer/VBoxContainer/Button8" method="_on_click"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Button9" to="ScrollContainer/VBoxContainer/Button9" method="_on_click"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Button10" to="ScrollContainer/VBoxContainer/Button10" method="_on_click"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Button11" to="ScrollContainer/VBoxContainer/Button11" method="_on_click"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Button12" to="ScrollContainer/VBoxContainer/Button12" method="_on_click"] +[connection signal="pressed" from="ScrollContainer/VBoxContainer/Button13" to="ScrollContainer/VBoxContainer/Button13" method="_on_click"] diff --git a/DungeonShooting_Godot/editor/src/HintPanel.cs b/DungeonShooting_Godot/editor/src/HintPanel.cs index b9c8661..22f2dd0 100644 --- a/DungeonShooting_Godot/editor/src/HintPanel.cs +++ b/DungeonShooting_Godot/editor/src/HintPanel.cs @@ -1,10 +1,10 @@ using Godot; -public class HintPanel : Control +public class HintPanel : Popup { public override void _Ready() { - var pop = GetNode("Popup"); - pop.Popup_(); + CallDeferred("popup"); + //Popup_(); } } \ No newline at end of file