mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Linux implementation. Include changes for gcc x64.
This commit is contained in:
parent
4e52824a42
commit
4e9034854d
56 changed files with 1108 additions and 3075 deletions
|
|
@ -105,6 +105,18 @@ int XMessageBox::alertRetryCancel(const char *windowTitle, const char *message)
|
|||
return show();
|
||||
}
|
||||
|
||||
int XMessageBox::alertAssert(const char *windowTitle, const char *message)
|
||||
{
|
||||
mMessage = message;
|
||||
mTitle = windowTitle;
|
||||
mButtons.clear();
|
||||
mButtons.push_back(XMessageBoxButton("Exit", OK));
|
||||
mButtons.push_back(XMessageBoxButton("Ignore", Cancel));
|
||||
mButtons.push_back(XMessageBoxButton("Ignore All", IgnoreAll));
|
||||
mButtons.push_back(XMessageBoxButton("Debug", Retry));
|
||||
return show();
|
||||
}
|
||||
|
||||
void XMessageBox::repaint()
|
||||
{
|
||||
int white = WhitePixel(mDisplay, DefaultScreen(mDisplay));
|
||||
|
|
@ -421,7 +433,7 @@ int XMessageBox::show()
|
|||
XSetWMName(mDisplay, mWin, &wtitle);
|
||||
|
||||
// show window
|
||||
XMapWindow(mDisplay, mWin);
|
||||
XMapRaised(mDisplay, mWin);
|
||||
// move it in case some bozo window manager repositioned it
|
||||
XMoveWindow(mDisplay, mWin,
|
||||
(mScreenWidth - mMBWidth) / 2, (mScreenHeight - mMBHeight) / 2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue