Is it possible to put a VirtualButton on a MultiTarget?
For example, I wanna put a rectangle VirtualButton at the front of the Lion Flakes box, instead of the lion's head. And the texture of the bowl moving around could change when we pressed on that button...
I think it could be possible, because a MultiTarget is composed of several ImageTargets, and each ImageTarget can contains a VirtualButton...
I tried some things, but it does not work! It is hard to explain exactly what I did, because I had to modify different classes, but I will try to :
-In config.xml, I replaced
For the menu :
-In res/values/strings, I added the String relative to the VirtualButton
-In res/drawable, I added the button's icon
-In MultiTargets.java, I added the MENU_BUTTON in the menu (in OnCreateOptionsMenu)
-Always in MultiTargets.java, to modify the OnOptionsItemSelected method, I had to declare the addButtonToToggle native method, and implement it in MultiTargets.cpp (where I had to declare all the variables related to this, like updateBtns, buttonMask, etc...)
-In MultiTargets.cpp, I modified the UpdateCallBack method, and created the Toggle VirtualButtons method.