本文整理汇总了C++中AppWindow::CreateGlobalUI方法的典型用法代码示例。如果您正苦于以下问题:C++ AppWindow::CreateGlobalUI方法的具体用法?C++ AppWindow::CreateGlobalUI怎么用?C++ AppWindow::CreateGlobalUI使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AppWindow
的用法示例。
在下文中一共展示了AppWindow::CreateGlobalUI方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ProcessMessage
//.........这里部分代码省略.........
{
extern bool loggingEnabled;
loggingEnabled = true;
}
else if (msg == "PrintExpressionSymbols")
{
Expression::printExpressionSymbols = true;
}
else if (msg == "List cameras")
{
CameraMan.ListCameras();
}
else if (msg == "mute")
{
AudioMan.QueueMessage(new AMGlobal(AM_DISABLE_AUDIO));
// AudioMan.DisableAudio();
}
else if (msg == "muteSFX")
{
AudioMan.QueueMessage(new AMGlobal(AM_MUTE_SFX));
}
else if (msg == "CreateMainWindow")
{
// Creates the main application AppWindow. A message is sent upon startup from the initializer thread for this.
if (!WindowMan.MainWindow())
{
AppWindow * mainWindow = WindowMan.CreateMainWindow();
// Optionally set more user-related stuff to the options before creating it.
// Then create it!
mainWindow->Create();
/// Create default UI and globalUI that may later on be replaced as needed.
mainWindow->CreateUI();
mainWindow->CreateGlobalUI();
mainWindow->backgroundColor = Vector4f(1,0,0,1);
}
// Reveal the main AppWindow to the user now that all managers are allocated.
WindowMan.MainWindow()->Show();
}
else if (msg == "HideWindows")
{
if (MainWindow())
{
MainWindow()->Hide();
}
}
else if (msg == "DestroyMainWindow" ||
msg == "DeleteWindows" ||
msg == "DeleteMainWindow")
{
if (WindowMan.MainWindow())
{
AppWindow * mainWindow = WindowMan.MainWindow();
mainWindow->Hide();
mainWindow->Destroy();
}
}
else if (msg.Contains("MaximizeWindow("))
{
String windowName = msg.Tokenize("()")[1];
AppWindow * window = WindowMan.GetWindowByName(windowName);
if (window)
{
if (!window->IsFullScreen())
window->ToggleFullScreen();
}