Attachments forums

List of attachments posted on this forum.


All files on forums: 161053

Re: Indicators with ON/OFF buttons

Banzai, Sun Jul 12, 2020 3:14 am

Attached is a naked template.

So in the extern section, we make a UniqueButtonID

Code: Select all

extern string             UniqueButtonID        = "Mando";
and then in the Init section, we change the template a little bit.

Code: Select all

int init() //don't change anything here
  {
   IndicatorName = GenerateIndicatorName(UniqueButtonID); 
   IndicatorObjPrefix = "__" + IndicatorName + "__";
   IndicatorShortName(IndicatorName);
   IndicatorDigits(Digits);
   visibility.Init("show_hide_"+UniqueButtonID, IndicatorName, btn_text, button_x, button_y);

//DON'T put the init function here

   return 0;
};
All files in topic