nfprojects / nfengine

Game engine
GNU General Public License v2.0
55 stars 4 forks source link

Add MessageWindow to Common #192

Open lookeypl opened 7 years ago

lookeypl commented 7 years ago

As an example in Assertion.cpp shows, sometimes we might want to create a popup window through Window Manager on OS. While on Windows it is as easy as calling a single WinAPI call (MessageBox), on Linux you need to do everything manually. Moreover, Windows' MessageBox might be too simple for our needs, so even using it won't be enough.

MessageWindow's interface does not have to be very user friendly or prone to errors, we will use it as an internal mechanism in Engine to ex. notify about failed assertions, crashes and other unexpected behavior. In other words, we assume that end user won't need to access it.

mkulagowski commented 7 years ago

Some tutorial about using X11 to create buttons: http://xopendisplay.hilltopia.ca/2009/Mar/Xlib-tutorial-part-9----Buttons.html