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
/
Context.tscn
57 lines (45 loc) · 1.43 KB
/
Context.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
[gd_scene load_steps=3 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()
"
[sub_resource type="RichTextEffect" id=3]
[node name="Popup" type="PopupPanel"]
margin_right = 65.0
margin_bottom = 32.0
size_flags_vertical = 15
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
custom_effects = [ SubResource( 3 ) ]