@@ -187,7 +187,7 @@ namespace FPSProfiler::Configs
187
187
})
188
188
189
189
->DataElement (
190
- AZ::Edit::UIHandlers::CheckBox ,
190
+ AZ::Edit::UIHandlers::Default ,
191
191
&PrecisionSettings::m_keepHistory,
192
192
" Keep History" ,
193
193
" Enabled saves entire history for better avg fps smoothing, otherwise history is cleared per auto save if "
@@ -220,12 +220,20 @@ namespace FPSProfiler::Configs
220
220
AZ::Edit::UIHandlers::CheckBox,
221
221
&DebugSettings::m_PrintDebugInfo,
222
222
" Print Debug Info" ,
223
- " Enable or disable debug information printing" )
223
+ " Enable or disable debug information printing. " )
224
224
225
- ->DataElement (AZ::Edit::UIHandlers::CheckBox, &DebugSettings::m_ShowFps, " Show FPS" , " Toggle FPS display on screen" )
225
+ ->DataElement (AZ::Edit::UIHandlers::CheckBox, &DebugSettings::m_ShowFps, " Show FPS" , " Toggle FPS display on screen." )
226
+ ->Attribute (AZ::Edit::Attributes::ChangeNotify, AZ::Edit::PropertyRefreshLevels::EntireTree)
226
227
227
228
->DataElement (
228
- AZ::Edit::UIHandlers::Color, &DebugSettings::m_Color, " Debug Color" , " Set the debug information display color" );
229
+ AZ::Edit::UIHandlers::Color, &DebugSettings::m_Color, " Debug Color" , " Set the debug information display color." )
230
+ ->Attribute (
231
+ AZ::Edit::Attributes::Visibility,
232
+ [](const void * instance)
233
+ {
234
+ const DebugSettings* data = static_cast <const DebugSettings*>(instance);
235
+ return data && data->m_ShowFps ? AZ::Edit::PropertyVisibility::Show : AZ::Edit::PropertyVisibility::Hide;
236
+ });
229
237
}
230
238
}
231
239
}
0 commit comments