add clippy (#3)
This commit is contained in:
parent
606c1714c6
commit
aacf95aab9
11 changed files with 247 additions and 0 deletions
BIN
UI/LDPA_base.xcf
Normal file
BIN
UI/LDPA_base.xcf
Normal file
Binary file not shown.
|
@ -21,6 +21,7 @@ window/size/viewport_width=1280
|
|||
window/size/viewport_height=720
|
||||
window/subwindows/embed_subwindows=false
|
||||
window/stretch/mode="canvas_items"
|
||||
window/per_pixel_transparency/allowed=true
|
||||
|
||||
[input]
|
||||
|
||||
|
@ -34,3 +35,4 @@ G={
|
|||
|
||||
renderer/rendering_method="gl_compatibility"
|
||||
renderer/rendering_method.mobile="gl_compatibility"
|
||||
viewport/transparent_background=true
|
||||
|
|
BIN
scenes/LegallyDistinctPaperclipAssistant/LDPA_angy.png
Normal file
BIN
scenes/LegallyDistinctPaperclipAssistant/LDPA_angy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://b1t8f4nb5aahv"
|
||||
path="res://.godot/imported/LDPA_angy.png-c258f1b99cb15873df1104046cf934d8.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/LegallyDistinctPaperclipAssistant/LDPA_angy.png"
|
||||
dest_files=["res://.godot/imported/LDPA_angy.png-c258f1b99cb15873df1104046cf934d8.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
|
BIN
scenes/LegallyDistinctPaperclipAssistant/LDPA_hapi.png
Normal file
BIN
scenes/LegallyDistinctPaperclipAssistant/LDPA_hapi.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bdwx62dyof0fb"
|
||||
path="res://.godot/imported/LDPA_hapi.png-d80bfa5f344e7ec540376630d03e2eae.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/LegallyDistinctPaperclipAssistant/LDPA_hapi.png"
|
||||
dest_files=["res://.godot/imported/LDPA_hapi.png-d80bfa5f344e7ec540376630d03e2eae.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
|
BIN
scenes/LegallyDistinctPaperclipAssistant/LDPA_normal.png
Normal file
BIN
scenes/LegallyDistinctPaperclipAssistant/LDPA_normal.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bv0ecc0g1i45s"
|
||||
path="res://.godot/imported/LDPA_normal.png-9d45aca70a23009053b14bf55b2b995f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://scenes/LegallyDistinctPaperclipAssistant/LDPA_normal.png"
|
||||
dest_files=["res://.godot/imported/LDPA_normal.png-9d45aca70a23009053b14bf55b2b995f.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
|
19
scenes/LegallyDistinctPaperclipAssistant/area_2d.gd
Normal file
19
scenes/LegallyDistinctPaperclipAssistant/area_2d.gd
Normal file
|
@ -0,0 +1,19 @@
|
|||
extends Area2D
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta: float) -> void:
|
||||
pass
|
||||
|
||||
|
||||
func _on_input_event(viewport: Node, event: InputEvent, shape_idx: int) -> void:
|
||||
print("hi")
|
||||
|
||||
|
||||
func _on_mouse_entered() -> void:
|
||||
print('test')
|
51
scenes/LegallyDistinctPaperclipAssistant/paperclip.gd
Normal file
51
scenes/LegallyDistinctPaperclipAssistant/paperclip.gd
Normal file
|
@ -0,0 +1,51 @@
|
|||
extends Window
|
||||
|
||||
const START_TEXT = "Hi, I'm your legally\ndistinct paperclip\nassistant,\nClippette..."
|
||||
const TOUCHED = "Don't touch me!"
|
||||
|
||||
var angy: Sprite2D
|
||||
var normal: Sprite2D
|
||||
var hapi: Sprite2D
|
||||
var label: Label
|
||||
var timer: Timer
|
||||
var panel: Panel
|
||||
|
||||
var current_text = START_TEXT
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
angy = $Angy
|
||||
hapi = $Hapi
|
||||
normal = $Normal
|
||||
label = $Label
|
||||
timer = $Timer
|
||||
panel = $Panel
|
||||
|
||||
normal.visible = true;
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(_delta: float) -> void:
|
||||
if current_text == "":
|
||||
label.visible = false
|
||||
panel.visible = false
|
||||
else:
|
||||
label.text = "" # I hate this, but it does fix a bug
|
||||
label.text = current_text
|
||||
label.visible = true
|
||||
panel.visible = true
|
||||
|
||||
|
||||
func _on_texture_button_button_up() -> void:
|
||||
normal.visible = false
|
||||
hapi.visible = false
|
||||
angy.visible = true
|
||||
current_text = TOUCHED
|
||||
timer.start()
|
||||
|
||||
func _on_timer_timeout() -> void:
|
||||
normal.visible = true
|
||||
hapi.visible = false
|
||||
angy.visible = false
|
||||
current_text = ""
|
||||
timer.stop()
|
73
scenes/LegallyDistinctPaperclipAssistant/window.tscn
Normal file
73
scenes/LegallyDistinctPaperclipAssistant/window.tscn
Normal file
|
@ -0,0 +1,73 @@
|
|||
[gd_scene load_steps=7 format=3 uid="uid://bbg7lnak6kup7"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://b1t8f4nb5aahv" path="res://scenes/LegallyDistinctPaperclipAssistant/LDPA_angy.png" id="1_bqw21"]
|
||||
[ext_resource type="Script" path="res://scenes/LegallyDistinctPaperclipAssistant/paperclip.gd" id="1_mbnc6"]
|
||||
[ext_resource type="Texture2D" uid="uid://bdwx62dyof0fb" path="res://scenes/LegallyDistinctPaperclipAssistant/LDPA_hapi.png" id="2_stani"]
|
||||
[ext_resource type="Texture2D" uid="uid://bv0ecc0g1i45s" path="res://scenes/LegallyDistinctPaperclipAssistant/LDPA_normal.png" id="3_dw2nh"]
|
||||
[ext_resource type="Theme" uid="uid://ve18rbkeiwti" path="res://UI/text.tres" id="5_8ck3a"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_a5dhw"]
|
||||
bg_color = Color(0.980392, 0.980392, 0.8, 1)
|
||||
border_width_left = 5
|
||||
border_width_top = 5
|
||||
border_width_right = 5
|
||||
border_width_bottom = 5
|
||||
border_color = Color(0, 0, 0, 1)
|
||||
corner_radius_top_left = 20
|
||||
corner_radius_top_right = 20
|
||||
corner_radius_bottom_right = 20
|
||||
corner_radius_bottom_left = 20
|
||||
|
||||
[node name="Window" type="Window"]
|
||||
transparent_bg = true
|
||||
position = Vector2i(0, 36)
|
||||
size = Vector2i(1000, 600)
|
||||
unresizable = true
|
||||
borderless = true
|
||||
transparent = true
|
||||
script = ExtResource("1_mbnc6")
|
||||
|
||||
[node name="Panel" type="Panel" parent="."]
|
||||
custom_minimum_size = Vector2(600, 200)
|
||||
offset_left = 400.0
|
||||
offset_right = 1000.0
|
||||
offset_bottom = 200.0
|
||||
mouse_filter = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_a5dhw")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
offset_left = 420.0
|
||||
offset_top = 15.0
|
||||
offset_right = 1491.0
|
||||
offset_bottom = 99.0
|
||||
theme = ExtResource("5_8ck3a")
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "Hi, I'm your legally
|
||||
distinct paperclip
|
||||
assistant, Clippette..."
|
||||
|
||||
[node name="Angy" type="Sprite2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(250, 350)
|
||||
texture = ExtResource("1_bqw21")
|
||||
|
||||
[node name="Hapi" type="Sprite2D" parent="."]
|
||||
visible = false
|
||||
position = Vector2(250, 350)
|
||||
texture = ExtResource("2_stani")
|
||||
|
||||
[node name="Normal" type="Sprite2D" parent="."]
|
||||
position = Vector2(250, 350)
|
||||
texture = ExtResource("3_dw2nh")
|
||||
|
||||
[node name="Paperclips" type="Node2D" parent="."]
|
||||
|
||||
[node name="TextureButton" type="TextureButton" parent="."]
|
||||
offset_right = 1000.0
|
||||
offset_bottom = 600.0
|
||||
|
||||
[node name="Timer" type="Timer" parent="."]
|
||||
wait_time = 0.25
|
||||
|
||||
[connection signal="button_up" from="TextureButton" to="." method="_on_texture_button_button_up"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
Loading…
Add table
Reference in a new issue