mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-22 23:26:15 +00:00
Changed: Disable FXAA checkbox if bloom not supported
--HG-- branch : develop
This commit is contained in:
parent
8e1123b9fb
commit
c8891166ff
1 changed files with 7 additions and 0 deletions
|
@ -1619,6 +1619,7 @@ void initBloomConfigUI()
|
||||||
bool supportBloom = Driver->supportBloomEffect();
|
bool supportBloom = Driver->supportBloomEffect();
|
||||||
|
|
||||||
CInterfaceManager *pIM = CInterfaceManager::getInstance();
|
CInterfaceManager *pIM = CInterfaceManager::getInstance();
|
||||||
|
|
||||||
CCtrlBaseButton* button = dynamic_cast<CCtrlBaseButton*>(CWidgetManager::getInstance()->getElementFromId("ui:interface:game_config:content:fx:bloom_gr:bloom:c"));
|
CCtrlBaseButton* button = dynamic_cast<CCtrlBaseButton*>(CWidgetManager::getInstance()->getElementFromId("ui:interface:game_config:content:fx:bloom_gr:bloom:c"));
|
||||||
if(button)
|
if(button)
|
||||||
{
|
{
|
||||||
|
@ -1631,6 +1632,12 @@ void initBloomConfigUI()
|
||||||
button->setFrozen(!supportBloom);
|
button->setFrozen(!supportBloom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
button = dynamic_cast<CCtrlBaseButton*>(CWidgetManager::getInstance()->getElementFromId("ui:interface:game_config:content:fx:fxaa:c"));
|
||||||
|
if (button)
|
||||||
|
{
|
||||||
|
button->setFrozen(!supportBloom);
|
||||||
|
}
|
||||||
|
|
||||||
CCtrlScroll * scroll = dynamic_cast<CCtrlScroll*>(CWidgetManager::getInstance()->getElementFromId("ui:interface:game_config:content:fx:bloom_gr:density_bloom:c"));
|
CCtrlScroll * scroll = dynamic_cast<CCtrlScroll*>(CWidgetManager::getInstance()->getElementFromId("ui:interface:game_config:content:fx:bloom_gr:density_bloom:c"));
|
||||||
if(scroll)
|
if(scroll)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue