Files
EGJ25/addons/guide/ui/guide_text_provider.gd
minimata 9a79715e47
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 6s
Create tag and build when new code gets to main / Export (push) Successful in 3m16s
feat: made sure the aspect ration fit a pixel art game and added useful addons
2025-06-27 15:19:12 +02:00

23 lines
792 B
GDScript

## Base class for text providers. A text provider provides a textual representation
## of an input which is displayed to the user.
## scripts.
@tool
class_name GUIDETextProvider
## The priority of this text provider. The built-in text provider uses priority 0.
## The smaller the number the higher the priority.
@export var priority:int = 0
## Whether or not this provider can provide a text for this input.
func supports(input:GUIDEInput) -> bool:
return false
## Provides the text for the given input. Will only be called when the
## input is supported by this text provider. Note that for key input
## this is not supposed to look at the modifiers. This function will
## be called separately for each modifier.
func get_text(input:GUIDEInput) -> String:
return "not implemented"