oestrich / grapevine

The MUD Chat Network
https://grapevine.haus/
MIT License
155 stars 20 forks source link

Interactive Modal Support #73

Open jasona opened 5 years ago

jasona commented 5 years ago

As a MUD owner I want to be able to generate modal window on the web-client So that I can create a richer experience for my web-client players

jasona commented 5 years ago

{ input_id: 1234, input_type: "MULTIPLE_CHOICE", prompt_text: "What is the air speed velocity of an unladen swallow?", options: {"African?", "European?", "What?"} }

input_types: SHORT_ANSWER, LONG_ANSWER, MULTIPLE_CHOICE, SINGLE_CHOICE, PASSWORD

jasona commented 5 years ago

Actually, if we can also add:

button_text: "Next>"

That would give me the ability to change the button text on the modal based on context. If I know this is the first step of many in a series of interactive prompts, otherwise the button would just default to "Submit" or something.