Rename RomSelect and WebFileSelect to FileSelect and FileSelectWeb
better alphabetical grouping in editors
This commit is contained in:
parent
925d68619b
commit
253f1fa1fb
4
main.gd
4
main.gd
|
@ -30,9 +30,9 @@ func _on_saveslot_loaded(dict) -> void:
|
||||||
|
|
||||||
func _ready() -> void:
|
func _ready() -> void:
|
||||||
if OS.get_name() != 'HTML5' or !OS.has_feature('JavaScript'):
|
if OS.get_name() != 'HTML5' or !OS.has_feature('JavaScript'):
|
||||||
packed_menus[Menu.LOADER] = preload('res://widgets/RomSelect.tscn')
|
packed_menus[Menu.LOADER] = preload('res://widgets/FileSelect.tscn')
|
||||||
else:
|
else:
|
||||||
packed_menus[Menu.LOADER] = preload('res://widgets/WebFileSelect.tscn')
|
packed_menus[Menu.LOADER] = preload('res://widgets/FileSelectWeb.tscn')
|
||||||
menus[Menu.LOADER] = packed_menus[Menu.LOADER].instance()
|
menus[Menu.LOADER] = packed_menus[Menu.LOADER].instance()
|
||||||
push_menu(Menu.LOADER)
|
push_menu(Menu.LOADER)
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ var rom_snes := File.new()
|
||||||
var snes_data := {}
|
var snes_data := {}
|
||||||
var snes_bytes: PoolByteArray
|
var snes_bytes: PoolByteArray
|
||||||
var snes_buffer: StreamPeerBuffer
|
var snes_buffer: StreamPeerBuffer
|
||||||
var thread := Thread.new()
|
#var thread := Thread.new()
|
||||||
|
|
||||||
func load_snes_structs(buffer: StreamPeerBuffer) -> Dictionary:
|
func load_snes_structs(buffer: StreamPeerBuffer) -> Dictionary:
|
||||||
var data := {}
|
var data := {}
|
||||||
|
@ -120,4 +120,5 @@ func _ready():
|
||||||
pass
|
pass
|
||||||
|
|
||||||
func _exit_tree() -> void:
|
func _exit_tree() -> void:
|
||||||
thread.wait_to_finish()
|
pass
|
||||||
|
# thread.wait_to_finish()
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
[gd_scene load_steps=3 format=2]
|
[gd_scene load_steps=3 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://theme/menu_theme.tres" type="Theme" id=1]
|
[ext_resource path="res://theme/menu_theme.tres" type="Theme" id=1]
|
||||||
[ext_resource path="res://widgets/RomSelect.gd" type="Script" id=2]
|
[ext_resource path="res://widgets/FileSelect.gd" type="Script" id=2]
|
||||||
|
|
||||||
[node name="RomSelect" type="PanelContainer"]
|
[node name="FileSelect" type="PanelContainer"]
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
rect_min_size = Vector2( 384, 240 )
|
rect_min_size = Vector2( 384, 240 )
|
|
@ -1,9 +1,9 @@
|
||||||
[gd_scene load_steps=3 format=2]
|
[gd_scene load_steps=3 format=2]
|
||||||
|
|
||||||
[ext_resource path="res://theme/menu_theme.tres" type="Theme" id=1]
|
[ext_resource path="res://theme/menu_theme.tres" type="Theme" id=1]
|
||||||
[ext_resource path="res://widgets/WebFileSelect.gd" type="Script" id=2]
|
[ext_resource path="res://widgets/FileSelectWeb.gd" type="Script" id=2]
|
||||||
|
|
||||||
[node name="WebFileSelect" type="PanelContainer"]
|
[node name="FileSelect" type="PanelContainer"]
|
||||||
anchor_right = 1.0
|
anchor_right = 1.0
|
||||||
anchor_bottom = 1.0
|
anchor_bottom = 1.0
|
||||||
rect_min_size = Vector2( 384, 240 )
|
rect_min_size = Vector2( 384, 240 )
|
Loading…
Reference in New Issue