+2
Started

Enter the System settings of i3 pro via the side menu

Nikolay Rusanov 7 years ago in Applications / i3 Pro updated by Dmitry - support (expert) 7 years ago 3

The current methods to enter the side menu:

  • send a command from Transfer
  • hold the screen for 10 sec then input password

With the installer's account it would be convenient to open the app settings by press the button in side menu of application, if it will not be available for EndUser's account

Temporary you may use following trick:


1. After searching for the answer to this question, I found some interesting code in the projects on %UserProfile%\Documents\iRidium pro documents\lite\Downloads\Modules\

var l_pUser = IR.Cloud({cmd: IR.CLOUD_CMD_GET_USER});
    var userType = l_pUser.Type;
    if (userType == IR.CLOUD_USER_INSTALLATOR) {
...

2. If you create button with follow action in the empty project

function ItemPress(){
   i=0;
   while (item=IR.GetPopup(i)) IR.Log(item.Name+" "+i++)
}

you'll find that there are some built-in popups and items accordingly

3. Other types of events

for (i=0;i<100;i++)
IR.AddListener(i,0,function (e){IR.Log("Event "+this.i+" = "+((e!==undefined)? e .toString() : ""))},{i: i})


And together:

IR.AddListener(32, 0, function () {
   if (this.minit==undefined)  {
   try {
      var l_pUser = IR.Cloud({cmd: IR.CLOUD_CMD_GET_USER});
       var userType = l_pUser.Type;
       if (userType == 2) {
         var pp = IR.GetPopup("__IRIDIUM__Settings");
         var src = pp.CreateItem(IR.ITEM_BUTTON,"btnSysMenu",(pp.Width-134),(pp.Height-42),130,40); 
         src.Text="System Menu";
         var srcs=src.GetState(0); 
         srcs.TextAlign=6;
         srcs.TextColor=8060927;
         srcs.Color=0xFFFFFF00;
         //IR.CreateFont(1111, "HelveticaNeueCyr-Roman.otf", 11);//Delete if font is not added!
         //srcs.FontId=1111;
         IR.AddListener(IR.EVENT_ITEM_RELEASE,src,IR.ShowSystemMenu); 
      }
   } catch (e) {
      IR.Log("[ERROR] Can not create System Menu button! " + e.message + " : " + e.name);
   }    
      this.minit=true;
   }
});
Started

Здравствуйте!


Обновленный интерфейс появится в версии 1.2.0. На данный момент вы можете протестировать работу данного интерфейса в бета версии.