Author Topic: Verted -- Layout for Vertical Cabinets  (Read 576 times)

mahuti

  • Administrator
  • Sr. Member
  • *****
  • Posts: 184
    • View Profile
    • Github Repositories
Verted -- Layout for Vertical Cabinets
« on: January 08, 2021, 06:27:17 PM »
Verted Layout


Can be downloaded here: https://github.com/mahuti/Verted

This layout is intended primarily for vertical cabinets, but can be used for different sized screens. This layout will scale to any size, but is intended for use on vertical cabinets. This theme includes tabs to show snaps, flyers, cabinets, and history info (requires history.dat plugin be installed, configured, and enabled)

This layout is based off of a previous theme called "The Invaders", though largely uses different code. Primary differences from the original include bug fixes, the ability to show or hide the games list, improved tab interface with options to show/hide tabs and will disable tabs without content on a per-game basis, dynamic scaling, and selectable colors for bezel and tabs. The design is basically the same, but the code is nearly all new. I started using The Invaders theme on my cabinet, but I wanted some more flexibility, and I wanted a reason to fine-tune my Pos (dynamic positioning) module. Also, the original had some font-stretching due to differences in the sizes of my vertical monitors versus the layout. This version will scale fonts rather than stretch them.

Requirements

1. Add the animate2 and pos modules to AttractMode's modules folder.
Though I've included those 2 modules:
You can find the latest version of the animate2 module here: https://github.com/liquid8d/attract-extra/tree/master/modules
The latest version of the Pos module can be found here: https://github.com/mahuti/Pos-Module

2. You'll need to have artwork set up for the following: cabinet, flyer, marquee, snap, wheel if you want to use all of the functionality

3. To use the History/Info tab, take a look at the setup instructions under the "Show History Info Tab" instructions below

Options

Show Games list

Off by default

If enabled, shows list of games on the left-hand side.



Tabs

The tabs feature requires custom1 control be configured in AttractMode. To add a custom control go to: AttractMode Settings > controls > custom1 > add input. Once the input has been added, you can use this control to select available tabs. Tabs that have been enabled, but do not have content will be dimmed and unselectable

Show History Info Tab
Off by default

If enabled, shows the History/Info tab. To use this feature:

1. History.dat plugin must be enabled and working.
2. You must generate the History.dat plugin's index. After generating the index the first time, you may need to restart AttractMode
3. You must set the history.dat location in the layout options (even though it's already set up in the history.dat plugin)
 
Show Flyers Tab

Enabled by default

If enabled, shows the Flyer tab

Show Cabinets Tab

Enabled by default

If enabled, shows the Cabinets tab

Bezel Style/Color

This sets the colors for the bezel and the tabs. The bezel is the image that wraps around the snap image.



Blink the PLAY NOW graphic

When set to yes, the play now graphic will pulse

Scaling

Controls how the flyers & cabinet artwork should be scaled. Stretch will fill the entire space. Scale will scale up/down to fit the space.

Rotate

Controls how the layout should be rotated



Credit to: "The Invaders" by MarkC74,  with enhancements by FrizzleFried, ArcadeBliss and others... original posting: http://forum.attractmode.org/index.php?topic=2120.0 for the layout and concepts, animation, and more.

Also, this theme uses some of the history.dat code from here: http://forum.attractmode.org/index.php?topic=643.0

 

jedione

  • Hero Member
  • *****
  • Posts: 992
  • punktoe
    • View Profile
Re: Verted -- Layout for Vertical Cabinets
« Reply #1 on: January 09, 2021, 06:46:35 AM »
i am getting this.." the index 'charsize' does not exist"

help a friend....

mahuti

  • Administrator
  • Sr. Member
  • *****
  • Posts: 184
    • View Profile
    • Github Repositories
Re: Verted -- Layout for Vertical Cabinets
« Reply #2 on: January 09, 2021, 09:36:04 AM »
Frustrating... oops. I included the wrong version of the pos module. I've updated the link with the working version. Sorry about that.

jedione

  • Hero Member
  • *****
  • Posts: 992
  • punktoe
    • View Profile
Re: Verted -- Layout for Vertical Cabinets
« Reply #3 on: January 09, 2021, 05:49:53 PM »
thanks....will try out
help a friend....

mahuti

  • Administrator
  • Sr. Member
  • *****
  • Posts: 184
    • View Profile
    • Github Repositories
Re: Verted -- Layout for Vertical Cabinets
« Reply #4 on: January 09, 2021, 05:54:22 PM »
I'm interested to see if the scaling works well across different screen sizes. I tested it across a handful of sizes and screen depths here, but there is nothing like putting something into production to work the bugs out.

"I don't often test.... but when I do, I do it in production"  ;D

mahuti

  • Administrator
  • Sr. Member
  • *****
  • Posts: 184
    • View Profile
    • Github Repositories
Re: Verted -- Layout for Vertical Cabinets
« Reply #5 on: January 09, 2021, 09:16:38 PM »
Just noticed after exiting a game there is a bug now with the displaying history on my arcade cabinet. I'll check local. Should be a quick fix, up until the last day or so it worked.

markc74

  • Full Member
  • ***
  • Posts: 27
    • View Profile
Re: Verted -- Layout for Vertical Cabinets
« Reply #6 on: Yesterday at 08:44:10 AM »
That's some nice changes you made. I never ended up using it in my cab but did like the layout. I might come back to it as some point (using your code as it's nicer  ;D)

mahuti

  • Administrator
  • Sr. Member
  • *****
  • Posts: 184
    • View Profile
    • Github Repositories
Re: Verted -- Layout for Vertical Cabinets
« Reply #7 on: Yesterday at 01:20:51 PM »
Thanks. I'm still tweaking it. Oomek is talking about 9-patch scaling for rounded corners, but I might implement something similar myself in the short term. I really hate the stretched rounded corners I look at while testing it on a widescreen. Meantime I'm also working on automatic history scrolling. About 90% working so far.