mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 12:57:34 +02:00
Remove View->Overlays menu
This commit is contained in:
parent
60d53359bb
commit
ba4ef74313
3 changed files with 3 additions and 12 deletions
|
@ -4819,14 +4819,10 @@ void Application::updateThreads(float deltaTime) {
|
|||
}
|
||||
}
|
||||
|
||||
void Application::toggleOverlays() {
|
||||
auto menu = Menu::getInstance();
|
||||
menu->setIsOptionChecked(MenuOption::Overlays, !menu->isOptionChecked(MenuOption::Overlays));
|
||||
}
|
||||
void Application::toggleOverlays() {}
|
||||
|
||||
void Application::setOverlaysVisible(bool visible) {
|
||||
auto menu = Menu::getInstance();
|
||||
menu->setIsOptionChecked(MenuOption::Overlays, true);
|
||||
Q_UNUSED(visible)
|
||||
}
|
||||
|
||||
void Application::centerUI() {
|
||||
|
@ -7770,7 +7766,6 @@ void Application::readArgumentsFromLocalSocket() const {
|
|||
}
|
||||
|
||||
void Application::showDesktop() {
|
||||
Menu::getInstance()->setIsOptionChecked(MenuOption::Overlays, true);
|
||||
}
|
||||
|
||||
CompositorHelper& Application::getApplicationCompositor() const {
|
||||
|
|
|
@ -202,10 +202,6 @@ Menu::Menu() {
|
|||
addCheckableActionToQMenuAndActionHash(viewMenu, MenuOption::CenterPlayerInView,
|
||||
0, true, qApp, SLOT(rotationModeChanged()));
|
||||
|
||||
//TODO: remove Overlays action, but the action is tied to some other places in code
|
||||
// View > Overlays
|
||||
addCheckableActionToQMenuAndActionHash(viewMenu, MenuOption::Overlays, 0, true);
|
||||
|
||||
// View > Enter First Person Mode in HMD
|
||||
addCheckableActionToQMenuAndActionHash(viewMenu, MenuOption::FirstPersonHMD, 0, true);
|
||||
|
||||
|
|
|
@ -143,7 +143,7 @@ void OverlayConductor::update(float dt) {
|
|||
}
|
||||
|
||||
|
||||
bool targetVisible = Menu::getInstance()->isOptionChecked(MenuOption::Overlays) && (0 == (_flags & SuppressMask));
|
||||
bool targetVisible = (0 == (_flags & SuppressMask));
|
||||
if (targetVisible != currentVisible) {
|
||||
offscreenUi->setPinned(!targetVisible);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue