A gamepad dialog
Hello,
To create a gamepad dialog, here's how to : First your Keyboard dialog : ex : Lua Code:
This one will be called thanks to : Lua Code:
"LUA_LOW_MEMORY" is the name (it is in ESO_Dialogs table. { newLimit = newLimit } is the data . newLimit = xxxx refers to dialog.data.newLimit in the dialog, xxx will be sent as value. { mainTextParams = { currentLimit, newLimit } } is the params for the mainText string. currentLimit will go in my <<1>> and newLimit in my <<2>> (mainTextParams is zo_strformat()'ed !) So now, this code don't work for gamepad ! :D To simply make it gamepad compliant, you'll need to change 2 little things : First, in your dialog definition, you'll need to add the gamepadInfo data : The simpliest one is : gamepadInfo = { dialogType = GAMEPAD_DIALOGS.BASIC }, You can look at GAMEPAD_DIALOGS table to see which other values of dialogType are accepted. There is also others values acceepted in gamepadInfo , like Lua Code:
It will become : Lua Code:
Then, the call itself will be modified for : Lua Code:
And it works ! |
All times are GMT -6. The time now is 04:11 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI