Small Godot Wild Jam game
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Options Menu Changes

+15 -8
+5 -3
Scenes/menu/menu.gd
··· 1 1 extends Control 2 2 3 - @onready var btn_play: Button = $MarginContainer/Control/VBoxContainer/PlayButton 4 - @onready var options_button: Button = $MarginContainer/Control/VBoxContainer/OptionsButton 5 - @onready var btn_exit: Button = $MarginContainer/Control/VBoxContainer/ExitButton 3 + @onready var btn_play: TextureButton = $MarginContainer/Control/VBoxContainer/PlayButton 4 + @onready var options_button: TextureButton = $MarginContainer/Control/VBoxContainer/OptionsButton 5 + @onready var btn_exit: TextureButton = $MarginContainer/Control/VBoxContainer/ExitButton 6 6 7 7 @onready var options_layer: CanvasLayer = $OptionsLayer 8 8 ··· 15 15 func _ready() -> void: 16 16 # needed for gamepads to work 17 17 btn_play.grab_focus() 18 + if true: 19 + options_button.queue_free() # remove options button for now, it is only a volume slider which isn't really needed right now... 18 20 if OS.has_feature('web'): 19 21 btn_exit.queue_free() # exit button dosn't make sense on HTML5 20 22
+2 -5
Scenes/menu/menu.tscn
··· 1 - 2 - [gd_scene load_steps=12 format=3 uid="uid://c2gocuhw2o7py"] 1 + [gd_scene load_steps=14 format=3 uid="uid://c2gocuhw2o7py"] 3 2 4 3 [ext_resource type="Texture2D" uid="uid://1qgmm6hsagsh" path="res://Assets/sprites/main_menu.png" id="2_0l81c"] 4 + [ext_resource type="AudioStream" uid="uid://bjy16rs73d1sx" path="res://Assets/sfx/menu_switch.wav" id="2_7g6em"] 5 5 [ext_resource type="PackedScene" uid="uid://glhpumkx46qg" path="res://examples-from-addons/gwj_options_menu/scenes/options_menu_example.tscn" id="2_od2wv"] 6 6 [ext_resource type="FontFile" uid="uid://dh20y7wl6p0hh" path="res://Assets/fonts/text-font/MrsSaintDelafield-Regular.ttf" id="3_od2wv"] 7 - [ext_resource type="AudioStream" uid="uid://bjy16rs73d1sx" path="res://Assets/sfx/menu_switch.wav" id="2_7g6em"] 8 7 [ext_resource type="AudioStream" uid="uid://dvbk3bchhy270" path="res://Assets/sfx/select.wav" id="3_puqa6"] 9 - 10 8 [ext_resource type="Script" uid="uid://dfnwymtygg1to" path="res://Scenes/menu/game_version.gd" id="4_3hod2"] 11 9 [ext_resource type="Script" uid="uid://cvc42inud8fxx" path="res://Scenes/menu/menu.gd" id="5"] 12 10 [ext_resource type="Script" uid="uid://baky6bgu7psf2" path="res://Scenes/menu/godot_version.gd" id="5_fdyjp"] ··· 105 103 focus_next = NodePath("../OptionsButton") 106 104 mouse_default_cursor_shape = 2 107 105 texture_normal = ExtResource("5_wksr7") 108 - 109 106 110 107 [node name="OptionsButton" type="TextureButton" parent="MarginContainer/Control/VBoxContainer"] 111 108 custom_minimum_size = Vector2(200, 70)
+8
examples-from-addons/gwj_options_menu/scenes/options_menu_example.tscn
··· 46 46 columns = 2 47 47 48 48 [node name="UiUp" type="HBoxContainer" parent="VBoxContainer/HotkeysContainer/GridContainer"] 49 + visible = false 49 50 layout_mode = 2 50 51 51 52 [node name="Label" type="Label" parent="VBoxContainer/HotkeysContainer/GridContainer/UiUp"] ··· 59 60 action = "move_up" 60 61 61 62 [node name="UiDown" type="HBoxContainer" parent="VBoxContainer/HotkeysContainer/GridContainer"] 63 + visible = false 62 64 layout_mode = 2 63 65 64 66 [node name="Label" type="Label" parent="VBoxContainer/HotkeysContainer/GridContainer/UiDown"] ··· 71 73 action = "move_down" 72 74 73 75 [node name="UILeft" type="HBoxContainer" parent="VBoxContainer/HotkeysContainer/GridContainer"] 76 + visible = false 74 77 layout_mode = 2 75 78 76 79 [node name="Label" type="Label" parent="VBoxContainer/HotkeysContainer/GridContainer/UILeft"] ··· 83 86 action = "move_left" 84 87 85 88 [node name="UIRight" type="HBoxContainer" parent="VBoxContainer/HotkeysContainer/GridContainer"] 89 + visible = false 86 90 layout_mode = 2 87 91 88 92 [node name="Label" type="Label" parent="VBoxContainer/HotkeysContainer/GridContainer/UIRight"] ··· 95 99 action = "move_right" 96 100 97 101 [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/HotkeysContainer/GridContainer"] 102 + visible = false 98 103 layout_mode = 2 99 104 100 105 [node name="Label" type="Label" parent="VBoxContainer/HotkeysContainer/GridContainer/HBoxContainer"] ··· 110 115 111 116 [node name="Label" type="Label" parent="VBoxContainer/HotkeysContainer/VolumeContainer"] 112 117 layout_mode = 2 118 + theme_override_font_sizes/font_size = 31 113 119 text = "Master Volume" 114 120 115 121 [node name="VolumeSlider" parent="VBoxContainer/HotkeysContainer/VolumeContainer" instance=ExtResource("2_vxtyn")] ··· 123 129 sounds = Array[AudioStream]([ExtResource("7_hg4ey"), ExtResource("8_galyv"), ExtResource("9_5idlf"), ExtResource("10_5cwfm"), ExtResource("11_v58jt"), ExtResource("12_f0tyn")]) 124 130 125 131 [node name="MuteContainer" type="HBoxContainer" parent="VBoxContainer/HotkeysContainer/VolumeContainer"] 132 + visible = false 126 133 layout_mode = 2 127 134 128 135 [node name="Label" type="Label" parent="VBoxContainer/HotkeysContainer/VolumeContainer/MuteContainer"] ··· 134 141 layout_mode = 2 135 142 136 143 [node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HotkeysContainer"] 144 + visible = false 137 145 layout_mode = 2 138 146 139 147 [node name="Label2" type="Label" parent="VBoxContainer/HotkeysContainer/VBoxContainer"]