OSGHUD: fix wheel image not being hidden on driverinputWidget toggler

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7797 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: ceee367514c8f87fae99e042577b7cef7f0ac190
Former-commit-id: 961a7b24838c1ea9b80e19374d3f2ca56912575d
This commit is contained in:
madbad 2021-11-22 16:20:25 +00:00
parent 1601a7ae77
commit 3fcb72d7c8

View file

@ -1307,7 +1307,7 @@ void SDHUD::ToggleHUDcarinfo()
void SDHUD::ToggleHUDdriverinput()
{
this->hudWidgets["driverinputWidget"]->setNodeMask(1 - this->hudWidgets["driverinputWidget"]->getNodeMask());
this->hudImgRotableElements["driverinput-wheel"]->setNodeMask(1 - this->hudImgRotableElements["driverinput-wheel"]->getNodeMask());
this->hudImgRotableElements["driverinput-wheel"]->setNodeMask(this->hudWidgets["driverinputWidget"]->getNodeMask());
//save the current status in the config file
std::string configFileUrl= GetLocalDir();