Build Your Own Arcade Controls Forum
Main => Main Forum => Topic started by: electricd 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
-
You can use CPwizard to do it....kinda
-
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.
-
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).
-
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?
-
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.