Skip to content

Commit 773adb2

Browse files
committed
more button formatting
1 parent 9689c35 commit 773adb2

File tree

4 files changed

+108
-109
lines changed

4 files changed

+108
-109
lines changed

Buttonthemes.tres

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,13 @@ corner_radius_bottom_right = 3
1515
corner_radius_bottom_left = 3
1616
corner_detail = 5
1717

18-
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_u1l0l"]
19-
content_margin_left = 4.0
20-
content_margin_top = 4.0
21-
content_margin_right = 4.0
22-
content_margin_bottom = 4.0
23-
bg_color = Color(1, 1, 1, 0.75)
24-
draw_center = false
25-
border_width_left = 2
26-
border_width_top = 2
27-
border_width_right = 2
28-
border_width_bottom = 2
29-
corner_radius_top_left = 3
30-
corner_radius_top_right = 3
31-
corner_radius_bottom_right = 3
32-
corner_radius_bottom_left = 3
33-
corner_detail = 5
34-
expand_margin_left = 2.0
35-
expand_margin_top = 2.0
36-
expand_margin_right = 2.0
37-
expand_margin_bottom = 2.0
18+
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_vnbp1"]
19+
bg_color = Color(0, 0, 0, 1)
20+
border_width_left = 40
21+
border_width_top = 40
22+
border_width_right = 40
23+
border_width_bottom = 40
24+
border_color = Color(0, 0, 0, 1)
3825

3926
[resource]
4027
Button/colors/font_color = Color(0.875, 0.875, 0.875, 1)
@@ -56,7 +43,7 @@ Button/constants/outline_size = 0
5643
Button/font_sizes/font_size = 16
5744
Button/fonts/font = ExtResource("1_epcs1")
5845
Button/styles/disabled = SubResource("StyleBoxFlat_0wdyl")
59-
Button/styles/focus = SubResource("StyleBoxFlat_u1l0l")
46+
Button/styles/focus = SubResource("StyleBoxFlat_vnbp1")
6047
Button/styles/hover = ExtResource("2_ix8je")
6148
Button/styles/normal = ExtResource("2_ix8je")
6249
Button/styles/pressed = ExtResource("2_ix8je")

box.tres

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[gd_resource type="StyleBoxFlat" format=3 uid="uid://belaybtn605q7"]
22

33
[resource]
4-
bg_color = Color(0.227451, 0.266667, 0.4, 1)
4+
bg_color = Color(0.250167, 0.292162, 0.434647, 1)
55
border_width_left = 40
66
border_width_top = 40
77
border_width_right = 40

box2.tres

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[gd_resource type="StyleBoxFlat" format=3 uid="uid://c47e603ajv5n5"]
2+
3+
[resource]
4+
bg_color = Color(0.227451, 0.266667, 0.4, 1)
5+
border_width_left = 2
6+
border_width_top = 2
7+
border_width_right = 2
8+
border_width_bottom = 2
9+
border_color = Color(0, 0, 0, 1)

main scene.tscn

Lines changed: 90 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
[ext_resource type="Script" path="res://Camera2D.gd" id="4_e6nis"]
1212
[ext_resource type="Script" path="res://TimePowerLabel.gd" id="10_5bt7y"]
1313
[ext_resource type="Texture2D" uid="uid://dihjnfo6fb26n" path="res://uistuff/powerNew.png" id="12_dd6jf"]
14+
[ext_resource type="StyleBox" uid="uid://c47e603ajv5n5" path="res://box2.tres" id="12_mqr45"]
1415
[ext_resource type="Texture2D" uid="uid://brk4t453wq7ej" path="res://uistuff/woodNew.png" id="13_5cnpj"]
1516
[ext_resource type="Texture2D" uid="uid://c5m6qvhxx8pmq" path="res://uistuff/waterNew.png" id="14_63uny"]
1617
[ext_resource type="Theme" uid="uid://bpvpg7fswoucc" path="res://Buttonthemes.tres" id="15_07nre"]
@@ -27,14 +28,6 @@ glow_blend_mode = 1
2728
glow_hdr_threshold = 0.79
2829
glow_hdr_luminance_cap = 249.14
2930

30-
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_kpdka"]
31-
bg_color = Color(0.227451, 0.266667, 0.4, 1)
32-
border_width_left = 2
33-
border_width_top = 2
34-
border_width_right = 2
35-
border_width_bottom = 2
36-
border_color = Color(0, 0, 0, 1)
37-
3831
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_vh38i"]
3932
bg_color = Color(0, 0, 0, 1)
4033

@@ -105,7 +98,7 @@ offset_left = 167.0
10598
offset_top = -130.0
10699
offset_right = 234.0
107100
offset_bottom = -17.0
108-
theme_override_styles/panel = SubResource("StyleBoxFlat_kpdka")
101+
theme_override_styles/panel = ExtResource("12_mqr45")
109102

110103
[node name="Powerui" type="Sprite2D" parent="Camera2D"]
111104
texture_filter = 1
@@ -269,133 +262,143 @@ show_percentage = false
269262

270263
[node name="oilpumppanel" type="Panel" parent="Camera2D"]
271264
visible = false
272-
offset_left = -199.0
273-
offset_top = -108.0
274-
offset_right = -12.0
275-
offset_bottom = 13.0
265+
offset_left = -234.0
266+
offset_top = -3.0
267+
offset_right = -47.0
268+
offset_bottom = 60.0
269+
theme_override_styles/panel = ExtResource("12_mqr45")
276270

277271
[node name="oiltext" type="Label" parent="Camera2D"]
278272
visible = false
279-
offset_left = -194.0
280-
offset_top = -104.0
281-
offset_right = 3173.0
282-
offset_bottom = 2136.0
273+
offset_left = -228.0
274+
offset_right = 3332.0
275+
offset_bottom = 1140.0
283276
scale = Vector2(0.05, 0.05)
284-
theme_override_font_sizes/font_size = 300
277+
theme_override_fonts/font = ExtResource("17_dsinh")
278+
theme_override_font_sizes/font_size = 200
285279
text = "Oil pump:
286-
Costs 5 bits
287-
Generates 1 oil per sec
288-
Produces no emmisons
280+
-Costs 5 bits
281+
-Generates 1 oil per sec
282+
-Produces no emmisons
289283
"
290284

291285
[node name="recyclepanel" type="Panel" parent="Camera2D"]
292286
visible = false
293-
offset_left = -205.0
294-
offset_top = -120.0
295-
offset_right = -11.0
296-
offset_bottom = 13.0
287+
offset_left = -234.0
288+
offset_top = -17.0
289+
offset_right = -40.0
290+
offset_bottom = 60.0
291+
theme_override_styles/panel = ExtResource("12_mqr45")
297292

298293
[node name="recycletext" type="Label" parent="Camera2D"]
299294
visible = false
300-
offset_left = -196.0
301-
offset_top = -111.0
302-
offset_right = 3290.0
303-
offset_bottom = 1946.0
295+
offset_left = -227.0
296+
offset_top = -10.0
297+
offset_right = 3259.0
298+
offset_bottom = 2047.0
304299
scale = Vector2(0.05, 0.05)
305-
theme_override_font_sizes/font_size = 300
300+
theme_override_fonts/font = ExtResource("17_dsinh")
301+
theme_override_font_sizes/font_size = 200
306302
text = "Recycle Plant
307-
Costs 10 bits
308-
Uses 4 wood per second
309-
Generates 1 power ps
310-
No Carbon generation
311-
"
303+
-Costs 10 bits
304+
-Uses 4 wood per second
305+
-Generates 1 power ps
306+
-No Carbon generation"
312307

313308
[node name="powerplantpanel" type="Panel" parent="Camera2D"]
314309
visible = false
315-
offset_left = -204.0
316-
offset_top = -130.0
317-
offset_right = -10.0
318-
offset_bottom = 3.0
310+
offset_left = -234.0
311+
offset_top = -17.0
312+
offset_right = -53.0
313+
offset_bottom = 60.0
314+
theme_override_styles/panel = ExtResource("12_mqr45")
319315

320316
[node name="powerplanttext" type="Label" parent="Camera2D"]
321317
visible = false
322-
offset_left = -194.0
323-
offset_top = -118.0
324-
offset_right = 3262.0
325-
offset_bottom = 1939.0
318+
offset_left = -226.0
319+
offset_top = -10.0
320+
offset_right = 3230.0
321+
offset_bottom = 2047.0
326322
scale = Vector2(0.05, 0.05)
327-
theme_override_font_sizes/font_size = 300
323+
theme_override_fonts/font = ExtResource("17_dsinh")
324+
theme_override_font_sizes/font_size = 200
328325
text = "Power Plant
329-
Costs 5 bits
330-
Uses 2 coal or oil
331-
Generates 1 power ps
332-
High Carbon generation
326+
-Costs 5 bits
327+
-Uses 2 coal or oil
328+
-Generates 1 power ps
329+
-High Carbon generation
333330
"
334331

335332
[node name="waterplantpanel" type="Panel" parent="Camera2D"]
336333
visible = false
337-
offset_left = -203.0
338-
offset_top = -129.0
339-
offset_right = -9.0
340-
offset_bottom = 4.0
334+
offset_left = -234.0
335+
offset_top = -18.0
336+
offset_right = -57.0
337+
offset_bottom = 60.0
338+
theme_override_styles/panel = ExtResource("12_mqr45")
341339

342340
[node name="waterplanttext" type="Label" parent="Camera2D"]
343341
visible = false
344-
offset_left = -191.0
345-
offset_top = -116.0
346-
offset_right = 3190.0
347-
offset_bottom = 1941.0
342+
offset_left = -226.0
343+
offset_top = -11.0
344+
offset_right = 3155.0
345+
offset_bottom = 2046.0
348346
scale = Vector2(0.05, 0.05)
349-
theme_override_font_sizes/font_size = 300
347+
theme_override_fonts/font = ExtResource("17_dsinh")
348+
theme_override_font_sizes/font_size = 200
350349
text = "Water Plant
351-
Costs 5 bits
352-
Uses 2 power per sec
353-
Generates 1 water ps
354-
Low Carbon generation
350+
-Costs 5 bits
351+
-Uses 2 power per sec
352+
-Generates 1 water ps
353+
-Low Carbon generation
355354
"
356355

357356
[node name="coalminepanel" type="Panel" parent="Camera2D"]
358357
visible = false
359-
offset_left = -204.0
360-
offset_top = -128.0
361-
offset_right = -10.0
362-
offset_bottom = 5.0
358+
offset_left = -234.0
359+
offset_top = -17.0
360+
offset_right = -60.0
361+
offset_bottom = 60.0
362+
theme_override_styles/panel = ExtResource("12_mqr45")
363363

364364
[node name="coalminetext" type="Label" parent="Camera2D"]
365365
visible = false
366-
offset_left = -193.0
367-
offset_top = -117.0
368-
offset_right = 3234.0
369-
offset_bottom = 1940.0
366+
offset_left = -227.0
367+
offset_top = -11.0
368+
offset_right = 3200.0
369+
offset_bottom = 2046.0
370370
scale = Vector2(0.05, 0.05)
371-
theme_override_font_sizes/font_size = 300
371+
theme_override_fonts/font = ExtResource("17_dsinh")
372+
theme_override_font_sizes/font_size = 200
372373
text = "Coal Mine
373-
Costs 5 bits
374-
Uses 2 power per sec
375-
Generates 1 coal ps
376-
Med Carbon generation
374+
-Costs 5 bits
375+
-Uses 2 power per sec
376+
-Generates 1 coal ps
377+
-Med Carbon generation
377378
"
378379

379380
[node name="bankpanel" type="Panel" parent="Camera2D"]
380381
visible = false
381-
offset_left = -205.0
382-
offset_top = -124.0
383-
offset_right = -11.0
384-
offset_bottom = 9.0
382+
offset_left = -234.0
383+
offset_top = -19.0
384+
offset_right = -52.0
385+
offset_bottom = 60.0
386+
theme_override_styles/panel = ExtResource("12_mqr45")
385387

386388
[node name="banktext" type="Label" parent="Camera2D"]
387389
visible = false
388-
offset_left = -193.0
389-
offset_top = -111.0
390-
offset_right = 3188.0
391-
offset_bottom = 1946.0
390+
offset_left = -225.0
391+
offset_top = -12.0
392+
offset_right = 3156.0
393+
offset_bottom = 2045.0
392394
scale = Vector2(0.05, 0.05)
393-
theme_override_font_sizes/font_size = 300
395+
theme_override_fonts/font = ExtResource("17_dsinh")
396+
theme_override_font_sizes/font_size = 200
394397
text = "Bank
395-
Costs 5 bits
396-
Uses 5 power ps
397-
Generates 1 bit ps
398-
Low Carbon generation
398+
-Costs 5 bits
399+
-Uses 5 power ps
400+
-Generates 1 bit ps
401+
-Low Carbon generation
399402
"
400403

401404
[node name="banktext2" type="Label" parent="Camera2D"]

0 commit comments

Comments
 (0)