forked from GDQuest/learn-gdscript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUIBaseQuiz.tscn
153 lines (134 loc) · 4.76 KB
/
UIBaseQuiz.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
[gd_scene load_steps=10 format=2]
[ext_resource path="res://ui/theme/panel_darker.tres" type="StyleBox" id=1]
[ext_resource path="res://ui/theme/gdscript_app_theme.tres" type="Theme" id=2]
[ext_resource path="res://ui/theme/fonts/font_title_small.tres" type="DynamicFont" id=3]
[ext_resource path="res://ui/UIBaseQuiz.gd" type="Script" id=4]
[ext_resource path="res://ui/theme/fonts/font_text_bold_italics.tres" type="DynamicFont" id=5]
[ext_resource path="res://ui/icons/checkmark_valid.svg" type="Texture" id=6]
[ext_resource path="res://ui/theme/button_outlined_pressed.tres" type="StyleBox" id=7]
[ext_resource path="res://ui/theme/button_outlined_hover.tres" type="StyleBox" id=8]
[ext_resource path="res://ui/theme/button_outlined_normal.tres" type="StyleBox" id=9]
[node name="UIBaseQuiz" type="PanelContainer"]
margin_right = 101.0
margin_bottom = 94.0
rect_min_size = Vector2( 400, 0 )
theme = ExtResource( 2 )
custom_styles/panel = ExtResource( 1 )
script = ExtResource( 4 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Outline" type="PanelContainer" parent="."]
modulate = Color( 1, 1, 1, 0 )
margin_right = 400.0
margin_bottom = 198.0
[node name="MarginContainer" type="MarginContainer" parent="."]
margin_right = 400.0
margin_bottom = 198.0
[node name="ChoiceView" type="VBoxContainer" parent="MarginContainer"]
margin_left = 20.0
margin_top = 20.0
margin_right = 380.0
margin_bottom = 178.0
[node name="QuizHeader" type="HBoxContainer" parent="MarginContainer/ChoiceView"]
margin_right = 360.0
margin_bottom = 26.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Question" type="Label" parent="MarginContainer/ChoiceView/QuizHeader"]
margin_right = 320.0
margin_bottom = 26.0
size_flags_horizontal = 3
custom_colors/font_color = Color( 0.960784, 0.980392, 0.980392, 1 )
custom_fonts/font = ExtResource( 3 )
text = "Question"
autowrap = true
[node name="CompletedBeforeIcon" type="TextureRect" parent="MarginContainer/ChoiceView/QuizHeader"]
modulate = Color( 1, 1, 1, 0.235294 )
margin_left = 336.0
margin_right = 360.0
margin_bottom = 26.0
rect_min_size = Vector2( 24, 24 )
hint_tooltip = "You've already answered this quiz correctly before.
Feel free to try it again to refresh your memory!"
texture = ExtResource( 6 )
expand = true
stretch_mode = 6
[node name="Content" type="RichTextLabel" parent="MarginContainer/ChoiceView"]
margin_top = 42.0
margin_right = 360.0
margin_bottom = 71.0
size_flags_vertical = 3
bbcode_enabled = true
bbcode_text = "Explanation"
text = "Explanation"
fit_content_height = true
[node name="Answers" type="VBoxContainer" parent="MarginContainer/ChoiceView"]
margin_top = 87.0
margin_right = 360.0
margin_bottom = 87.0
[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer/ChoiceView"]
margin_top = 103.0
margin_right = 360.0
margin_bottom = 158.0
alignment = 1
[node name="SubmitButton" type="Button" parent="MarginContainer/ChoiceView/HBoxContainer"]
margin_left = 52.0
margin_right = 172.0
margin_bottom = 55.0
rect_min_size = Vector2( 120, 0 )
custom_styles/hover = ExtResource( 8 )
custom_styles/pressed = ExtResource( 7 )
custom_styles/normal = ExtResource( 9 )
text = "Submit"
[node name="SkipButton" type="Button" parent="MarginContainer/ChoiceView/HBoxContainer"]
margin_left = 188.0
margin_right = 308.0
margin_bottom = 55.0
rect_min_size = Vector2( 120, 0 )
hint_tooltip = "You need to try to answer once before you can skip a quiz."
custom_styles/hover = ExtResource( 8 )
custom_styles/pressed = ExtResource( 7 )
custom_styles/normal = ExtResource( 9 )
disabled = true
text = "Skip"
[node name="HelpMessage" type="Label" parent="MarginContainer/ChoiceView"]
visible = false
margin_top = 208.0
margin_right = 360.0
margin_bottom = 236.0
custom_colors/font_color = Color( 0.14902, 0.776471, 0.968627, 1 )
autowrap = true
[node name="ResultView" type="VBoxContainer" parent="MarginContainer"]
visible = false
margin_left = 20.0
margin_top = 20.0
margin_right = 380.0
margin_bottom = 178.0
[node name="Label" type="Label" parent="MarginContainer/ResultView"]
margin_right = 360.0
margin_bottom = 26.0
custom_colors/font_color = Color( 0.960784, 0.980392, 0.980392, 1 )
custom_fonts/font = ExtResource( 3 )
text = "You're right!"
[node name="CorrectAnswer" type="Label" parent="MarginContainer/ResultView"]
visible = false
margin_top = 42.0
margin_right = 600.0
margin_bottom = 70.0
rect_min_size = Vector2( 600, 0 )
custom_colors/font_color = Color( 0.572549, 0.560784, 0.721569, 1 )
custom_fonts/font = ExtResource( 5 )
text = "Answers here"
autowrap = true
[node name="Explanation" type="RichTextLabel" parent="MarginContainer/ResultView"]
margin_top = 42.0
margin_right = 360.0
margin_bottom = 71.0
size_flags_vertical = 3
bbcode_enabled = true
bbcode_text = "Explanation"
text = "Explanation"
fit_content_height = true
[node name="Tween" type="Tween" parent="."]