Add addons
This commit is contained in:
parent
2c862b2235
commit
3367bad24f
527 changed files with 36197 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
extends MarginContainer
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
|
||||
var history_root = find_parent("ExampleHistoryScene")
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
pass
|
||||
|
||||
func prepare_texbox(history_root:Node) -> void:
|
||||
%TextBox.add_theme_font_override("normal_font", history_root.history_font_normal)
|
||||
%TextBox.add_theme_font_override("bold_font", history_root.history_font_bold)
|
||||
%TextBox.add_theme_font_override("italics_font", history_root.history_font_italics)
|
||||
%TextBox.add_theme_font_size_override("normal_font_size", history_root.history_font_size)
|
||||
%TextBox.add_theme_font_size_override("bold_font_size", history_root.history_font_size)
|
||||
%TextBox.add_theme_font_size_override("italics_font_size", history_root.history_font_size)
|
||||
|
||||
func set_text(text: String) -> void:
|
||||
%TextBox.text = text
|
||||
Loading…
Add table
Add a link
Reference in a new issue