Jump to content



Photo

Adding controls to Table Specifics


  • Please log in to reply
4 replies to this topic

#1 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

  • Flag: ---------

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 07 July 2015 - 01:33 PM

I've toyed with the specifics but can you add buttons, radiobuttons, sliders & controls like that here too?


Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#2 BilboX

BilboX

    Enthusiast

  • Unit3D Pinball Team
  • 433 posts
  • Location:French Polynesia

  • Flag: France

  • Favorite Pinball: Metallica, Addams Familly, Scared Stiff, White Water

Posted 07 July 2015 - 01:49 PM

You have checkbox by default for booleans, input text box for floats and ints and ColorPicker.

 

For more controls, you will need to extend "OnGUI" but we don't encourage you this way because it is going to be deprecated...

What do you want to interface exactly?


UP2


#3 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

  • Flag: ---------

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 07 July 2015 - 01:51 PM

I have music tracks set to static int. To change song you type value. Would be easier from a mouse clicking a button or some keyboard event.

 

There is ways around it I suppose just in game with keyboard event anyway and update variable... It's not too important for buttons here, just wondered because I started to try and add rectangles and event :) . I easily go off the track and start experimenting.


Edited by chepas, 07 July 2015 - 01:55 PM.

Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#4 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

  • Flag: ---------

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 07 July 2015 - 03:19 PM

I have had the log running when changing values, and notice when table is first loaded all variables are called 4 times in the log?


Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#5 BilboX

BilboX

    Enthusiast

  • Unit3D Pinball Team
  • 433 posts
  • Location:French Polynesia

  • Flag: France

  • Favorite Pinball: Metallica, Addams Familly, Scared Stiff, White Water

Posted 08 July 2015 - 12:52 PM

Yes.

The file is read first just to catch the display setup BEFORE intializing the app. Then, load again (different process).

If I remember correctl, each time, th efirst display is the default value, the second is the saved one...


UP2