Search The Support Knowledgebase


(database of technical support questions and answers):
   

Author Topic: ButtonBox : indexation square_btn_up

Offline Makefred

  • Standard Level
  • Guru
  • *
  • *
  • *
  • Posts: 335
ButtonBox : indexation square_btn_up
« on: May 22, 2019, 05:47:43 PM »
Hello.

Comment indexé un bouton type square_btn_up de sorte qu'en appuyant dessus le square_button_hallo_green soit activé?

Merci.
« Last Edit: May 22, 2019, 08:20:48 PM by theStaff »
  • My SLI Devices List:
    SLI-PRO, VDASH-EMU-ANDROID, VDASH-EMU-WIN, V2RButtonBox, VDASH-STREAMDECK

Marked as best answer by theStaff on May 22, 2019, 10:26:01 PM

Offline Software Support Staff

  • Management
  • Master Guru
  • *
  • *
  • Posts: 3224
    • eksimracing website
Re: ButtonBox : indexation square_btn_up
« Reply #1 on: May 22, 2019, 08:18:59 PM »
Votre question manque de précision, mais j'ai fini par trouver! :)
 
vous parlez du pack buttonbox qui contient un certain nombre d'images qui peuvent servir pour les objets de type Control Image Pushbutton (des boutons formés par une image UP et une image Down qui peut d’ailleurs être la même).

Donc pour répondre à votre question:


1 vous créez un Control Image PushButton et vous assignez l'image square_btn_up et square_btn_down avec par exemple l'index de bouton numéro 1

2 vous créez un objet image que vous assignez à l'image square_button_hallo_green dans lequel vous indiquez la fonction Eval buttonstate(#) qui test l’état d'un bouton.

buttonState(1)

le 1 ici est évidement l'index de votre bouton et doit etre modifié si vous utilisez un autre index.

Regards,
EKSIMRacing Staff



REMINDER: contact your hardware supplier/manufacturer for hardware issue, this support area is for software assistance only. Read the rules. Thank you.

Offline Makefred

  • Standard Level
  • Guru
  • *
  • *
  • *
  • Posts: 335
Re: ButtonBox : indexation square_btn_up
« Reply #2 on: May 22, 2019, 10:06:38 PM »
C’est exactement ça. Parfait. Merci.
  • My SLI Devices List:
    SLI-PRO, VDASH-EMU-ANDROID, VDASH-EMU-WIN, V2RButtonBox, VDASH-STREAMDECK