InitCommit
update 1.4.2 source code
BIN
ui_scenes/settings/blue.png
Normal file
|
After Width: | Height: | Size: 235 B |
34
ui_scenes/settings/blue.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://d0tponia41aja"
|
||||
path="res://.godot/imported/blue.png-351bfb79bb3afd2a9ebab2fc62098a75.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ui_scenes/settings/blue.png"
|
||||
dest_files=["res://.godot/imported/blue.png-351bfb79bb3afd2a9ebab2fc62098a75.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
ui_scenes/settings/editPencil.png
Normal file
|
After Width: | Height: | Size: 337 B |
34
ui_scenes/settings/editPencil.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://i0wc2ou3k7kv"
|
||||
path="res://.godot/imported/editPencil.png-4f38222048f0e75c589f260849a1cacd.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ui_scenes/settings/editPencil.png"
|
||||
dest_files=["res://.godot/imported/editPencil.png-4f38222048f0e75c589f260849a1cacd.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
ui_scenes/settings/green.png
Normal file
|
After Width: | Height: | Size: 234 B |
34
ui_scenes/settings/green.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c1k0fbydfmt3w"
|
||||
path="res://.godot/imported/green.png-2f5a52638d423ba8f0a1dc3e1077bf1e.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ui_scenes/settings/green.png"
|
||||
dest_files=["res://.godot/imported/green.png-2f5a52638d423ba8f0a1dc3e1077bf1e.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
ui_scenes/settings/info.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
34
ui_scenes/settings/info.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dj1ffgeyacc8g"
|
||||
path="res://.godot/imported/info.png-a0ca02103bce81cfba0265196790ca65.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ui_scenes/settings/info.png"
|
||||
dest_files=["res://.godot/imported/info.png-a0ca02103bce81cfba0265196790ca65.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
ui_scenes/settings/magenta.png
Normal file
|
After Width: | Height: | Size: 235 B |
34
ui_scenes/settings/magenta.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://dbwl6wawm1w4s"
|
||||
path="res://.godot/imported/magenta.png-6521720050e005161143b3238700aac1.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ui_scenes/settings/magenta.png"
|
||||
dest_files=["res://.godot/imported/magenta.png-6521720050e005161143b3238700aac1.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
ui_scenes/settings/settingsWheel.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
34
ui_scenes/settings/settingsWheel.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://cpwoby3dan2qc"
|
||||
path="res://.godot/imported/settingsWheel.png-f03f28399dfde507a7ce4954e1cc5fdd.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ui_scenes/settings/settingsWheel.png"
|
||||
dest_files=["res://.godot/imported/settingsWheel.png-f03f28399dfde507a7ce4954e1cc5fdd.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
|
||||
199
ui_scenes/settings/settings_menu.gd
Normal file
@@ -0,0 +1,199 @@
|
||||
extends Node2D
|
||||
|
||||
var awaitingCostumeInput = -1
|
||||
|
||||
var hasMouse = false
|
||||
|
||||
func setvalues():
|
||||
|
||||
$Background/ColorPickerButton.color = Global.backgroundColor
|
||||
if Global.backgroundColor == Color(0.0,0.0,0.0,0.0):
|
||||
$Background/ColorPickerButton.color = Color(1.0,1.0,1.0,1.0)
|
||||
|
||||
|
||||
$MaxFPS/fpslabel.text = str(Engine.max_fps)
|
||||
$MaxFPS/fpsDrag.value = Engine.max_fps
|
||||
if Engine.max_fps == 0:
|
||||
$MaxFPS/fpslabel.text = "Unlimited"
|
||||
$MaxFPS/fpsDrag.value = 241
|
||||
|
||||
$BounceForce/bounce.text = str(Saving.settings["bounce"])
|
||||
$BounceForce/bounceForce.value = Saving.settings["bounce"]
|
||||
$BounceGravity/bounce.text = str(Saving.settings["gravity"])
|
||||
$BounceGravity/bounceGravity.value = Saving.settings["gravity"]
|
||||
|
||||
_on_check_box_toggled(Global.filtering)
|
||||
|
||||
$BlinkSpeed/blinkSpeed.value = int(1.0/Global.blinkSpeed)
|
||||
$BlinkSpeed/Label.text = "blink speed: " + str(int(1.0/Global.blinkSpeed))
|
||||
|
||||
$BlinkChance/blinkChance.value = Global.blinkChance
|
||||
$BlinkChance/Label.text = "blink chance: 1 in " + str(Global.blinkChance)
|
||||
|
||||
$bounceOnCostume/costumeCheck.button_pressed = Global.main.bounceOnCostumeChange
|
||||
|
||||
var costumeLabels = [$CostumeInputs/ScrollContainer/VBoxContainer/costumeButton1/Label,$CostumeInputs/ScrollContainer/VBoxContainer/costumeButton2/Label,$CostumeInputs/ScrollContainer/VBoxContainer/costumeButton3/Label,$CostumeInputs/ScrollContainer/VBoxContainer/costumeButton4/Label,$CostumeInputs/ScrollContainer/VBoxContainer/costumeButton5/Label,$CostumeInputs/ScrollContainer/VBoxContainer/costumeButton6/Label,$CostumeInputs/ScrollContainer/VBoxContainer/costumeButton7/Label,$CostumeInputs/ScrollContainer/VBoxContainer/costumeButton8/Label,$CostumeInputs/ScrollContainer/VBoxContainer/costumeButton9/Label,$CostumeInputs/ScrollContainer/VBoxContainer/costumeButton10/Label,]
|
||||
var tag = 1
|
||||
for label in costumeLabels:
|
||||
label.text = "costume " + str(tag) + " key: \"" + Global.main.costumeKeys[tag-1] + "\""
|
||||
tag += 1
|
||||
|
||||
func _on_color_picker_button_color_changed(color):
|
||||
get_viewport().transparent_bg = false
|
||||
RenderingServer.set_default_clear_color(color)
|
||||
Global.backgroundColor = color
|
||||
Saving.settings["backgroundColor"] = var_to_str(color)
|
||||
|
||||
Global.pushUpdate("Background color set to CUSTOM COLOR.")
|
||||
|
||||
func _on_button_pressed():
|
||||
get_viewport().transparent_bg = true
|
||||
Global.backgroundColor = Color(0.0,0.0,0.0,0.0)
|
||||
Saving.settings["backgroundColor"] = var_to_str(Color(0.0,0.0,0.0,0.0))
|
||||
|
||||
Global.pushUpdate("Background color set to TRANSPARENT.")
|
||||
|
||||
func _on_color_picker_button_picker_created():
|
||||
get_viewport().transparent_bg = false
|
||||
RenderingServer.set_default_clear_color($Background/ColorPickerButton.color)
|
||||
|
||||
func _on_fps_drag_value_changed(value):
|
||||
if $MaxFPS/fpsDrag.value == 241:
|
||||
$MaxFPS/fpslabel.text = "Unlimited"
|
||||
return
|
||||
$MaxFPS/fpslabel.text = str(value)
|
||||
|
||||
|
||||
func _on_confirm_pressed():
|
||||
if $MaxFPS/fpsDrag.value == 241:
|
||||
Engine.max_fps = 0
|
||||
Saving.settings["maxFPS"] = 0
|
||||
Global.pushUpdate("Max fps set to unlimited.")
|
||||
return
|
||||
Engine.max_fps = $MaxFPS/fpsDrag.value
|
||||
Saving.settings["maxFPS"] = $MaxFPS/fpsDrag.value
|
||||
|
||||
Global.pushUpdate("Max fps set to " + str(Engine.max_fps) + ".")
|
||||
|
||||
func _on_green_button_pressed():
|
||||
get_viewport().transparent_bg = false
|
||||
Global.backgroundColor = Color(0.0,1.0,0.0,1.0)
|
||||
Saving.settings["backgroundColor"] = var_to_str(Color(0.0,1.0,0.0,1.0))
|
||||
RenderingServer.set_default_clear_color(Color(0.0,1.0,0.0,1.0))
|
||||
|
||||
Global.pushUpdate("Background color set to GREEN.")
|
||||
|
||||
func _on_blue_button_pressed():
|
||||
get_viewport().transparent_bg = false
|
||||
Global.backgroundColor = Color(0.0,0.0,1.0,1.0)
|
||||
Saving.settings["backgroundColor"] = var_to_str(Color(0.0,0.0,1.0,1.0))
|
||||
RenderingServer.set_default_clear_color(Color(0.0,0.0,1.0,1.0))
|
||||
|
||||
Global.pushUpdate("Background color set to BLUE.")
|
||||
|
||||
func _on_magenta_button_pressed():
|
||||
get_viewport().transparent_bg = false
|
||||
Global.backgroundColor = Color(1.0,0.0,1.0,1.0)
|
||||
Saving.settings["backgroundColor"] = var_to_str(Color(1.0,0.0,1.0,1.0))
|
||||
RenderingServer.set_default_clear_color(Color(1.0,0.0,1.0,1.0))
|
||||
|
||||
Global.pushUpdate("Background color set to MAGENTA.")
|
||||
|
||||
func _on_check_box_toggled(button_pressed):
|
||||
var new = 0
|
||||
if button_pressed:
|
||||
new = 2
|
||||
var nodes = get_tree().get_nodes_in_group("saved")
|
||||
for sprite in nodes:
|
||||
sprite.sprite.texture_filter = new
|
||||
Global.filtering = button_pressed
|
||||
Saving.settings["filtering"] = button_pressed
|
||||
$AntiAliasing/CheckBox.button_pressed = button_pressed
|
||||
|
||||
Global.pushUpdate("Texture filtering set to: " + str(button_pressed))
|
||||
|
||||
func _on_bounce_force_value_changed(value):
|
||||
$BounceForce/bounce.text = str(value)
|
||||
Global.main.bounceSlider = value
|
||||
Saving.settings["bounce"] = value
|
||||
|
||||
Global.pushUpdate("Bounce force value changed.")
|
||||
|
||||
func _on_bounce_gravity_value_changed(value):
|
||||
$BounceGravity/bounce.text = str(value)
|
||||
Global.main.bounceGravity = value
|
||||
Saving.settings["gravity"] = value
|
||||
|
||||
Global.pushUpdate("Bounce gravity value changed.")
|
||||
|
||||
func costumeButtonsPressed(label,id):
|
||||
label.text = "AWAITING INPUT"
|
||||
await Global.main.emptiedCapture
|
||||
awaitingCostumeInput = id - 1
|
||||
|
||||
|
||||
await Global.main.pressedKey
|
||||
label.text = "costume " + str(id) + " key: \"" + Global.main.costumeKeys[id - 1] + "\""
|
||||
await Global.main.emptiedCapture
|
||||
awaitingCostumeInput = -1
|
||||
|
||||
func _on_costume_button_1_pressed():
|
||||
var label = $CostumeInputs/ScrollContainer/VBoxContainer/costumeButton1/Label
|
||||
costumeButtonsPressed(label,1)
|
||||
func _on_costume_button_2_pressed():
|
||||
var label = $CostumeInputs/ScrollContainer/VBoxContainer/costumeButton2/Label
|
||||
costumeButtonsPressed(label,2)
|
||||
func _on_costume_button_3_pressed():
|
||||
var label = $CostumeInputs/ScrollContainer/VBoxContainer/costumeButton3/Label
|
||||
costumeButtonsPressed(label,3)
|
||||
func _on_costume_button_4_pressed():
|
||||
var label = $CostumeInputs/ScrollContainer/VBoxContainer/costumeButton4/Label
|
||||
costumeButtonsPressed(label,4)
|
||||
func _on_costume_button_5_pressed():
|
||||
var label = $CostumeInputs/ScrollContainer/VBoxContainer/costumeButton5/Label
|
||||
costumeButtonsPressed(label,5)
|
||||
func _on_costume_button_6_pressed():
|
||||
var label = $CostumeInputs/ScrollContainer/VBoxContainer/costumeButton6/Label
|
||||
costumeButtonsPressed(label,6)
|
||||
func _on_costume_button_7_pressed():
|
||||
var label = $CostumeInputs/ScrollContainer/VBoxContainer/costumeButton7/Label
|
||||
costumeButtonsPressed(label,7)
|
||||
func _on_costume_button_8_pressed():
|
||||
var label = $CostumeInputs/ScrollContainer/VBoxContainer/costumeButton8/Label
|
||||
costumeButtonsPressed(label,8)
|
||||
func _on_costume_button_9_pressed():
|
||||
var label = $CostumeInputs/ScrollContainer/VBoxContainer/costumeButton9/Label
|
||||
costumeButtonsPressed(label,9)
|
||||
func _on_costume_button_10_pressed():
|
||||
var label = $CostumeInputs/ScrollContainer/VBoxContainer/costumeButton10/Label
|
||||
costumeButtonsPressed(label,10)
|
||||
|
||||
|
||||
func _on_blink_speed_value_changed(value):
|
||||
if value == 0:
|
||||
Global.blinkSpeed = 0.0
|
||||
Saving.settings["blinkSpeed"] = 0.0
|
||||
$BlinkSpeed/Label.text = "blink speed: 0"
|
||||
return
|
||||
Global.blinkSpeed = 1.0/float(value)
|
||||
Saving.settings["blinkSpeed"] = 1.0/float(value)
|
||||
$BlinkSpeed/Label.text = "blink speed: " + str(value)
|
||||
|
||||
|
||||
func _on_blink_chance_value_changed(value):
|
||||
Global.blinkChance = value
|
||||
Saving.settings["blinkChance"] = value
|
||||
$BlinkChance/Label.text = "blink chance: 1 in " + str(value)
|
||||
|
||||
|
||||
func _on_costume_check_toggled(button_pressed):
|
||||
Global.main.bounceOnCostumeChange = button_pressed
|
||||
Saving.settings["bounceOnCostumeChange"] = button_pressed
|
||||
|
||||
|
||||
func _process(delta):
|
||||
var g = to_local(get_global_mouse_position())
|
||||
if g.x < 0 or g.y < 0 or g.x > $NinePatchRect.size.x or g.y > $NinePatchRect.size.y:
|
||||
hasMouse = false
|
||||
else:
|
||||
hasMouse = true
|
||||
14755
ui_scenes/settings/settings_menu.tscn
Normal file
BIN
ui_scenes/settings/transparent.png
Normal file
|
After Width: | Height: | Size: 277 B |
34
ui_scenes/settings/transparent.png.import
Normal file
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c2gmfosxa8p2p"
|
||||
path="res://.godot/imported/transparent.png-ba84fc43ed193bd517d3d15f0b6df49f.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://ui_scenes/settings/transparent.png"
|
||||
dest_files=["res://.godot/imported/transparent.png-ba84fc43ed193bd517d3d15f0b6df49f.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
|
||||