void MasterControl::CreateConsoleAndDebugHud() { // Create console Console* console = engine_->CreateConsole(); console->SetDefaultStyle(defaultStyle_); console->GetBackground()->SetOpacity(0.8f); // Create debug HUD. DebugHud* debugHud = engine_->CreateDebugHud(); debugHud->SetDefaultStyle(defaultStyle_); }
void UrhoQuickStart::CreateConsole() { // Get default style ResourceCache* cache = GetSubsystem<ResourceCache>(); XMLFile* xmlFile = cache->GetResource<XMLFile>("UI/DefaultStyle.xml"); // Create console Console* console = engine_->CreateConsole(); console->SetDefaultStyle(xmlFile); console->GetBackground()->SetOpacity(0.8f); }
void TowerApp::CreateConsoleAndDebugHud() { // Get default style ResourceCache *cache = GetSubsystem<ResourceCache>(); XMLFile *xmlFile = cache->GetResource<XMLFile>("UI/DefaultStyle.xml"); // Create console Console *console = engine_->CreateConsole(); console->SetDefaultStyle(xmlFile); console->GetBackground()->SetOpacity(0.8f); // Create debug HUD. DebugHud *debugHud = engine_->CreateDebugHud(); debugHud->SetDefaultStyle(xmlFile); }
void Urho3DTemplate::SetWindowTitleAndIcon() { //Get default style ResourceCache* cache = GetSubsystem<ResourceCache>(); XMLFile* xmlfile = cache->GetResource<XMLFile>("UI/DefaulStyle.xml"); //Create console Console* console = engine_->CreateConsole(); console->SetDefaultStyle(xmlfile); console->GetBackground()->SetOpacity(0.0f); //Create debug HUD DebugHud* debugHud = engine_->CreateDebugHud(); debugHud->SetDefaultStyle(xmlfile); }