Add addons
This commit is contained in:
parent
2c862b2235
commit
3367bad24f
527 changed files with 36197 additions and 0 deletions
|
|
@ -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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue