mirror of
https://github.com/Relintai/material-maker.git
synced 2025-02-02 23:15:54 +01:00
Updated release number and export settings, and added support for .ptex file on the command line
This commit is contained in:
parent
88340b5502
commit
6883561beb
File diff suppressed because one or more lines are too long
@ -125,6 +125,8 @@ func _ready() -> void:
|
||||
m.connect("about_to_show", self, "menu_about_to_show", [ m.name, menu ])
|
||||
new_material()
|
||||
|
||||
do_load_materials(OS.get_cmdline_args())
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("toggle_fullscreen"):
|
||||
OS.window_fullscreen = !OS.window_fullscreen
|
||||
|
@ -180,7 +180,7 @@ boot_splash/fullsize=false
|
||||
boot_splash/bg_color=Color( 0.0901961, 0.0941176, 0.141176, 1 )
|
||||
config/icon="res://icon.png"
|
||||
config/windows_native_icon="res://icon.ico"
|
||||
config/release="0.8"
|
||||
config/release="0.9"
|
||||
|
||||
[autoload]
|
||||
|
||||
|
4
start.gd
4
start.gd
@ -8,6 +8,7 @@ func _ready():
|
||||
var path : String
|
||||
if Directory.new().file_exists("res://material_maker/main_window.tscn"):
|
||||
path = "res://material_maker/main_window.tscn"
|
||||
|
||||
else:
|
||||
path = "res://demo/demo.tscn"
|
||||
loader = ResourceLoader.load_interactive(path)
|
||||
@ -19,7 +20,8 @@ func _process(_delta):
|
||||
var err = loader.poll()
|
||||
if err == ERR_FILE_EOF:
|
||||
var resource = loader.get_resource()
|
||||
get_node("/root").add_child(resource.instance())
|
||||
var scene = resource.instance()
|
||||
get_node("/root").add_child(scene)
|
||||
queue_free()
|
||||
elif err == OK:
|
||||
var progress = float(loader.get_stage()) / loader.get_stage_count()
|
||||
|
Loading…
Reference in New Issue
Block a user