I've read the Post on "Static Code Modules", and I have a question concerning them....
For a game program, I want to have a static code module that brings up a panel with subpanels, seekbars and labels for user settings, an OK button and a Cancel button. The intent is to invoke this Configuration Panel from the main screen to set the game Process Global parameters as desired, then return to the game -- if the parameters are changed, the game re-starts using the newly-set parameters, otherwise the game continues where it left off. Process Globals handle all Main-Activity-to-Configuration-Panel-Sub "communications".
I currently have this Configuration Panel "activity" set up as its own project (outside of my game program) so I can work out all of the kinks, but I would like this "activity" to work "inside" my main program as a Sub (rather than an Activity) and overlay the Configuration Panel (like a message box) over the main screen until the OK or Cancel button is pressed.
Is it possible to overlay a panel on top of an application as described, then just perform a RemoveView (and/or RemoveAllViews) for that overlaying panel (and its sub-views), to have the original underlying main screen re-appear as it was before the Configuration Panel was invoked (without resorting to Activity_Pause and Activity_Resume)?
Another related question: If this overlaying panel is possible, do I need to be sure that the overlaying panel completely covers any buttons that might exist on the underlying Main Game Screen so that those underlying buttons are not usable?
For a game program, I want to have a static code module that brings up a panel with subpanels, seekbars and labels for user settings, an OK button and a Cancel button. The intent is to invoke this Configuration Panel from the main screen to set the game Process Global parameters as desired, then return to the game -- if the parameters are changed, the game re-starts using the newly-set parameters, otherwise the game continues where it left off. Process Globals handle all Main-Activity-to-Configuration-Panel-Sub "communications".
I currently have this Configuration Panel "activity" set up as its own project (outside of my game program) so I can work out all of the kinks, but I would like this "activity" to work "inside" my main program as a Sub (rather than an Activity) and overlay the Configuration Panel (like a message box) over the main screen until the OK or Cancel button is pressed.
Is it possible to overlay a panel on top of an application as described, then just perform a RemoveView (and/or RemoveAllViews) for that overlaying panel (and its sub-views), to have the original underlying main screen re-appear as it was before the Configuration Panel was invoked (without resorting to Activity_Pause and Activity_Resume)?
Another related question: If this overlaying panel is possible, do I need to be sure that the overlaying panel completely covers any buttons that might exist on the underlying Main Game Screen so that those underlying buttons are not usable?