gd: added input addon
This commit is contained in:
22
addons/guide/ui/guide_text_provider.gd
Normal file
22
addons/guide/ui/guide_text_provider.gd
Normal file
@ -0,0 +1,22 @@
|
||||
## 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"
|
||||
|
||||
|
Reference in New Issue
Block a user