Skip to content

Instantly share code, notes, and snippets.

@kane-thornwyrd
Created February 16, 2025 14:48
Show Gist options
  • Save kane-thornwyrd/aaaa1ac6445079e80bfa9caf337ba420 to your computer and use it in GitHub Desktop.
Save kane-thornwyrd/aaaa1ac6445079e80bfa9caf337ba420 to your computer and use it in GitHub Desktop.
@tool
class_name RessourceCircle
extends Node2D
@onready var inner_circle : Sprite2D = $Sprite2D
@export var circle_color: Color :
set(val):
circle_color = val
if is_instance_valid(inner_circle):
_update_circle_color()
func _ready() -> void:
_update_circle_color()
func _update_circle_color():
inner_circle.self_modulate = self.circle_color
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment