Skip to content

Conversation

@jetrotal
Copy link
Contributor

@jetrotal jetrotal commented Sep 19, 2025

Allow the player to Type some text inside the game.

It's headless implementation, only way to get a feedback that the player is in typing mode is by having a paralell process displaying the stringvariable that is being edited.

command is

@cmd 2059,
"Default Name", // default value to be set over into the variable.
 [
0, 3,  // output stringvar mode and output stringvar id
0, 0, // default value as a stringvar mode and id
1, // boolean flag to allow multilines when hitting ctrl + enter (off/on)
]

Sending a map file with a working example:
Map0001.zip

Allow the player to Type some info inside the game.

It's headless implementation, only way to get a feedback that the player is in typing mode is by having a paralell process displaying the stringvariable that is being edited.

command is
```js
@cmd 2059,
"Default Name", // default value to be set over into the variable.
 [
0, 3,  // output stringvar mode and output stringvar id
0, 0, // default value as a stringvar mode and id
1, // allow multilines when hitting (ctrl + enter)
]

```
@jetrotal jetrotal force-pushed the newCommand-typingmode branch from da0606d to 92c6779 Compare September 19, 2025 02:51
Update game_interpreter.cpp
@jetrotal jetrotal force-pushed the newCommand-typingmode branch from 92c6779 to 19cbc06 Compare September 19, 2025 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant