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: Adding message on Pause  (Read 1742 times)

0 Members and 1 Guest are viewing this topic.

electricd

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 501
  • Last login:February 14, 2025, 07:59:10 pm
  • I'm not a llama!
Adding message on Pause
« on: April 02, 2010, 08:54:46 am »
Hello,

I am compiling a custom version of mame .110 and would like to add a message box to appear on the screen when the game is paused.  I simply want it to dim as it already does and say  "Paused" in the center of the screen in a box.  Can anyone suggest a method which might work for me to do this?  Thanks!

ED7

Ginsu Victim

  • Yeah, owning a MAME cab only leads to owning real ones. MAME just isn't good enough. It's a gateway drug.
  • Trade Count: (+10)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 10092
  • Last login:June 28, 2025, 10:45:55 pm
  • Comanche, OK -- USA
Re: Adding message on Pause
« Reply #1 on: April 02, 2010, 09:16:42 am »
You can use CPwizard to do it....kinda

electricd

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 501
  • Last login:February 14, 2025, 07:59:10 pm
  • I'm not a llama!
Re: Adding message on Pause
« Reply #2 on: April 02, 2010, 09:26:16 am »
OK.  I was trying to build it into the source if possible.  A long time ago I had a compile that had this built in, so when ever you hit the P command, it would dim and display "PAUSED" in the center of the screen.  Seems like it would be as simple as calling one of the "build menu" functions that show other information on MAME and pass the string "PAUSED" to it for the content, but i am not for sure.  Figured someone probably had a handle on it since I had seen it done at least once before.

bkenobi

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:August 16, 2021, 10:41:52 pm
Re: Adding message on Pause
« Reply #3 on: April 02, 2010, 11:42:38 am »
You might be better off looking at a derivative version of MAME since there might be one that already includes this feature.  Off the top of my head, you might consider MAMEFX (don't know if it does that, but it does a lot of other cool stuff).

electricd

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 501
  • Last login:February 14, 2025, 07:59:10 pm
  • I'm not a llama!
Re: Adding message on Pause
« Reply #4 on: April 02, 2010, 02:14:52 pm »
I found a function in the source called ui_popup() that seems to be used to display messages on top of MAME.  Not sure yet where it places the messages, but could something like this be used?

bkenobi

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1668
  • Last login:August 16, 2021, 10:41:52 pm
Re: Adding message on Pause
« Reply #5 on: April 02, 2010, 03:16:52 pm »
You can code MAME to do whatever you want given sufficient coding skills on your part.  I haven't looked into the source enough to help you other than to suggest that you look for examples.  So, if it were me, I'd try to find where the configuration menu pops up.  That code is likely similar to what you are trying to do.