Jump to content



Photo
- - - - -

PinballY - Freeform Descriptive Text on Table Browsing Wheel

PinballY Javascript addon Category Badges

  • Please log in to reply
8 replies to this topic

#1 Tesla

Tesla

    Pinball Fan

  • Silver Supporter
  • 1,556 posts
  • Location:Texas, USA

  • Flag: United States of America

  • Favorite Pinball: Star Trek - TNG

Posted 28 October 2026 - 03:11 AM

Hopefully, this is not a "feature request" and some seasoned PinballY user can think of an existing way to implement it.

 

My Browsing Wheel is just static images (and I like it that way). Less distractions while selecting a Table to play and it's obvious to family members that the Table isn't actually started yet.

 

I am looking for a way to add some Text that says "ALT-Sound" ... without adding it to the Table's name.

 

Showing in the upper Info-Box would be okay also. However, I didn't really see any fields that were usable for free-form text.

 

Categories function would be a possibility, but a Table's assigned Category does not appear when browsing All-Tables. Too bad the Category doesn't appear as a graphic (badge or tag) somewhere on the Table's screen. 

 

Another word I use is "Enhanced" ... that is for XenonPH's music-enhanced tables like Flash Gordon. Now that I got Pup-Player (standalone) working, "PUP-Enabled" is another tag I might need eventually.

 

Any ideas ... short of a custom Javascript Addin (assuming that is even possible). I am hoping there is an existing feature that can be bent to provide this functionality. It does so much, kinda hard to believe this isn't already possible.


Edited by Tesla, 05 November 2026 - 10:41 PM.


#2 Tesla

Tesla

    Pinball Fan

  • Silver Supporter
  • 1,556 posts
  • Location:Texas, USA

  • Flag: United States of America

  • Favorite Pinball: Star Trek - TNG

Posted 28 October 2026 - 08:22 PM

Looks like Machine-Type will hold misc. text after-all. Treats in like an abbreviation. This is the result ... sorta works ... I could probably live with it if it instead displayed by itself, down as the 4th line in the Info-Box.

 

I'll keep looking for a solution, but (AFAIK) I've exhausted all the easy-options.

 

py_wheel_infobox_m-type_abbr_text_t.png


Edited by Tesla, 28 October 2026 - 08:24 PM.


#3 Tesla

Tesla

    Pinball Fan

  • Silver Supporter
  • 1,556 posts
  • Location:Texas, USA

  • Flag: United States of America

  • Favorite Pinball: Star Trek - TNG

Posted 02 November 2026 - 10:07 PM

I decided to go-ahead and write a PinballY Javascript addon to accomplish this. Since PinballY already has a functioning Categories feature, I first create those (ALT-Sound, Multi-Ball, Enhanced [by XenonPH], etc.) and assign them to various Tables.
Then I use the script to form tags or Badges of them, and display them on a screen while browsing the Table selection wheel (while still showing “All Tables” and not in Attract-Mode).
 
It’s been about 9 months since I’ve written one of these (or really, written any Javascript period).
 
Again, I’m doing the initial development on my office computer. It is running 2-screens with B2S-Server. So, PinballY runs in a tall-window on Primary-Monitor, but the BackGlasses display full-screen on my Monitor-2. This seemed like a good screen/window to target at first. I first created a short-and-simple-one that displays basic text to a window (my other Addins ran hidden). I then managed to come-up with some code that seemed to latch-onto the current Table's assigned Categories. IIRC, next step was to make the badges and they be "acceptable looking".
 
After I had that working, I switched the rendering window to the Main one. Due to the obvious differences in how the two screens/monitors are setup (orientation, etc) I decided to copy my work to a second-script … one tailored for each Window type. Normally, you only want the Badges on one-screen-or-the-other. I’m just glad to have something working already, so I haven’t messed with the formatting much (but this is what I have so far). I plan to deploy them to my cabinet later this week.
 
On BackGlass. A little big but all is adjustable. Still, a good test of core-code. It was tested to handle up to 3 Badges of this size on one line (which suits my needs).
table-cats50bg_t.jpg
 
On Main-Screen (will likely just use this one).
table-cats60a_t.jpg   table-cats60b_t.jpg 
 
These are my example Categories, but I think you get the idea. I would show you an ALT-Sound example, but I don't happen to have any of those particular Tables actually installed on my office-computer. All the examples above are fairly accurate and how I plan to Tag them on my cabinet.

Edited by Tesla, 08 November 2026 - 03:32 AM.


#4 Tesla

Tesla

    Pinball Fan

  • Silver Supporter
  • 1,556 posts
  • Location:Texas, USA

  • Flag: United States of America

  • Favorite Pinball: Star Trek - TNG

Posted 04 November 2026 - 12:57 AM

Both scripts look and run fine on my 3-screen cabinet. They basically look the same as above screenshots (from my desktop computer).

 

I have around 30-40 tables. I setup and assigned my 6 or so current Categories. They were easy to setup and assign (using PinballY's common user menus).

I went-ahead and turned off the BackGlass (test) script. Now, I'm just running the one tailored for the main-window. 

Umm, I think I'm done.

 

Edit:

I went ahead and defined most of my desired Categories, but if I need a random one (not defined in script) it also works ... and just uses a random badge color.

 

-------------------------------

 
const categoryColors = {
    "Multi-Ball":  0xFF1976D2, //Blue
    "Enhanced":    0xFF7B1FA2, //Violet
    "ALT-Sound":   0xFF2E7D32, //Dark Green
    "Favorite":    0xFFEF6C00, //Orange
    "PUP-Enabled": 0xFF5E35B1, //Purple
    "Magna-Save":  0xFFC62828  //Bright Red
 
// Other commonly used categories would be like: Original, EM, SS, VPX, FX3, etc.
 
--------------------------------

Edited by Tesla, 08 November 2026 - 12:26 AM.


#5 Flying Dutchman

Flying Dutchman

    Pinball Wizard

  • VIP
  • 3,262 posts

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

  • Favorite Pinball: Medieval Madness / Champion Pub



Posted 04 November 2026 - 08:25 AM

Very nice & very useful Teslal!  :dblthumb:

 

As I prefer to show a ´Topper´ on my fulldmd screen from within PinballY! in attract mode instead of the actual FullDMD image present (which, only shows up after starting a table),

a ´Full DMD´ catagory also might be usefull to add?

 

Cheers,

FD.

Attached Files


Edited by Flying Dutchman, 04 November 2026 - 08:27 AM.

'Flying Dutchman'

In need for a Backglass or 'Active Backglass / UVP' please 'click' on below and visit the complete revised website at:
Posted Image

#6 Tesla

Tesla

    Pinball Fan

  • Silver Supporter
  • 1,556 posts
  • Location:Texas, USA

  • Flag: United States of America

  • Favorite Pinball: Star Trek - TNG

Posted 04 November 2026 - 03:00 PM

1. As I prefer to show a ´Topper´ on my fulldmd screen from within PinballY! in attract mode instead of the actual FullDMD image present (which, only shows up after starting a table),

 

2. a ´Full DMD´ category also might be usefull to add?

 

 

 

1. Nice use of PinballY's existing features. It certainly is flexible and feature-rich (even without Addons). 

 

2. Sure. You would just add it normally in PinballY, and it would be a new Badge immediately. 

 

Funny you mention "Full DMD". That is one of the auxiliary things I keep track of in my Table spreadsheet.



#7 Flying Dutchman

Flying Dutchman

    Pinball Wizard

  • VIP
  • 3,262 posts

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

  • Favorite Pinball: Medieval Madness / Champion Pub



Posted 04 November 2026 - 07:27 PM

 

1. As I prefer to show a ´Topper´ on my fulldmd screen from within PinballY! in attract mode instead of the actual FullDMD image present (which, only shows up after starting a table),

 

2. a ´Full DMD´ category also might be usefull to add?

 

 

 

1. Nice use of PinballY's existing features. It certainly is flexible and feature-rich (even without Addons). 

 

2. Sure. You would just add it normally in PinballY, and it would be a new Badge immediately. 

 

Funny you mention "Full DMD". That is one of the auxiliary things I keep track of in my Table spreadsheet.

 

It would be nice indeed to see immediately when there´s a FullDMD available for a certain table, without having to select a certain category ´FullDMD´first. :dblthumb: 

Are yoiu going to release your PinballY! add on script soon?  :otvclap: 

 

Cheers,

FD.


'Flying Dutchman'

In need for a Backglass or 'Active Backglass / UVP' please 'click' on below and visit the complete revised website at:
Posted Image

#8 Tesla

Tesla

    Pinball Fan

  • Silver Supporter
  • 1,556 posts
  • Location:Texas, USA

  • Flag: United States of America

  • Favorite Pinball: Star Trek - TNG

Posted 04 November 2026 - 11:56 PM

Are you going to release your PinballY! add on script soon?  :otvclap:

 

 

I'm flattered you want to try it and maybe use it.

Sure, here you go.

 

// PinballY Javascript Addon - Category-Badges.js - v1.62
// Display assigned Table Categories as Badges in the main-window
 
 
Just click the link above and then click the Download-Button. Un-block before un-zipping.

And if anyone else grabs it, let me know how you like it.


Edited by Tesla, 05 November 2026 - 10:43 PM.


#9 Flying Dutchman

Flying Dutchman

    Pinball Wizard

  • VIP
  • 3,262 posts

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

  • Favorite Pinball: Medieval Madness / Champion Pub



Posted 05 November 2026 - 08:33 AM

Great addition to PinballY! Tesla .. Thanks, love it! :yahoo:

 

Cheers,

FD.

 

Attached Files


'Flying Dutchman'

In need for a Backglass or 'Active Backglass / UVP' please 'click' on below and visit the complete revised website at:
Posted Image





Also tagged with one or more of these keywords: PinballY, Javascript addon, Category Badges