mirror of
https://github.com/Relintai/godot-engine.file-editor.git
synced 2025-02-22 07:37:57 +01:00
Removed version form the UI.
This commit is contained in:
parent
bd0b210214
commit
0bae4a44e7
@ -165,16 +165,6 @@ text = "Settings"
|
|||||||
icon = SubResource( 34 )
|
icon = SubResource( 34 )
|
||||||
items = [ "Change Font", null, 0, false, false, 0, 0, null, "", false ]
|
items = [ "Change Font", null, 0, false, false, 0, 0, null, "", false ]
|
||||||
|
|
||||||
[node name="version" type="Label" parent="FileEditorContainer/TobBar"]
|
|
||||||
margin_left = 961.0
|
|
||||||
margin_top = 4.0
|
|
||||||
margin_right = 1000.0
|
|
||||||
margin_bottom = 18.0
|
|
||||||
size_flags_horizontal = 10
|
|
||||||
custom_colors/font_color = Color( 0.121569, 0.145098, 0.192157, 1 )
|
|
||||||
text = "v1.9.0"
|
|
||||||
align = 1
|
|
||||||
|
|
||||||
[node name="SplitContainer" type="HSplitContainer" parent="FileEditorContainer"]
|
[node name="SplitContainer" type="HSplitContainer" parent="FileEditorContainer"]
|
||||||
margin_top = 26.0
|
margin_top = 26.0
|
||||||
margin_right = 1000.0
|
margin_right = 1000.0
|
||||||
|
@ -10,8 +10,6 @@ onready var FileBTN = $FileEditorContainer/TobBar/file_btn.get_popup()
|
|||||||
onready var PreviewBTN = $FileEditorContainer/TobBar/preview_btn.get_popup()
|
onready var PreviewBTN = $FileEditorContainer/TobBar/preview_btn.get_popup()
|
||||||
onready var SettingsBTN : PopupMenu = $FileEditorContainer/TobBar/SettingsBtn.get_popup()
|
onready var SettingsBTN : PopupMenu = $FileEditorContainer/TobBar/SettingsBtn.get_popup()
|
||||||
|
|
||||||
onready var Version = $FileEditorContainer/TobBar/version
|
|
||||||
|
|
||||||
onready var SelectFontDialog : FileDialog = $SelectFontDialog
|
onready var SelectFontDialog : FileDialog = $SelectFontDialog
|
||||||
|
|
||||||
onready var FileContainer = $FileEditorContainer/SplitContainer/FileContainer
|
onready var FileContainer = $FileEditorContainer/SplitContainer/FileContainer
|
||||||
@ -70,7 +68,6 @@ func _ready():
|
|||||||
return
|
return
|
||||||
|
|
||||||
clean_editor()
|
clean_editor()
|
||||||
update_version()
|
|
||||||
connect_signals()
|
connect_signals()
|
||||||
create_shortcuts()
|
create_shortcuts()
|
||||||
load_icons()
|
load_icons()
|
||||||
@ -144,15 +141,6 @@ func connect_signals():
|
|||||||
|
|
||||||
SelectFontDialog.connect("file_selected",self,"_on_font_selected")
|
SelectFontDialog.connect("file_selected",self,"_on_font_selected")
|
||||||
|
|
||||||
func update_version():
|
|
||||||
var plugin_version = ""
|
|
||||||
var config = ConfigFile.new()
|
|
||||||
var err = config.load("res://addons/file-editor/plugin.cfg")
|
|
||||||
|
|
||||||
if err == OK:
|
|
||||||
plugin_version = config.get_value("plugin","version")
|
|
||||||
|
|
||||||
Version.set_text("v"+plugin_version)
|
|
||||||
|
|
||||||
func create_selected_file():
|
func create_selected_file():
|
||||||
update_list()
|
update_list()
|
||||||
|
Loading…
Reference in New Issue
Block a user