File data/gdscript/scoreboard.gd changed (mode: 100644) (index 79c7aa9..df2ea3d) |
... |
... |
func meta_clicked( meta ): |
40 |
40 |
|
|
41 |
41 |
|
|
42 |
42 |
func draw_scoreboard(): |
func draw_scoreboard(): |
43 |
|
var w = 15 |
|
|
43 |
|
var w = 16 |
44 |
44 |
var bb = [] |
var bb = [] |
45 |
45 |
for line in scoreboard: |
for line in scoreboard: |
46 |
46 |
var color = color_seed( line[ 0 ].hash() ).linear_interpolate( Color( 1, 1, 1), 0.5 ).to_html( false ) |
var color = color_seed( line[ 0 ].hash() ).linear_interpolate( Color( 1, 1, 1), 0.5 ).to_html( false ) |
47 |
47 |
if line[ 0 ] == PlayerName: color = "FFFF00" |
if line[ 0 ] == PlayerName: color = "FFFF00" |
48 |
|
bb.push_back( '[color=#' + color + ']' + line[ 0 ] + '[/color]' + space( w - ( line[ 0 ].length() + str( line[ 1 ] ).length() ) ) + str( line[ 1 ] ) ) |
|
|
48 |
|
bb.push_back( '[color=#' + color + ']' + line[ 0 ] + space( w - ( line[ 0 ].length() + str( line[ 1 ] ).length() ) ) + str( line[ 1 ] ) + '[/color]' ) |
49 |
49 |
set_bbcode( '[code]' + join( bb, '\n' ) + '[/code]' ) |
set_bbcode( '[code]' + join( bb, '\n' ) + '[/code]' ) |
50 |
50 |
|
|
51 |
51 |
|
|
File data/menu/menu.tscn changed (mode: 100644) (index d33380c..c1bae90) |
... |
... |
font/font = ExtResource( 1 ) |
26 |
26 |
|
|
27 |
27 |
[sub_resource type="DynamicFont" id=3] |
[sub_resource type="DynamicFont" id=3] |
28 |
28 |
|
|
29 |
|
font/size = 16 |
|
|
29 |
|
font/size = 15 |
30 |
30 |
font/use_mipmaps = false |
font/use_mipmaps = false |
31 |
31 |
font/use_filter = false |
font/use_filter = false |
32 |
32 |
font/font = ExtResource( 4 ) |
font/font = ExtResource( 4 ) |
|
... |
... |
font/font = ExtResource( 7 ) |
61 |
61 |
|
|
62 |
62 |
[sub_resource type="SampleLibrary" id=8] |
[sub_resource type="SampleLibrary" id=8] |
63 |
63 |
|
|
64 |
|
samples/click = { "db":0.0, "pitch":1.0, "sample":ExtResource( 9 ) } |
|
|
64 |
|
samples/click = { |
|
65 |
|
"db": 0.0, |
|
66 |
|
"pitch": 1.0, |
|
67 |
|
"priority": 0, |
|
68 |
|
"sample": ExtResource( 9 ) |
|
69 |
|
} |
65 |
70 |
|
|
66 |
71 |
[node name="menu" type="Control"] |
[node name="menu" type="Control"] |
67 |
72 |
|
|
|
... |
... |
focus/ignore_mouse = false |
105 |
110 |
focus/stop_mouse = true |
focus/stop_mouse = true |
106 |
111 |
size_flags/horizontal = 2 |
size_flags/horizontal = 2 |
107 |
112 |
size_flags/vertical = 2 |
size_flags/vertical = 2 |
108 |
|
margin/left = 4.0 |
|
109 |
|
margin/top = 40.0 |
|
110 |
|
margin/right = 4.0 |
|
111 |
|
margin/bottom = 4.0 |
|
|
113 |
|
margin/left = 0.0 |
|
114 |
|
margin/top = 36.0 |
|
115 |
|
margin/right = 0.0 |
|
116 |
|
margin/bottom = 0.0 |
112 |
117 |
|
|
113 |
118 |
[node name="button_vr" type="Button" parent="TabContainer/options"] |
[node name="button_vr" type="Button" parent="TabContainer/options"] |
114 |
119 |
|
|
|
... |
... |
text = "quit" |
157 |
162 |
flat = false |
flat = false |
158 |
163 |
script/script = ExtResource( 3 ) |
script/script = ExtResource( 3 ) |
159 |
164 |
|
|
160 |
|
[node name="scoreboard" type="RichTextLabel" parent="TabContainer" groups=[ "scoreboard" ]] |
|
|
165 |
|
[node name="scoreboard" type="RichTextLabel" parent="TabContainer" groups=[ |
|
166 |
|
"scoreboard", |
|
167 |
|
]] |
161 |
168 |
|
|
162 |
169 |
visibility/visible = false |
visibility/visible = false |
163 |
170 |
anchor/right = 1 |
anchor/right = 1 |
|
... |
... |
focus/ignore_mouse = false |
166 |
173 |
focus/stop_mouse = true |
focus/stop_mouse = true |
167 |
174 |
size_flags/horizontal = 2 |
size_flags/horizontal = 2 |
168 |
175 |
size_flags/vertical = 2 |
size_flags/vertical = 2 |
169 |
|
margin/left = 4.0 |
|
170 |
|
margin/top = 40.0 |
|
171 |
|
margin/right = 4.0 |
|
172 |
|
margin/bottom = 4.0 |
|
|
176 |
|
margin/left = 0.0 |
|
177 |
|
margin/top = 36.0 |
|
178 |
|
margin/right = 0.0 |
|
179 |
|
margin/bottom = 0.0 |
173 |
180 |
custom_fonts/mono_font = SubResource( 3 ) |
custom_fonts/mono_font = SubResource( 3 ) |
174 |
181 |
custom_fonts/bold_italics_font = SubResource( 4 ) |
custom_fonts/bold_italics_font = SubResource( 4 ) |
175 |
182 |
custom_fonts/italics_font = SubResource( 5 ) |
custom_fonts/italics_font = SubResource( 5 ) |
|
... |
... |
custom_fonts/normal_font = SubResource( 7 ) |
178 |
185 |
bbcode/enabled = true |
bbcode/enabled = true |
179 |
186 |
bbcode/bbcode = "[center]Coming soon![/center]" |
bbcode/bbcode = "[center]Coming soon![/center]" |
180 |
187 |
visible_characters = -1 |
visible_characters = -1 |
|
188 |
|
percent_visible = 1.0 |
181 |
189 |
script/script = ExtResource( 8 ) |
script/script = ExtResource( 8 ) |
182 |
190 |
ScoreboardFile = "scoreboard.txt" |
ScoreboardFile = "scoreboard.txt" |
183 |
191 |
PlayerName = "me" |
PlayerName = "me" |