I don't think it is, as you basically access the ability itself when using an ability trigger. To my knowledge you cannot access the UI buttons. So when triggers only access abilities, that means if you order an scv to construct a supply depot via trigger, it doesn't matter if the supply depot button is in a submenu or not.
There is a way to realise your vision but it might be a little work intensive for a small thing like that
What you could do is add all the abilities you want in that submenu, to the unit on the main menu field (the place where the submenu button would also be) and hide them via trigger. Then create an ability - instant that does nothing, using that as a pseudo a submenu button. Now detect when that ability is used which means that the button is pressend and via trigger hide all buttons in the main ability menu and show all button which you want to have in the submenu. This way you could also (pseudo-) open the submenu by executing the submenu ability. Don't forget to create the back button the same way
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is it possible to order unit to enter command card`s submenu? Or just order to press button №x?
I don't think it is, as you basically access the ability itself when using an ability trigger. To my knowledge you cannot access the UI buttons. So when triggers only access abilities, that means if you order an scv to construct a supply depot via trigger, it doesn't matter if the supply depot button is in a submenu or not.
There is a way to realise your vision but it might be a little work intensive for a small thing like that
What you could do is add all the abilities you want in that submenu, to the unit on the main menu field (the place where the submenu button would also be) and hide them via trigger. Then create an ability - instant that does nothing, using that as a pseudo a submenu button. Now detect when that ability is used which means that the button is pressend and via trigger hide all buttons in the main ability menu and show all button which you want to have in the submenu. This way you could also (pseudo-) open the submenu by executing the submenu ability. Don't forget to create the back button the same way