needing to select a recipe in keyboard provisioning recipe list
I'm needing to select a specific recipe in the keyboard's provisioning recipe list.
I've managed to do it for gamepad mode with, Code:
GAMEPAD_PROVISIONER.recipeList:SetSelectedIndex(recipeData.listIndex) Any help would be appreciated. |
Normally the variables are equal and just have a KEYBOARD (or no prefix at all) or GAMEPAD as prefix. Try just PROVISIONER or check the esoui code at github (link is at the wiki e.g.) at esoui/ingame/provisioner or similar.
The variable is either defined in the xml file or at the bottom of some lua file in the keyboard files, like PROVISIONER = Zo_Provisioner:New(...) https://github.com/esoui/esoui/blob/...rovisioner.lua Line 629 |
I ended up going a different route for the reasons of,
- could not figure out how to make it change to the Drinks tab for gamepad mode. - could not figure out how to manipulate the tree nodes to have it select the recipe in keyboard mode. It now sets the results tooltip and ingredients directly. |
Changing the tab buttons is done via applying the "descriptor" (structure containing all relevant data of the tab button) to the ZO_MenuBar tab.
There exists a function which does this and then changes the tab for you, let me search it. https://github.com/esoui/esoui/blob/...zo_menubar.lua Get descriptor for a tab button: ZO_MenuBar_GetSelectedDescriptor(buttonControl) Set descriptor to change to a tab button: ZO_MenuBar_SelectDescriptor(self, descriptor, skipAnimation, reselectIfSelected) Here it is used in the provisioner part: https://github.com/esoui/esoui/blob/...ioner.lua#L160 So it should be something like this: Lua Code:
If you know the exact descriptor name you can even use this instead. They are defined here in the provsioner crafting: https://github.com/esoui/esoui/blob/...ioner.lua#L123 So it's a filtertype for the buttons. And these are defined at this line and below: https://github.com/esoui/esoui/blob/...ioner.lua#L133 So it's one of these: Code:
PROVISIONER_SPECIAL_INGREDIENT_TYPE_SPICES Lua Code:
|
Thank you for this info, I will look into it
|
I ended up figuring this out.
Lua Code:
|
All times are GMT -6. The time now is 09:32 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI