TextUI rework
Last updated 8 months ago
Key Interaction is the same as TextUI but reworked to allow multiple keys. TextUI wasn't removed to maintain compatibility with scripts that are already using it. It doesn't affect anything.
Client-side using exports
Example:
-- show up key-interaction -- exports.lvs_lib:keyInteraction(method, items) exports.lvs_lib:keyInteraction('show', { {key= 'E', text= 'Action #1'}, {key= 'F', text= 'Action #2'}, }) -- simulate keypress and hide key-interaction -- exports.lvs_lib:keyInteraction(method, [itemIndex]) exports.lvs_lib:keyInteraction('pressed', 1) -- hide key-interaction exports.lvs_lib:keyInteraction('hide')