-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add placeholder main menu with field background
- Loading branch information
Showing
3 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
extends Spatial | ||
|
||
func disable_car_controls(node: Node) -> void: | ||
for n in node.get_children(): | ||
if n.get_child_count() > 0: | ||
if n is VehicleBody: | ||
print(n) | ||
n.set_process_input(false) | ||
disable_car_controls(n) | ||
elif n is VehicleBody: | ||
print(n) | ||
n.set_process_input(false) | ||
|
||
func _ready(): | ||
# Disable car controls | ||
disable_car_controls(self) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[gd_scene load_steps=4 format=2] | ||
|
||
[ext_resource path="res://Field.tscn" type="PackedScene" id=1] | ||
[ext_resource path="res://menus/NewMainMenu.gd" type="Script" id=2] | ||
[ext_resource path="res://icon.png" type="Texture" id=3] | ||
|
||
[node name="Spatial" type="Spatial"] | ||
script = ExtResource( 2 ) | ||
|
||
[node name="Camera" type="Camera" parent="."] | ||
transform = Transform( 0.623334, -0.188762, 0.758831, 0, 0.970426, 0.241397, -0.781956, -0.150471, 0.6049, 25.6566, 12.5673, 21.4531 ) | ||
fov = 40.6 | ||
|
||
[node name="Field" parent="." instance=ExtResource( 1 )] | ||
|
||
[node name="CanvasLayer" type="CanvasLayer" parent="."] | ||
|
||
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer"] | ||
margin_right = 307.0 | ||
margin_bottom = 731.0 | ||
__meta__ = { | ||
"_edit_use_anchors_": false | ||
} | ||
|
||
[node name="Button" type="Button" parent="CanvasLayer/HBoxContainer"] | ||
margin_right = 307.0 | ||
margin_bottom = 70.0 | ||
size_flags_horizontal = 3 | ||
size_flags_vertical = 0 | ||
text = "HELLO" | ||
icon = ExtResource( 3 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters