Using Input Name
Files
Overview
API Usage
import { useInputName } from './components/InputName';
const MyComponent = () => {
const inputName = useInputName();
const onRenameActor = (actor) => {
inputName.show({
context: {
actor: actor,
maxLength: 10
},
charSets: {
LATIN1: Window_NameInput.LATIN1,
// ... other charsets from the engine
},
actions: {
onInputOk: (name) => actor.setName(name),
onInputCancel: () => console.log("Cancelled")
}
});
};
};Character Sets and Layouts
Input Behavior
Styling
Last updated