Add addons

This commit is contained in:
Joey Yakimowich-Payne 2023-01-03 16:53:53 -07:00
commit 3367bad24f
No known key found for this signature in database
GPG key ID: 6BFE655FA5ABD1E1
527 changed files with 36197 additions and 0 deletions

View file

@ -0,0 +1,21 @@
extends Control
func _ready() -> void:
hide()
func _process(delta) -> void:
if visible:
global_position = get_global_mouse_position()
func _on_dialogic_display_dialog_text_meta_hover_started(meta:String) -> void:
var info :Dictionary = Dialogic.Glossary.get_entry(meta)
if info:
show()
$Panel/VBox/Title.text = info.get('title', '')
$Panel/VBox/Text.text = info.get('text', '')
$Panel/VBox/Extra.text = '[right]'+info.get('extra', '')
modulate = info.get('color', Color.WHITE)#.darkened(0.5)
global_position = get_global_mouse_position()
func _on_dialogic_display_dialog_text_meta_hover_ended(meta:String) -> void:
hide()