[SOLVED] Callback when checkbox control is clicked?

Author Topic: [SOLVED] Callback when checkbox control is clicked?  (Read 845 times)

Is there some sort of callback for when the one of the checkbox controls on the add-on list is clicked? I know there's CustomGameGui.clickAddOnItem but that doesn't help with anything. I want to be able to get the specific checkbox that was clicked.
« Last Edit: August 11, 2016, 01:01:51 PM by Electrk. »


Try if this works:

package Test
{
   function CustomGameGui::clickAddOnItem()
   {
      parent::clickAddOnItem();
      echo($ThisControl);
   }
};

activatePackage(Test);


I believe $ThisControl is set before running the command on any gui control.

Try if this works:

package Test
{
   function CustomGameGui::clickAddOnItem()
   {
      parent::clickAddOnItem();
      echo($ThisControl);
   }
};

activatePackage(Test);


I believe $ThisControl is set before running the command on any gui control.

ah, this works
thanks!