DrawingAlgos in no longer a singleton.

This commit is contained in:
Relintai 2020-11-29 01:23:51 +01:00
parent a263ae836d
commit 9a0d10f95b
11 changed files with 10 additions and 2 deletions

View File

@ -123,7 +123,6 @@ driver="Dummy"
Global="*res://src/Autoload/Global.gd"
OpenSave="*res://src/Autoload/OpenSave.gd"
DrawingAlgos="*res://src/Autoload/DrawingAlgos.gd"
Tools="*res://src/Autoload/Tools.gd"
Export="*res://src/Autoload/Export.gd"

View File

@ -1,4 +1,4 @@
extends Node
extends Reference
enum GradientDirection {TOP, BOTTOM, LEFT, RIGHT}

View File

@ -1,5 +1,6 @@
extends ImageEffect
var DrawingAlgos = preload("res://src/Autoload/DrawingAlgos.gd")
var red := true
var green := true

View File

@ -1,5 +1,6 @@
extends ImageEffect
var DrawingAlgos = preload("res://src/Autoload/DrawingAlgos.gd")
onready var color1 : ColorPickerButton = $VBoxContainer/OptionsContainer/ColorsContainer/ColorPickerButton
onready var color2 : ColorPickerButton = $VBoxContainer/OptionsContainer/ColorsContainer/ColorPickerButton2

View File

@ -1,5 +1,6 @@
extends ImageEffect
var DrawingAlgos = preload("res://src/Autoload/DrawingAlgos.gd")
onready var hue_slider = $VBoxContainer/HBoxContainer/Sliders/Hue
onready var sat_slider = $VBoxContainer/HBoxContainer/Sliders/Saturation

View File

@ -1,5 +1,6 @@
extends ImageEffect
var DrawingAlgos = preload("res://src/Autoload/DrawingAlgos.gd")
var red := true
var green := true

View File

@ -1,5 +1,6 @@
extends ImageEffect
var DrawingAlgos = preload("res://src/Autoload/DrawingAlgos.gd")
var color := Color.red
var thickness := 1

View File

@ -1,5 +1,6 @@
extends ConfirmationDialog
var DrawingAlgos = preload("res://src/Autoload/DrawingAlgos.gd")
var width := 64
var height := 64

View File

@ -1,5 +1,6 @@
extends ImageEffect
var DrawingAlgos = preload("res://src/Autoload/DrawingAlgos.gd")
onready var type_option_button : OptionButton = $VBoxContainer/HBoxContainer2/TypeOptionButton
onready var angle_hslider : HSlider = $VBoxContainer/AngleOptions/AngleHSlider

View File

@ -1,5 +1,6 @@
extends ConfirmationDialog
var DrawingAlgos = preload("res://src/Autoload/DrawingAlgos.gd")
func _on_ScaleImage_confirmed() -> void:
var width : int = $VBoxContainer/OptionsContainer/WidthValue.value

View File

@ -1,5 +1,6 @@
extends Panel
var DrawingAlgos = preload("res://src/Autoload/DrawingAlgos.gd")
var file_menu : PopupMenu
var view_menu : PopupMenu