Rename RomSelect and WebFileSelect to FileSelect and FileSelectWeb

better alphabetical grouping in editors
This commit is contained in:
Luke Hubmayer-Werner 2023-12-08 21:29:09 +10:30
parent 925d68619b
commit 253f1fa1fb
6 changed files with 9 additions and 8 deletions

View File

@ -30,9 +30,9 @@ func _on_saveslot_loaded(dict) -> void:
func _ready() -> void:
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:
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()
push_menu(Menu.LOADER)

View File

@ -19,7 +19,7 @@ var rom_snes := File.new()
var snes_data := {}
var snes_bytes: PoolByteArray
var snes_buffer: StreamPeerBuffer
var thread := Thread.new()
#var thread := Thread.new()
func load_snes_structs(buffer: StreamPeerBuffer) -> Dictionary:
var data := {}
@ -120,4 +120,5 @@ func _ready():
pass
func _exit_tree() -> void:
thread.wait_to_finish()
pass
# thread.wait_to_finish()

View File

@ -1,9 +1,9 @@
[gd_scene load_steps=3 format=2]
[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_bottom = 1.0
rect_min_size = Vector2( 384, 240 )

View File

@ -1,9 +1,9 @@
[gd_scene load_steps=3 format=2]
[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_bottom = 1.0
rect_min_size = Vector2( 384, 240 )