Port: item_outline
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
@tool
|
@tool
|
||||||
|
@icon("res://addons/escoria-core/design/esc_item.svg")
|
||||||
extends Polygon2D
|
extends Polygon2D
|
||||||
class_name ItemOutline, "res://addons/escoria-core/design/esc_item.svg"
|
class_name ItemOutline
|
||||||
|
|
||||||
@export var OutLine: Color = Color(0,0,0): set = set_outline_color
|
@export var OutLine: Color = Color(0,0,0): set = set_outline_color
|
||||||
@export var Width: float = 2.0: set = set_outline_width
|
@export var Width: float = 2.0: set = set_outline_width
|
||||||
@@ -13,9 +14,9 @@ func _draw():
|
|||||||
|
|
||||||
func set_outline_color(color):
|
func set_outline_color(color):
|
||||||
OutLine = color
|
OutLine = color
|
||||||
update()
|
queue_redraw()
|
||||||
|
|
||||||
func set_outline_width(new_width):
|
func set_outline_width(new_width):
|
||||||
Width = new_width
|
Width = new_width
|
||||||
update()
|
queue_redraw()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user