-
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New start scene that parses command line arguments (WIP)
- Loading branch information
Showing
5 changed files
with
72 additions
and
32 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
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
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,11 @@ | ||
extends Node | ||
|
||
func _ready(): | ||
var args : PackedStringArray = OS.get_cmdline_args() | ||
var no_logo : bool = ( args.find("--no-logo") != -1 ) | ||
var scene : PackedScene | ||
if no_logo: | ||
scene = load("res://material_maker/main_window.tscn") | ||
else: | ||
scene = load("res://splash_screen/splash_screen.tscn") | ||
get_tree().change_scene_to_packed(scene) |
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,6 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://bwfnpjyf1wqiu"] | ||
|
||
[ext_resource type="Script" path="res://parse_args.gd" id="1_or0h6"] | ||
|
||
[node name="ParseArgs" type="Node"] | ||
script = ExtResource("1_or0h6") |
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