Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: How to change the colors of the Mame UI screens?  (Read 6331 times)

0 Members and 1 Guest are viewing this topic.

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
How to change the colors of the Mame UI screens?
« on: June 04, 2009, 11:49:12 pm »
I'm talking about the bluish screen that comes up when you hit tab (when you're actually running a game).

Is that even possible?

I found this chunk in ui.h

/* handy colors */
#define ARGB_WHITE            MAKE_ARGB(0xff,0xff,0xff,0xff)
#define ARGB_BLACK            MAKE_ARGB(0xff,0x00,0x00,0x00)
#define UI_FILLCOLOR         MAKE_ARGB(0xe0,0x10,0x10,0x30)
#define UI_YELLOWCOLOR         MAKE_ARGB(0xe0,0x60,0x60,0x10)
#define UI_REDCOLOR            MAKE_ARGB(0xf0,0x60,0x10,0x10)


And it +looks+ like the UI_FILLCOLOR is used for the menu background, but I'm not 100% sure.

I found how to customize the font used (covert a TTF to BDC file and name it ui.bdc), but no luck with changing the color of the font.

According to the mame notes, custom Font was added back around .31 and custom menu colors in .36, but I have yet to find any mention of actually setting custom colors.

Any ideas or am I just totally missing the obvious?

Ummon

  • Trade Count: (+13)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5244
  • Last login:June 09, 2010, 06:37:18 pm
Re: How to change the colors of the Mame UI screens?
« Reply #1 on: June 05, 2009, 12:26:12 am »
That's....not something I even thought of.  Play around with values, I guess.
Yo. Chocolate.


"Theoretical physics has been the most successful and cost-effective in all of science."

Stephen Hawking


People often confuse expressed observations with complaint, ridicule, or - even worse - self-pity.

EwJ

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 366
  • Last login:October 12, 2022, 10:16:06 pm
Re: How to change the colors of the Mame UI screens?
« Reply #2 on: June 05, 2009, 08:35:36 am »
I'm talking about the bluish screen that comes up when you hit tab (when you're actually running a game).

#define UI_FILLCOLOR         MAKE_ARGB(0xe0,0x10,0x10,0x30)

And it +looks+ like the UI_FILLCOLOR is used for the menu background, but I'm not 100% sure.

A red,green,blue value of 10, 10, 30 (as it looks like it's showing for UI_FILLCOLOR) would give a dark blue (if these are r,g,b, values) :dunno
You could try changing it to maybe 60,0,0 - see if it turns reddish to verify.
 :dunno
What did you want to change?

drventure

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4152
  • Last login:April 23, 2024, 06:53:06 pm
  • Laser Death Ray Bargain Bin! Make me an offer!
Re: How to change the colors of the Mame UI screens?
« Reply #3 on: June 05, 2009, 08:50:13 am »
Oh, I was just looking to change it from the bluish color it is now to more of a goldish color, that would be more in keeping with my cab.

If it was just an INI setting, cool, but I'm not sure I want to go hacking the source just for something like that, then I'd have to maintain the odd version.

EwJ

  • Trade Count: (+6)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 366
  • Last login:October 12, 2022, 10:16:06 pm
Re: How to change the colors of the Mame UI screens?
« Reply #4 on: June 05, 2009, 10:10:59 am »
If there is an obvious place to adjust these, I'm missing it too.
Maybe someone will chime in.

Ummon

  • Trade Count: (+13)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5244
  • Last login:June 09, 2010, 06:37:18 pm
Re: How to change the colors of the Mame UI screens?
« Reply #5 on: June 06, 2009, 08:03:21 pm »
Not that I know of. But I'm betting the value thing is as you said, EWJ. Look up the charts, and there you go, dr. Just record the original values. Also, you could request a UI feature for that of the devs.
Yo. Chocolate.


"Theoretical physics has been the most successful and cost-effective in all of science."

Stephen Hawking


People often confuse expressed observations with complaint, ridicule, or - even worse - self-pity.

Ummon

  • Trade Count: (+13)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5244
  • Last login:June 09, 2010, 06:37:18 pm
Re: How to change the colors of the Mame UI screens?
« Reply #6 on: June 13, 2009, 01:36:04 am »
Hey, check this out:

http://mrdo.mameworld.info/mame_artwork_supp.html

FONTS
With the release of 0.107, MAME now has support for different fonts in the User Interface menu. Simply take any .BDF font, name it to ui.bdf, and place it in your MAME directory, and you're good to go.

As a mainly Windows, user, however, I had never heard of BDF fonts (they're an X-Windows thing as far as I can tell). Anyway, I found this neat little program that converts TTF fonts to BDF, called otf2bdf. To make the font show up decent enough, you need to make sure to convert it to a big enough point size. I used the following commandline when converting the ones below:


C:\>otf2bdf -p 48 fontname.ttf -o ui.bdf
Below are some of the ones that came out half-decent. Just click on the pic, and unzip the file to your MAME directory. More coming soon (or whenever...)
Yo. Chocolate.


"Theoretical physics has been the most successful and cost-effective in all of science."

Stephen Hawking


People often confuse expressed observations with complaint, ridicule, or - even worse - self-pity.