Skip to content

Commit 3fca748

Browse files
simone-lungarellaLincoln-Ab
authored andcommitted
feat: updated custom level inspect to handle level import/export
1 parent d1e544b commit 3fca748

23 files changed

+690
-191
lines changed

ROADMAP.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ This document represent a sharable roadmap that contains all main activities and
3030
- [x] Level data persistence;
3131
- [x] Level reset;
3232
- [x] Player levels saving;
33-
- [ ] QRCode generation for local share;
33+
- [x] Code generation for local share;
3434
- [x] UI elements
3535
- Texture blocked tile;
3636
- Resize icon;
@@ -70,3 +70,9 @@ Secondary mechanics are:
7070
| 15 | true | true | true | true | 5 |
7171
| TOTAL | ----- | ------ | ------ | ----- | 29 |
7272

73+
74+
- [ ] Add hint when copied level code;
75+
- [ ] Disable save button when name or code is missing in import window;
76+
- [ ] Update level interface when importing a level;
77+
- [x] Duplicate inspection panel for normal/custom levels;
78+

assets/resources/themes/button.tres

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
[resource]
44
bg_color = Color(0.6, 0.6, 0.6, 0)
5-
border_width_left = 10
6-
border_width_top = 10
7-
border_width_right = 10
8-
border_width_bottom = 10
5+
border_width_left = 5
6+
border_width_top = 5
7+
border_width_right = 5
8+
border_width_bottom = 5
99
border_color = Color(0.25098, 0.184314, 0.105882, 1)
1010
corner_radius_top_left = 20
1111
corner_radius_top_right = 20

assets/resources/themes/button_disabled.tres

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
[resource]
44
content_margin_bottom = 5.0
55
bg_color = Color(0.6, 0.6, 0.6, 0)
6-
border_width_left = 10
7-
border_width_top = 10
8-
border_width_right = 10
9-
border_width_bottom = 10
6+
border_width_left = 5
7+
border_width_top = 5
8+
border_width_right = 5
9+
border_width_bottom = 5
1010
border_color = Color(0.627451, 0.627451, 0.627451, 1)
1111
corner_radius_top_left = 20
1212
corner_radius_top_right = 20

assets/resources/themes/button_hover.tres

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
[resource]
44
bg_color = Color(0.6, 0.6, 0.6, 0)
5-
border_width_left = 10
6-
border_width_top = 10
7-
border_width_right = 10
8-
border_width_bottom = 10
5+
border_width_left = 5
6+
border_width_top = 5
7+
border_width_right = 5
8+
border_width_bottom = 5
99
border_color = Color(0.514949, 0.394965, 0.254651, 1)
1010
corner_radius_top_left = 20
1111
corner_radius_top_right = 20

assets/resources/themes/global_theme.tres

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ Label/colors/font_color = Color(0.25098, 0.184314, 0.105882, 1)
3030
LineEdit/colors/caret_color = Color(0.25098, 0.184314, 0.105882, 1)
3131
LineEdit/colors/font_color = Color(0.25098, 0.184314, 0.105882, 1)
3232
LineEdit/colors/font_placeholder_color = Color(0.25098, 0.184314, 0.105882, 0.517647)
33+
LineEdit/colors/font_uneditable_color = Color(0.25098, 0.184314, 0.105882, 1)
3334
LineEdit/constants/caret_width = 3
3435
LineEdit/styles/normal = ExtResource("2_u1xd1")
36+
LineEdit/styles/read_only = ExtResource("2_u1xd1")
3537
TextEdit/colors/caret_color = Color(0.25098, 0.184314, 0.105882, 1)
3638
TextEdit/colors/font_color = Color(0.25098, 0.184314, 0.105882, 1)
3739
TextEdit/colors/font_placeholder_color = Color(0.25098, 0.184314, 0.105882, 0.517647)

assets/ui/copy_icon.png

1.46 KB
Loading

assets/ui/copy_icon.png.import

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://bj7sxxk1koycs"
6+
path="res://.godot/imported/copy_icon.png-9dd3f39dee9b39609f3ad5f4ded7f1ff.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://assets/ui/copy_icon.png"
14+
dest_files=["res://.godot/imported/copy_icon.png-9dd3f39dee9b39609f3ad5f4ded7f1ff.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1

assets/ui/import_icon.png

1.2 KB
Loading

assets/ui/import_icon.png.import

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[remap]
2+
3+
importer="texture"
4+
type="CompressedTexture2D"
5+
uid="uid://bnivntnrgt0pi"
6+
path="res://.godot/imported/import_icon.png-31b7f343d6fba8844e4a6b3c89547e43.ctex"
7+
metadata={
8+
"vram_texture": false
9+
}
10+
11+
[deps]
12+
13+
source_file="res://assets/ui/import_icon.png"
14+
dest_files=["res://.godot/imported/import_icon.png-31b7f343d6fba8844e4a6b3c89547e43.ctex"]
15+
16+
[params]
17+
18+
compress/mode=0
19+
compress/high_quality=false
20+
compress/lossy_quality=0.7
21+
compress/hdr_compression=1
22+
compress/normal_map=0
23+
compress/channel_pack=0
24+
mipmaps/generate=false
25+
mipmaps/limit=-1
26+
roughness/mode=0
27+
roughness/src_normal=""
28+
process/fix_alpha_border=true
29+
process/premult_alpha=false
30+
process/normal_map_invert_y=false
31+
process/hdr_as_srgb=false
32+
process/hdr_clamp_exposure=false
33+
process/size_limit=0
34+
detect_3d/compress_to=1

assets/ui/paste_icon.png

1.59 KB
Loading

0 commit comments

Comments
 (0)