Add files via upload

This commit is contained in:
fenix-hub 2020-03-17 19:18:28 +01:00 committed by GitHub
parent 461796c5a9
commit ee76a8eb8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 30 additions and 12 deletions

View File

@ -3,5 +3,5 @@
name="File Editor" name="File Editor"
description="An internal file editor to view and edit text files in your project folder." description="An internal file editor to view and edit text files in your project folder."
author="Nicolo 'fenix' Santilio" author="Nicolo 'fenix' Santilio"
version="1.7.1" version="1.7.11"
script="scripts/file-editor.gd" script="scripts/file-editor.gd"

View File

@ -8,8 +8,6 @@ content_margin_left = 10.0
content_margin_right = 10.0 content_margin_right = 10.0
bg_color = Color( 0.145098, 0.172549, 0.231373, 1 ) bg_color = Color( 0.145098, 0.172549, 0.231373, 1 )
[sub_resource type="StyleBoxEmpty" id=9]
[sub_resource type="StyleBoxEmpty" id=2] [sub_resource type="StyleBoxEmpty" id=2]
[sub_resource type="StyleBoxEmpty" id=3] [sub_resource type="StyleBoxEmpty" id=3]
@ -22,7 +20,9 @@ bg_color = Color( 0.145098, 0.172549, 0.231373, 1 )
[sub_resource type="StyleBoxEmpty" id=7] [sub_resource type="StyleBoxEmpty" id=7]
[sub_resource type="DynamicFont" id=8] [sub_resource type="StyleBoxEmpty" id=8]
[sub_resource type="DynamicFont" id=9]
font_data = ExtResource( 2 ) font_data = ExtResource( 2 )
[node name="filename" type="VBoxContainer"] [node name="filename" type="VBoxContainer"]
@ -98,7 +98,7 @@ custom_constants/separation = 2
margin_right = 5.0 margin_right = 5.0
margin_bottom = 19.0 margin_bottom = 19.0
rect_min_size = Vector2( 5, 0 ) rect_min_size = Vector2( 5, 0 )
custom_styles/separator = SubResource( 9 ) custom_styles/separator = SubResource( 2 )
[node name="lastmodified_icon" type="TextureRect" parent="FileInfo"] [node name="lastmodified_icon" type="TextureRect" parent="FileInfo"]
margin_left = 7.0 margin_left = 7.0
@ -124,13 +124,13 @@ margin_left = 939.0
margin_right = 1018.0 margin_right = 1018.0
margin_bottom = 19.0 margin_bottom = 19.0
size_flags_horizontal = 10 size_flags_horizontal = 10
custom_styles/hover = SubResource( 2 ) custom_styles/hover = SubResource( 3 )
custom_styles/pressed = SubResource( 3 ) custom_styles/pressed = SubResource( 4 )
custom_styles/focus = SubResource( 4 ) custom_styles/focus = SubResource( 5 )
custom_styles/disabled = SubResource( 5 ) custom_styles/disabled = SubResource( 6 )
custom_styles/hover_pressed = SubResource( 6 ) custom_styles/hover_pressed = SubResource( 7 )
custom_styles/normal = SubResource( 7 ) custom_styles/normal = SubResource( 8 )
custom_fonts/font = SubResource( 8 ) custom_fonts/font = SubResource( 9 )
custom_colors/font_color = Color( 0.145098, 0.172549, 0.231373, 1 ) custom_colors/font_color = Color( 0.145098, 0.172549, 0.231373, 1 )
custom_colors/font_color_pressed = Color( 1, 1, 1, 1 ) custom_colors/font_color_pressed = Color( 1, 1, 1, 1 )
text = "Can Edit" text = "Can Edit"

View File

@ -1,6 +1,9 @@
tool tool
extends Control extends Control
var IconLoader = preload("res://addons/file-editor/scripts/IconLoader.gd").new()
var LastOpenedFiles = preload("res://addons/file-editor/scripts/LastOpenedFiles.gd").new()
onready var Table = $Editor/TableContainer/ScrollContainer/Table onready var Table = $Editor/TableContainer/ScrollContainer/Table
onready var AlignBTN = $Editor/Buttons/align_bt.get_popup() onready var AlignBTN = $Editor/Buttons/align_bt.get_popup()
onready var EditBTN = $Editor/Buttons/edit_bt.get_popup() onready var EditBTN = $Editor/Buttons/edit_bt.get_popup()

View File

@ -20,6 +20,9 @@ onready var SplitEditorContainer = $FileEditorContainer/SplitContainer/EditorCon
onready var WrapBTN = $FileEditorContainer/SplitContainer/EditorContainer/HBoxContainer/wrap_button onready var WrapBTN = $FileEditorContainer/SplitContainer/EditorContainer/HBoxContainer/wrap_button
onready var MapBTN = $FileEditorContainer/SplitContainer/EditorContainer/HBoxContainer/map_button onready var MapBTN = $FileEditorContainer/SplitContainer/EditorContainer/HBoxContainer/map_button
var IconLoader = preload("res://addons/file-editor/scripts/IconLoader.gd").new()
var LastOpenedFiles = preload("res://addons/file-editor/scripts/LastOpenedFiles.gd").new()
var Preview = preload("res://addons/file-editor/scenes/Preview.tscn") var Preview = preload("res://addons/file-editor/scenes/Preview.tscn")
var IniEditor = preload("res://addons/file-editor/scenes/IniEditor.tscn") var IniEditor = preload("res://addons/file-editor/scenes/IniEditor.tscn")
var VanillaEditor = preload("res://addons/file-editor/scenes/VanillaEditor.tscn") var VanillaEditor = preload("res://addons/file-editor/scenes/VanillaEditor.tscn")
@ -59,7 +62,10 @@ var current_editor : Control
var current_ini_editor : Control var current_ini_editor : Control
var current_csv_editor : Control var current_csv_editor : Control
func _ready(): func _ready():
clean_editor() clean_editor()
update_version() update_version()
connect_signals() connect_signals()

View File

@ -1,6 +1,8 @@
tool tool
extends VBoxContainer extends VBoxContainer
var IconLoader = preload("res://addons/file-editor/scripts/IconLoader.gd").new()
var LastOpenedFiles = preload("res://addons/file-editor/scripts/LastOpenedFiles.gd").new()
onready var ReadOnly = $FileInfo/Readonly onready var ReadOnly = $FileInfo/Readonly

View File

@ -1,6 +1,8 @@
tool tool
extends Control extends Control
var IconLoader = preload("res://addons/file-editor/scripts/IconLoader.gd").new()
var LastOpenedFiles = preload("res://addons/file-editor/scripts/LastOpenedFiles.gd").new()
onready var Keys = $VBoxContainer/HSplitContainer/VBoxContainer2/keys onready var Keys = $VBoxContainer/HSplitContainer/VBoxContainer2/keys
onready var Sections = $VBoxContainer/HSplitContainer/VBoxContainer/sections2 onready var Sections = $VBoxContainer/HSplitContainer/VBoxContainer/sections2

View File

@ -1,6 +1,9 @@
tool tool
extends WindowDialog extends WindowDialog
var IconLoader = preload("res://addons/file-editor/scripts/IconLoader.gd").new()
var LastOpenedFiles = preload("res://addons/file-editor/scripts/LastOpenedFiles.gd").new()
onready var TextPreview = $Container/TextPreview onready var TextPreview = $Container/TextPreview
onready var TablePreview = $Container/TablePreview onready var TablePreview = $Container/TablePreview

View File

@ -1,6 +1,8 @@
tool tool
extends VBoxContainer extends VBoxContainer
var IconLoader = preload("res://addons/file-editor/scripts/IconLoader.gd").new()
var LastOpenedFiles = preload("res://addons/file-editor/scripts/LastOpenedFiles.gd").new()
onready var ReadOnly = $FileInfo/Readonly onready var ReadOnly = $FileInfo/Readonly