This repository has been archived by the owner on Jun 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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
6b93bc6
commit 134dbe0
Showing
31 changed files
with
652 additions
and
85 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
[gd_scene load_steps=2 format=2] | ||
|
||
[sub_resource type="GDScript" id=2] | ||
script/source = "extends PopupPanel | ||
|
||
|
||
# Declare member variables here. Examples: | ||
# var a = 2 | ||
# var b = \"text\" | ||
|
||
var current_area = null | ||
# Called when the node enters the scene tree for the first time. | ||
func _ready(): | ||
pass # Replace with function body. | ||
|
||
|
||
# Called every frame. 'delta' is the elapsed time since the previous frame. | ||
func _on_Move1_pressed(): | ||
$RichTextLabel.text = $\"../GridContainer/Move1\".flavor_text | ||
set_position(get_viewport().get_mouse_position()) | ||
popup() | ||
|
||
func _on_Move2_pressed(): | ||
$RichTextLabel.text = $\"../GridContainer/Move2\".flavor_text | ||
set_position(get_viewport().get_mouse_position()) | ||
popup() | ||
|
||
func _on_Move3_pressed(): | ||
$RichTextLabel.text = $\"../GridContainer/Move3\".flavor_text | ||
set_position(get_viewport().get_mouse_position()) | ||
popup() | ||
|
||
func _on_Move4_pressed(): | ||
$RichTextLabel.text = $\"../GridContainer/Move4\".flavor_text | ||
set_position(get_viewport().get_mouse_position()) | ||
popup() | ||
" | ||
|
||
[node name="Popup" type="PopupPanel"] | ||
visible = true | ||
margin_right = 65.0 | ||
margin_bottom = 32.0 | ||
size_flags_vertical = 3 | ||
script = SubResource( 2 ) | ||
|
||
[node name="RichTextLabel" type="RichTextLabel" parent="."] | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
margin_left = 4.0 | ||
margin_top = 4.0 | ||
margin_right = -4.0 | ||
margin_bottom = -4.0 | ||
size_flags_vertical = 3 | ||
fit_content_height = true | ||
scroll_active = false |
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,12 @@ | ||
extends Node | ||
|
||
# Declare member variables here. Examples: | ||
# var a = 2 | ||
# var b = "text" | ||
signal contextMenu(context) | ||
# Called when the node enters the scene tree for the first time. | ||
func _ready(): | ||
pass # Replace with function body. | ||
|
||
func contextMenu(area): | ||
emit_signal("contextMenu",area) |
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
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
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,56 @@ | ||
[gd_scene load_steps=4 format=2] | ||
|
||
[ext_resource path="res://fonts/Essentiarum Regular.ttf" type="DynamicFontData" id=1] | ||
[ext_resource path="res://PanelTheme.tres" type="Theme" id=2] | ||
|
||
[sub_resource type="DynamicFont" id=1] | ||
size = 26 | ||
font_data = ExtResource( 1 ) | ||
|
||
[node name="Panel" type="Panel"] | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
|
||
[node name="GridContainer" type="GridContainer" parent="."] | ||
anchor_right = 1.0 | ||
anchor_bottom = 1.0 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
columns = 2 | ||
|
||
[node name="VBoxContainer" type="VBoxContainer" parent="GridContainer"] | ||
margin_right = 510.0 | ||
margin_bottom = 600.0 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
|
||
[node name="OnlyOneType" type="PanelContainer" parent="GridContainer/VBoxContainer"] | ||
margin_right = 510.0 | ||
margin_bottom = 600.0 | ||
rect_min_size = Vector2( 0, 20 ) | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 | ||
theme = ExtResource( 2 ) | ||
__meta__ = { | ||
"_edit_group_": true, | ||
"_edit_use_anchors_": true | ||
} | ||
|
||
[node name="Label" type="Label" parent="GridContainer/VBoxContainer/OnlyOneType"] | ||
margin_right = 510.0 | ||
margin_bottom = 600.0 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 7 | ||
custom_fonts/font = SubResource( 1 ) | ||
text = "g" | ||
align = 1 | ||
valign = 2 | ||
|
||
[node name="VBoxContainer2" type="VBoxContainer" parent="GridContainer"] | ||
margin_left = 514.0 | ||
margin_right = 1024.0 | ||
margin_bottom = 600.0 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 3 |
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
Oops, something went wrong.