Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .godot/global_script_class_cache.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
list=Array[Dictionary]([{
"base": &"Button",
"base": &"PanelContainer",
"class": &"EmailButton",
"icon": "",
"language": &"GDScript",
"path": "res://ui/apps/email/email_button.gd"
"path": "res://ui/email/email_button.gd"
}, {
"base": &"Resource",
"class": &"EmailData",
"icon": "",
"language": &"GDScript",
"path": "res://ui/apps/email/email_data.gd"
"path": "res://ui/email/email_data.gd"
}, {
"base": &"RefCounted",
"class": &"LoadSaveManager",
"icon": "",
"language": &"GDScript",
"path": "res://ui/settings/load_save_manager.gd"
}])
10 changes: 10 additions & 0 deletions assets/shaders/tile.gdshader
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
shader_type canvas_item;

uniform sampler2D tileTex : repeat_enable;
uniform vec2 tileAmount;

void fragment() {
vec2 tiledUV = UV * tileAmount;
vec4 texColor = texture(tileTex, tiledUV);
COLOR = texColor;
}
Binary file added assets/sprites/breaker_lever_off.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions assets/sprites/breaker_lever_off.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://b2bhv1scrm8sw"
path="res://.godot/imported/breaker_lever_off.png-fe53c0a4cf35666be784dacb89bbdc94.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/sprites/breaker_lever_off.png"
dest_files=["res://.godot/imported/breaker_lever_off.png-fe53c0a4cf35666be784dacb89bbdc94.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file added assets/sprites/breaker_lever_on.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions assets/sprites/breaker_lever_on.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://bteixrribbqh6"
path="res://.godot/imported/breaker_lever_on.png-54e2ffe432df50db93103c328eef231a.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/sprites/breaker_lever_on.png"
dest_files=["res://.godot/imported/breaker_lever_on.png-54e2ffe432df50db93103c328eef231a.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file added assets/sprites/breakerbox_cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions assets/sprites/breakerbox_cover.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://b0yxd3fv2m50g"
path="res://.godot/imported/breakerbox_cover.png-01f649b646659ea3d9e3af14d96a52db.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/sprites/breakerbox_cover.png"
dest_files=["res://.godot/imported/breakerbox_cover.png-01f649b646659ea3d9e3af14d96a52db.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file added assets/sprites/close.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions assets/sprites/close.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://chmox6wvyvbr3"
path="res://.godot/imported/close.png-20f6b421c4cd96d703c750b25e386bdb.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/sprites/close.png"
dest_files=["res://.godot/imported/close.png-20f6b421c4cd96d703c750b25e386bdb.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file added assets/sprites/minawan_e_shock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions assets/sprites/minawan_e_shock.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://b8g3pcnofbice"
path="res://.godot/imported/minawan_e_shock.png-aebb6ef91ab9978693eda49d353e9600.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/sprites/minawan_e_shock.png"
dest_files=["res://.godot/imported/minawan_e_shock.png-aebb6ef91ab9978693eda49d353e9600.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
Binary file added assets/sprites/wanning_sticker.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions assets/sprites/wanning_sticker.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://bj7o0p1hhy48h"
path="res://.godot/imported/wanning_sticker.png-7b84faa50b0f3e12a150327a9c40eab7.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/sprites/wanning_sticker.png"
dest_files=["res://.godot/imported/wanning_sticker.png-7b84faa50b0f3e12a150327a9c40eab7.ctex"]

[params]

compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1
8 changes: 0 additions & 8 deletions ui/apps/email/email_button.gd

This file was deleted.

333 changes: 0 additions & 333 deletions ui/apps/email/email_button.tscn

This file was deleted.

114 changes: 114 additions & 0 deletions ui/breakerbox/breaker.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
[gd_scene load_steps=8 format=3 uid="uid://b1gd5hqggddos"]

[ext_resource type="FontFile" uid="uid://b6x1pbobajmin" path="res://assets/fonts/vividly_extended.ttf" id="1_68jhn"]
[ext_resource type="Texture2D" uid="uid://b2bhv1scrm8sw" path="res://assets/sprites/breaker_lever_off.png" id="1_o3b3n"]
[ext_resource type="Texture2D" uid="uid://bteixrribbqh6" path="res://assets/sprites/breaker_lever_on.png" id="2_ke6nk"]

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_ikd0s"]
bg_color = Color(0.939683, 0.849426, 0.893311, 1)

[sub_resource type="StyleBoxLine" id="StyleBoxLine_hfsed"]
color = Color(0, 0, 0, 0.196078)
vertical = true

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_mvb46"]
bg_color = Color(0.912168, 0.779375, 0.844035, 1)
border_width_left = 5
border_width_top = 5
border_width_right = 5
border_width_bottom = 5
border_color = Color(0.579178, 0.330809, 0.46538, 0.0196078)
border_blend = true
corner_radius_top_left = 5
corner_radius_top_right = 5
corner_radius_bottom_right = 5
corner_radius_bottom_left = 5

[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pjvw8"]
draw_center = false
border_width_left = 10
border_width_top = 10
border_width_right = 10
border_width_bottom = 10
border_color = Color(0.329412, 0.168627, 0.258824, 0.294118)
border_blend = true

[node name="Breaker" type="Control"]
layout_mode = 3
anchors_preset = 13
anchor_left = 0.5
anchor_right = 0.5
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
metadata/_edit_use_anchors_ = true

[node name="PanelContainer" type="PanelContainer" parent="."]
custom_minimum_size = Vector2(175, 0)
layout_mode = 1
anchors_preset = 13
anchor_left = 0.5
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -57.0
offset_right = 57.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_ikd0s")

[node name="MarginContainer" type="MarginContainer" parent="PanelContainer"]
layout_mode = 2
theme_override_constants/margin_top = 50

[node name="ColorRect" type="ColorRect" parent="PanelContainer/MarginContainer"]
custom_minimum_size = Vector2(0, 50)
layout_mode = 2
size_flags_vertical = 0
color = Color(0.587867, 0.480719, 0.874073, 1)

[node name="MarginContainer" type="MarginContainer" parent="PanelContainer/MarginContainer/ColorRect"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5

[node name="Label" type="Label" parent="PanelContainer/MarginContainer/ColorRect/MarginContainer"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 0
theme_override_fonts/font = ExtResource("1_68jhn")
text = "WanWan Tec"

[node name="VSeparator" type="VSeparator" parent="PanelContainer"]
layout_mode = 2
theme_override_styles/separator = SubResource("StyleBoxLine_hfsed")

[node name="MarginContainer2" type="MarginContainer" parent="PanelContainer"]
layout_mode = 2
theme_override_constants/margin_left = 30
theme_override_constants/margin_right = 30

[node name="Panel" type="Panel" parent="PanelContainer/MarginContainer2"]
show_behind_parent = true
custom_minimum_size = Vector2(0, 113)
layout_mode = 2
size_flags_vertical = 4
theme_override_styles/panel = SubResource("StyleBoxFlat_mvb46")

[node name="TextureButton" type="TextureButton" parent="PanelContainer/MarginContainer2"]
layout_mode = 2
toggle_mode = true
texture_normal = ExtResource("1_o3b3n")
texture_pressed = ExtResource("2_ke6nk")
stretch_mode = 5

[node name="Panel" type="Panel" parent="PanelContainer"]
layout_mode = 2
mouse_filter = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_pjvw8")
Loading