upload
parent
c37f565c5f
commit
66c5e3f291
|
@ -0,0 +1,3 @@
|
||||||
|
source_md5="0b5770fb9abb5e78ea6d7b0cbd6b0976"
|
||||||
|
dest_md5="3535bf3fa47ebf26e56e5bab7989f22b"
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,3 @@
|
||||||
|
source_md5="47313fa4c47a9963fddd764e1ec6e4a8"
|
||||||
|
dest_md5="2ded9e7f9060e2b530aab678b135fc5b"
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,3 @@
|
||||||
|
source_md5="512782ff8892bb35dab11cbd19942d4c"
|
||||||
|
dest_md5="58afacd3cf359ddc79074359e082b5ab"
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,3 @@
|
||||||
|
source_md5="bad161405724e1c36ce3ac4311ca92e6"
|
||||||
|
dest_md5="6c2faec7178c27d5b7372870eaff55ee"
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,3 @@
|
||||||
|
source_md5="8e1e3c60782538c65ca7840f0aa6edda"
|
||||||
|
dest_md5="57c5652cb32aff9547a71b73956eece5"
|
||||||
|
|
Binary file not shown.
|
@ -0,0 +1,7 @@
|
||||||
|
[gd_resource type="Environment" load_steps=2 format=2]
|
||||||
|
|
||||||
|
[sub_resource type="ProceduralSky" id=1]
|
||||||
|
|
||||||
|
[resource]
|
||||||
|
background_mode = 2
|
||||||
|
background_sky = SubResource( 1 )
|
|
@ -0,0 +1,24 @@
|
||||||
|
[preset.0]
|
||||||
|
|
||||||
|
name="Linux/X11"
|
||||||
|
platform="Linux/X11"
|
||||||
|
runnable=true
|
||||||
|
custom_features=""
|
||||||
|
export_filter="all_resources"
|
||||||
|
include_filter=""
|
||||||
|
exclude_filter=""
|
||||||
|
export_path="./power.x86_64"
|
||||||
|
script_export_mode=1
|
||||||
|
script_encryption_key=""
|
||||||
|
|
||||||
|
[preset.0.options]
|
||||||
|
|
||||||
|
custom_template/debug=""
|
||||||
|
custom_template/release=""
|
||||||
|
binary_format/64_bits=true
|
||||||
|
binary_format/embed_pck=true
|
||||||
|
texture_format/bptc=false
|
||||||
|
texture_format/s3tc=true
|
||||||
|
texture_format/etc=false
|
||||||
|
texture_format/etc2=false
|
||||||
|
texture_format/no_bptc_fallbacks=true
|
Binary file not shown.
|
@ -0,0 +1,41 @@
|
||||||
|
; Engine configuration file.
|
||||||
|
; It's best edited using the editor UI and not directly,
|
||||||
|
; since the parameters that go here are not all obvious.
|
||||||
|
;
|
||||||
|
; Format:
|
||||||
|
; [section] ; section goes between []
|
||||||
|
; param=value ; assign values to parameters
|
||||||
|
|
||||||
|
config_version=4
|
||||||
|
|
||||||
|
[application]
|
||||||
|
|
||||||
|
config/name="power"
|
||||||
|
run/main_scene="res://src/main.tscn"
|
||||||
|
boot_splash/image="res://textures/white.png"
|
||||||
|
boot_splash/fullsize=false
|
||||||
|
boot_splash/use_filter=false
|
||||||
|
config/icon="res://textures/shutdown.png"
|
||||||
|
|
||||||
|
[display]
|
||||||
|
|
||||||
|
window/size/width=512
|
||||||
|
window/size/height=300
|
||||||
|
window/size/borderless=true
|
||||||
|
window/stretch/mode="2d"
|
||||||
|
window/stretch/aspect="keep"
|
||||||
|
|
||||||
|
[input_devices]
|
||||||
|
|
||||||
|
pointing/emulate_touch_from_mouse=true
|
||||||
|
|
||||||
|
[physics]
|
||||||
|
|
||||||
|
common/enable_pause_aware_picking=true
|
||||||
|
|
||||||
|
[rendering]
|
||||||
|
|
||||||
|
quality/driver/driver_name="GLES2"
|
||||||
|
vram_compression/import_etc=true
|
||||||
|
vram_compression/import_etc2=false
|
||||||
|
environment/default_environment="res://default_env.tres"
|
|
@ -0,0 +1,29 @@
|
||||||
|
extends Node2D
|
||||||
|
|
||||||
|
|
||||||
|
# Declare member variables here. Examples:
|
||||||
|
# var a = 2
|
||||||
|
# var b = "text"
|
||||||
|
|
||||||
|
|
||||||
|
# Called when the node enters the scene tree for the first time.
|
||||||
|
func _ready():
|
||||||
|
OS.center_window()
|
||||||
|
|
||||||
|
|
||||||
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||||
|
#func _process(delta):
|
||||||
|
# pass
|
||||||
|
|
||||||
|
|
||||||
|
func _on_reboot_pressed():
|
||||||
|
OS.execute("xterm", ["-e", "sudo reboot"])
|
||||||
|
|
||||||
|
|
||||||
|
func _on_shutdown_pressed():
|
||||||
|
OS.execute("xterm", ["-e", "sudo poweroff"])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
func _on_back_pressed():
|
||||||
|
get_tree().quit()
|
|
@ -0,0 +1,35 @@
|
||||||
|
[gd_scene load_steps=6 format=2]
|
||||||
|
|
||||||
|
[ext_resource path="res://textures/shutdown.png" type="Texture" id=1]
|
||||||
|
[ext_resource path="res://textures/reboot.png" type="Texture" id=2]
|
||||||
|
[ext_resource path="res://src/main.gd" type="Script" id=3]
|
||||||
|
[ext_resource path="res://textures/back.png" type="Texture" id=4]
|
||||||
|
[ext_resource path="res://textures/white.png" type="Texture" id=5]
|
||||||
|
|
||||||
|
[node name="main" type="Node2D"]
|
||||||
|
position = Vector2( 0, -80 )
|
||||||
|
script = ExtResource( 3 )
|
||||||
|
|
||||||
|
[node name="white" type="Sprite" parent="."]
|
||||||
|
position = Vector2( 256.179, 249.812 )
|
||||||
|
scale = Vector2( 1.11771, 1.11771 )
|
||||||
|
texture = ExtResource( 5 )
|
||||||
|
|
||||||
|
[node name="reboot" type="TouchScreenButton" parent="."]
|
||||||
|
position = Vector2( 96, 155 )
|
||||||
|
scale = Vector2( 0.3, 0.3 )
|
||||||
|
normal = ExtResource( 2 )
|
||||||
|
|
||||||
|
[node name="shutdown" type="TouchScreenButton" parent="."]
|
||||||
|
position = Vector2( 264, 155 )
|
||||||
|
scale = Vector2( 0.3, 0.3 )
|
||||||
|
normal = ExtResource( 1 )
|
||||||
|
|
||||||
|
[node name="back" type="TouchScreenButton" parent="."]
|
||||||
|
position = Vector2( 0, 80 )
|
||||||
|
scale = Vector2( 0.125, 0.125 )
|
||||||
|
normal = ExtResource( 4 )
|
||||||
|
|
||||||
|
[connection signal="pressed" from="reboot" to="." method="_on_reboot_pressed"]
|
||||||
|
[connection signal="pressed" from="shutdown" to="." method="_on_shutdown_pressed"]
|
||||||
|
[connection signal="pressed" from="back" to="." method="_on_back_pressed"]
|
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/back.png-6859234932b2cac5f7ac5e0f098d670c.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://textures/back.png"
|
||||||
|
dest_files=[ "res://.import/back.png-6859234932b2cac5f7ac5e0f098d670c.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/reboot.png-31008e50c99ebc231cbdaa6d5411f4de.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://textures/reboot.png"
|
||||||
|
dest_files=[ "res://.import/reboot.png-31008e50c99ebc231cbdaa6d5411f4de.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/shutdown.png-690dd717a53c189b5a4ffc155cfac77f.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://textures/shutdown.png"
|
||||||
|
dest_files=[ "res://.import/shutdown.png-690dd717a53c189b5a4ffc155cfac77f.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
Binary file not shown.
After Width: | Height: | Size: 156 KiB |
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="StreamTexture"
|
||||||
|
path="res://.import/white.png-7629ecee470266ac006ffe7738353349.stex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://textures/white.png"
|
||||||
|
dest_files=[ "res://.import/white.png-7629ecee470266ac006ffe7738353349.stex" ]
|
||||||
|
|
||||||
|
[params]
|
||||||
|
|
||||||
|
compress/mode=0
|
||||||
|
compress/lossy_quality=0.7
|
||||||
|
compress/hdr_mode=0
|
||||||
|
compress/bptc_ldr=0
|
||||||
|
compress/normal_map=0
|
||||||
|
flags/repeat=0
|
||||||
|
flags/filter=true
|
||||||
|
flags/mipmaps=false
|
||||||
|
flags/anisotropic=false
|
||||||
|
flags/srgb=2
|
||||||
|
process/fix_alpha_border=true
|
||||||
|
process/premult_alpha=false
|
||||||
|
process/HDR_as_SRGB=false
|
||||||
|
process/invert_color=false
|
||||||
|
stream=false
|
||||||
|
size_limit=0
|
||||||
|
detect_3d=true
|
||||||
|
svg/scale=1.0
|
Loading…
Reference in New Issue