I created this script long ago for one of my menus and any other project. Its very flexible
and can be used for a lot of things. It uses a modified window+sprite combination
because i think that it looks better, anyway you can modify it or do what you want.
-The window size and position is based on the text size.
-Autocenter in the screen if no position specified.
-All other sizes or positions are set automatically.
-You can define default index used and some other values.
-It have methods for automatically visible/invisible, dipose, hide, etc, all sprites
-You can add a question to it. With this a modified version of a window command
-You can changue the text, ask option, x and y in every call.
-You can use it for multiples purposes in a signle scene. For that you have to
changue the message_type value that specifies wich of the ways of being used