User Tools

Site Tools


twine1:textinput

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

twine1:textinput [2017/09/15 14:13]
videlais created
twine1:textinput [2017/10/09 20:39]
Line 1: Line 1:
-=====<<​textinput>>​===== 
- 
-The **<<​textinput>>​** [[macro]] creates a standard HTML text box that allows the player to enter text. The text will be set to a variable once a [[<<​button>>​]] macro is clicked. 
- 
-====Usage==== 
- 
-For standard usage: 
- 
->​%%<<​%%textinput $//​variable//​%%>>​%% 
- 
-When a button is clicked, the text entered into the textbox will be set into the [[variable]]. Clicking normal links will ignore the text. (This allows normal links to serve as a "​cancel"​ or "go back" operation, allowing the player to navigate without unintentionally altering the variables.) 
-{{ ::​textinput.png|}} 
-====Button shorthand==== 
- 
-As mentioned, the inputted text is ignored by Twine unless a button is clicked, which acts as a way to "​submit"​ the text into the given variable. There is a way to create a button without using an extra [[<<​button>>​]] macro. Simply add a [[link]] as an extra argument to the macro: 
- 
->​%%<<​%%textinput $//​variable//​ %%[[%%//​link text//​|//​passage name//%%]] >>%% 
- 
-This creates a button immediately after the text box, which functions accordingly. 
  
twine1/textinput.txt ยท Last modified: 2017/10/09 20:39 (external edit)