button to exit embedded program and return to menu, won't work
Having problems with the "exit" and similar commands I'm assigning to a button in a custom skin.
I've made a skin for Romraider and got it working acceptably.
I'm using the Dfx2.0 skin and borrowed the buttombuttons as a template.
Using my own buttons on the top to send commands to Romraider (like switching guage type, show/hide parameter list, and log to file).
Anyway, I can use the existing menu button (that uses the "exit" command) in the lower left to return to main menu, works fine.
I'd like to add another button that actually closes Romraider and returns to main menu. The reason is I want the option to shut it down completely when I don't want it running in the background using resources. I can send and alt-f4 to close and that works, but whenever I append an additional "exit", "closewindow", "esc", or "load;menu.skin" to my new button, it will return to the main menu but then riderunner returns an error "invalid...." something or other and then crashes by exiting.
So I tried simply assigning one command to my new button, just "exit" same command that the menu button uses. Causes the same problem.
Can't figure this one out.
I'll post the skin file when I get home.
Second minor issue: Romraider takes a couple seconds to start. so when RR tries to maximize it to my assigned area defined by the skin it can't because Romraider is not there yet. Romraider ends up maximizing on its own but then see the menu bar. If I go back and forth from to the main menu and back (using the menu button that works), then when I return Romraider is embedded proper no visible menu bar. Anyway to delay RR so it doesn't try to maximize romraider before it is present?
Thanks