init
This commit is contained in:
commit
f389e4e807
186 changed files with 10853 additions and 0 deletions
|
|
@ -0,0 +1,19 @@
|
|||
@tool
|
||||
extends PanelContainer
|
||||
|
||||
@onready var _message = $MarginContainer/HBoxContainer/Label
|
||||
|
||||
func _ready():
|
||||
_configure_source_warning()
|
||||
|
||||
|
||||
func _configure_source_warning():
|
||||
var sb = self.get_theme_stylebox("panel")
|
||||
var color = EditorInterface.get_editor_settings().get_setting("interface/theme/accent_color")
|
||||
color.a = 0.2
|
||||
sb.bg_color = color
|
||||
self.get_node("MarginContainer/HBoxContainer/Icon").texture = get_theme_icon("NodeInfo", "EditorIcons")
|
||||
|
||||
|
||||
func set_text(text: String):
|
||||
_message.text = text
|
||||
Loading…
Add table
Add a link
Reference in a new issue