1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-19 01:29:49 +00:00

started thing

This commit is contained in:
sapient_cogbag 2020-04-10 22:47:06 +01:00
parent aff8b6a654
commit 89c125a4a9
No known key found for this signature in database
GPG key ID: 9DA0A435732D7C4A
2 changed files with 28 additions and 0 deletions

View file

@ -7,6 +7,7 @@ enum Brush_Types {PIXEL, CIRCLE, FILLED_CIRCLE, FILE, RANDOM_FILE, CUSTOM}
var root_directory := "." var root_directory := "."
var window_title := "" setget title_changed # Why doesn't Godot have get_window_title()? var window_title := "" setget title_changed # Why doesn't Godot have get_window_title()?
var config_cache := ConfigFile.new() var config_cache := ConfigFile.new()
# warning-ignore:unused_class_variable # warning-ignore:unused_class_variable
var loaded_locales : Array var loaded_locales : Array
var undo_redo : UndoRedo var undo_redo : UndoRedo

27
Scripts/XDGDataPaths.gd Normal file
View 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