mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
started thing
This commit is contained in:
parent
aff8b6a654
commit
89c125a4a9
|
@ -7,6 +7,7 @@ enum Brush_Types {PIXEL, CIRCLE, FILLED_CIRCLE, FILE, RANDOM_FILE, CUSTOM}
|
|||
var root_directory := "."
|
||||
var window_title := "" setget title_changed # Why doesn't Godot have get_window_title()?
|
||||
var config_cache := ConfigFile.new()
|
||||
|
||||
# warning-ignore:unused_class_variable
|
||||
var loaded_locales : Array
|
||||
var undo_redo : UndoRedo
|
||||
|
|
27
Scripts/XDGDataPaths.gd
Normal file
27
Scripts/XDGDataPaths.gd
Normal file
|
@ -0,0 +1,27 @@
|
|||
extends Node
|
||||
|
||||
var xdg_data_home : String
|
||||
var xdg_data_dirs : Array
|
||||
|
||||
# Default location for xdg_data_home relative to $HOME
|
||||
const default_xdg_data_home_rel := ".local/share"
|
||||
const default_xdg_data_dirs := ["/usr/local/share", "/usr/share"]
|
||||
|
||||
const config_subdir_name := "pixelorama"
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a = 2
|
||||
# var b = "text"
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
if OS.has_feature("X11"):
|
||||
xdg_data_home = OS.get_environment("HOME").plus_file(default_xdg_data_home_rel)
|
||||
|
||||
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta):
|
||||
# pass
|
Loading…
Reference in a new issue