]> Untitled Git - wolf-seeking-sheep.git/blob - addons/dialogic/Editor/Settings/HintLabelStylingScript.gd
Squashed commit of the following:
[wolf-seeking-sheep.git] / addons / dialogic / Editor / Settings / HintLabelStylingScript.gd
1 @tool
2 extends Label
3
4 # Called when the node enters the scene tree for the first time.
5 func _ready() -> void:
6         # don't load the label settings when opening as a scene
7         # prevents HUGE diffs
8         if owner.get_parent() is SubViewport:
9                 return
10         label_settings = LabelSettings.new()
11         label_settings.font = get_theme_font("doc_italic", "EditorFonts")
12         label_settings.font_size = get_theme_font_size('font_size', 'Label')
13         label_settings.font_color = get_theme_color("accent_color", "Editor")