add more menu backgrounds and change how they work
|
@ -1,11 +1,7 @@
|
||||||
[gd_scene load_steps=21 format=3 uid="uid://1ikkb4b8mw1w"]
|
[gd_scene load_steps=17 format=3 uid="uid://1ikkb4b8mw1w"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://b5nh5td5bdsfd" path="res://Scripts/MainMenu.gd" id="1_ocgay"]
|
[ext_resource type="Script" uid="uid://b5nh5td5bdsfd" path="res://Scripts/MainMenu.gd" id="1_ocgay"]
|
||||||
[ext_resource type="Texture2D" uid="uid://dbh0vh85wks2l" path="res://UI/logo.png" id="2_6d82g"]
|
[ext_resource type="Texture2D" uid="uid://dbh0vh85wks2l" path="res://UI/logo.png" id="2_6d82g"]
|
||||||
[ext_resource type="Texture2D" uid="uid://6mf6wucl3y6k" path="res://UI/MenuBG/BalconyBG.png" id="2_j6v32"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://dr6ir8mgbjrs7" path="res://UI/MenuBG/CStageBG.png" id="3_vaoig"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://dyyyg85g3jwip" path="res://UI/MenuBG/ProtoRoadBG.png" id="4_dkd36"]
|
|
||||||
[ext_resource type="Texture2D" uid="uid://cdp1csnrbd46w" path="res://UI/MenuBG/1StageBG.png" id="6_ha2rd"]
|
|
||||||
[ext_resource type="Script" uid="uid://c8dhm0nhxqlth" path="res://Scripts/GraphicsOptions.gd" id="8_wdeli"]
|
[ext_resource type="Script" uid="uid://c8dhm0nhxqlth" path="res://Scripts/GraphicsOptions.gd" id="8_wdeli"]
|
||||||
[ext_resource type="Script" uid="uid://bmqi57p5yipll" path="res://Scripts/InterfaceOptions.gd" id="9_wyv1s"]
|
[ext_resource type="Script" uid="uid://bmqi57p5yipll" path="res://Scripts/InterfaceOptions.gd" id="9_wyv1s"]
|
||||||
|
|
||||||
|
@ -48,59 +44,16 @@ auto_translate_mode = 1
|
||||||
initial_position = 2
|
initial_position = 2
|
||||||
dialog_text = "Please restart the game for any changes to apply."
|
dialog_text = "Please restart the game for any changes to apply."
|
||||||
|
|
||||||
[node name="Backgrounds" type="Control" parent="."]
|
[node name="BackgroundImage" type="TextureRect" parent="."]
|
||||||
layout_mode = 1
|
layout_mode = 1
|
||||||
anchors_preset = 15
|
anchors_preset = 15
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
grow_horizontal = 2
|
grow_horizontal = 2
|
||||||
grow_vertical = 2
|
grow_vertical = 2
|
||||||
|
|
||||||
[node name="BalconyBG" type="TextureRect" parent="Backgrounds"]
|
|
||||||
visible = false
|
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
texture = ExtResource("2_j6v32")
|
|
||||||
expand_mode = 1
|
expand_mode = 1
|
||||||
|
|
||||||
[node name="CStageBG" type="TextureRect" parent="Backgrounds"]
|
[node name="Logo" type="TextureRect" parent="."]
|
||||||
visible = false
|
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
texture = ExtResource("3_vaoig")
|
|
||||||
expand_mode = 1
|
|
||||||
|
|
||||||
[node name="ProtoRoadBG" type="TextureRect" parent="Backgrounds"]
|
|
||||||
visible = false
|
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
texture = ExtResource("4_dkd36")
|
|
||||||
expand_mode = 1
|
|
||||||
|
|
||||||
[node name="1StageBG" type="TextureRect" parent="Backgrounds"]
|
|
||||||
visible = false
|
|
||||||
layout_mode = 1
|
|
||||||
anchors_preset = 15
|
|
||||||
anchor_right = 1.0
|
|
||||||
anchor_bottom = 1.0
|
|
||||||
grow_horizontal = 2
|
|
||||||
grow_vertical = 2
|
|
||||||
texture = ExtResource("6_ha2rd")
|
|
||||||
expand_mode = 1
|
|
||||||
|
|
||||||
[node name="TextureRect" type="TextureRect" parent="."]
|
|
||||||
layout_mode = 0
|
layout_mode = 0
|
||||||
offset_left = 64.0
|
offset_left = 64.0
|
||||||
offset_top = 64.0
|
offset_top = 64.0
|
||||||
|
|
|
@ -3,6 +3,7 @@ extends Node
|
||||||
var Generic1Stage = {
|
var Generic1Stage = {
|
||||||
"name": "Generic 1-Stage",
|
"name": "Generic 1-Stage",
|
||||||
"scene": "res://Scenes/FreeRoam/Generic/Generic1Stage.tscn",
|
"scene": "res://Scenes/FreeRoam/Generic/Generic1Stage.tscn",
|
||||||
|
"description": "A generic showroom featuring the 1-Stage",
|
||||||
"stage": Stages.Cyber1Stage,
|
"stage": Stages.Cyber1Stage,
|
||||||
"curtains": {
|
"curtains": {
|
||||||
"Curtain": [ "1-Stage" ]
|
"Curtain": [ "1-Stage" ]
|
||||||
|
@ -12,6 +13,7 @@ var Generic1Stage = {
|
||||||
var Generic12Stage = {
|
var Generic12Stage = {
|
||||||
"name": "Generic 1-Stage w 2-Stage Props",
|
"name": "Generic 1-Stage w 2-Stage Props",
|
||||||
"scene": "res://Scenes/FreeRoam/Generic/Generic12Stage.tscn",
|
"scene": "res://Scenes/FreeRoam/Generic/Generic12Stage.tscn",
|
||||||
|
"description": "A generic showroom featuring the 1-Stage with 2-Stage props",
|
||||||
"stage": Stages.Cyber12Stage,
|
"stage": Stages.Cyber12Stage,
|
||||||
"curtains": {
|
"curtains": {
|
||||||
"Curtain": [ "1-Stage" ]
|
"Curtain": [ "1-Stage" ]
|
||||||
|
@ -21,6 +23,7 @@ var Generic12Stage = {
|
||||||
var Generic2Stage = {
|
var Generic2Stage = {
|
||||||
"name": "Generic 2-Stage",
|
"name": "Generic 2-Stage",
|
||||||
"scene": "res://Scenes/FreeRoam/Generic/Generic2Stage.tscn",
|
"scene": "res://Scenes/FreeRoam/Generic/Generic2Stage.tscn",
|
||||||
|
"description": "A generic showroom featuring the 2-Stage",
|
||||||
"stage": Stages.Cyber2Stage,
|
"stage": Stages.Cyber2Stage,
|
||||||
"curtains": {
|
"curtains": {
|
||||||
"Curtains": [ "CEC", "Main" ]
|
"Curtains": [ "CEC", "Main" ]
|
||||||
|
@ -30,6 +33,7 @@ var Generic2Stage = {
|
||||||
var GenericMiniUnit1Stage = {
|
var GenericMiniUnit1Stage = {
|
||||||
"name": "Generic Mini Unit 1-Stage",
|
"name": "Generic Mini Unit 1-Stage",
|
||||||
"scene": "res://Scenes/FreeRoam/Generic/GenericMiniUnit1Stage.tscn",
|
"scene": "res://Scenes/FreeRoam/Generic/GenericMiniUnit1Stage.tscn",
|
||||||
|
"description": "A generic showroom featuring the Mini Unit 1-Stage",
|
||||||
"stage": Stages.MiniUnit1Stage,
|
"stage": Stages.MiniUnit1Stage,
|
||||||
"curtains": [ ]
|
"curtains": [ ]
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,17 @@ var theme_index = [
|
||||||
"res://UI/Themes/HotDogStand.tres"
|
"res://UI/Themes/HotDogStand.tres"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
var background_index = [
|
||||||
|
"res://UI/MenuBG/1StageBG.png",
|
||||||
|
"res://UI/MenuBG/BalconyBG.png",
|
||||||
|
"res://UI/MenuBG/CStageBG.png",
|
||||||
|
"res://UI/MenuBG/ProtoRoadBG.png",
|
||||||
|
"res://UI/MenuBG/2StageBG.png",
|
||||||
|
"res://UI/MenuBG/12StageBG.png",
|
||||||
|
"res://UI/MenuBG/Mini1StageBG.png",
|
||||||
|
"res://UI/MenuBG/Cyber3StageBG.png",
|
||||||
|
]
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
msaa = get_viewport().msaa_3d
|
msaa = get_viewport().msaa_3d
|
||||||
ssaa = get_viewport().screen_space_aa
|
ssaa = get_viewport().screen_space_aa
|
|
@ -4,7 +4,8 @@ func _ready():
|
||||||
OS.request_permissions()
|
OS.request_permissions()
|
||||||
randomize()
|
randomize()
|
||||||
$VersionLabel.text = "Pneumatic Plaything v%s" % ProjectSettings.get_setting("application/config/version")
|
$VersionLabel.text = "Pneumatic Plaything v%s" % ProjectSettings.get_setting("application/config/version")
|
||||||
$Backgrounds.get_child(randi() % $Backgrounds.get_child_count()).visible = true
|
var selectedBG = GlobalVariables.background_index[randi() % GlobalVariables.background_index.size()]
|
||||||
|
$BackgroundImage.set_texture(load(selectedBG))
|
||||||
$Buttons/EditorButton.grab_focus()
|
$Buttons/EditorButton.grab_focus()
|
||||||
|
|
||||||
GlobalVariables.loadConfig()
|
GlobalVariables.loadConfig()
|
||||||
|
|
BIN
UI/MenuBG/12StageBG.png
Normal file
After Width: | Height: | Size: 648 KiB |
34
UI/MenuBG/12StageBG.png.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://bbh6ix3868a7v"
|
||||||
|
path="res://.godot/imported/12StageBG.png-b51ee8e37fe54bba68347f9fa2fa6ca5.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://UI/MenuBG/12StageBG.png"
|
||||||
|
dest_files=["res://.godot/imported/12StageBG.png-b51ee8e37fe54bba68347f9fa2fa6ca5.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
|
Before Width: | Height: | Size: 592 KiB After Width: | Height: | Size: 653 KiB |
BIN
UI/MenuBG/2StageBG.png
Normal file
After Width: | Height: | Size: 650 KiB |
34
UI/MenuBG/2StageBG.png.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://cnm6hpjv0bd3d"
|
||||||
|
path="res://.godot/imported/2StageBG.png-a495b53b2f4b7368ffa6c2155e150dbe.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://UI/MenuBG/2StageBG.png"
|
||||||
|
dest_files=["res://.godot/imported/2StageBG.png-a495b53b2f4b7368ffa6c2155e150dbe.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
|
Before Width: | Height: | Size: 354 KiB After Width: | Height: | Size: 427 KiB |
Before Width: | Height: | Size: 602 KiB After Width: | Height: | Size: 646 KiB |
BIN
UI/MenuBG/Cyber3StageBG.png
Normal file
After Width: | Height: | Size: 475 KiB |
34
UI/MenuBG/Cyber3StageBG.png.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://n1ypuxihcier"
|
||||||
|
path="res://.godot/imported/Cyber3StageBG.png-5bd6026592f95e9141a02c5f74de1240.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://UI/MenuBG/Cyber3StageBG.png"
|
||||||
|
dest_files=["res://.godot/imported/Cyber3StageBG.png-5bd6026592f95e9141a02c5f74de1240.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/MenuBG/Mini1StageBG.png
Normal file
After Width: | Height: | Size: 476 KiB |
34
UI/MenuBG/Mini1StageBG.png.import
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
[remap]
|
||||||
|
|
||||||
|
importer="texture"
|
||||||
|
type="CompressedTexture2D"
|
||||||
|
uid="uid://c25ayrt5kd6gb"
|
||||||
|
path="res://.godot/imported/Mini1StageBG.png-c9d1463641b68657cfed808e21dbf2db.ctex"
|
||||||
|
metadata={
|
||||||
|
"vram_texture": false
|
||||||
|
}
|
||||||
|
|
||||||
|
[deps]
|
||||||
|
|
||||||
|
source_file="res://UI/MenuBG/Mini1StageBG.png"
|
||||||
|
dest_files=["res://.godot/imported/Mini1StageBG.png-c9d1463641b68657cfed808e21dbf2db.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
|
Before Width: | Height: | Size: 645 KiB After Width: | Height: | Size: 621 KiB |
|
@ -25,7 +25,7 @@ config/windows_native_icon="res://UI/icon.ico"
|
||||||
Cosmetics="*res://Scripts/Configs/Cosmetics.gd"
|
Cosmetics="*res://Scripts/Configs/Cosmetics.gd"
|
||||||
Stages="*res://Scripts/Configs/Stages.gd"
|
Stages="*res://Scripts/Configs/Stages.gd"
|
||||||
FreeRoamMaps="*res://Scripts/Configs/FreeRoamMaps.gd"
|
FreeRoamMaps="*res://Scripts/Configs/FreeRoamMaps.gd"
|
||||||
GlobalVariables="*res://Scripts/GlobalVariables.gd"
|
GlobalVariables="*res://Scripts/Configs/GlobalVariables.gd"
|
||||||
|
|
||||||
[display]
|
[display]
|
||||||
|
|
||||||
|
|