Skip to content

Commit c038df1

Browse files
committed
fix config reflect
Signed-off-by: Wojciech Czerski <[email protected]>
1 parent fb9e926 commit c038df1

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

Gems/FPSProfiler/Code/Source/Clients/FPSProfilerComponent.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace FPSProfiler
2626
->Field("m_configDebug", &FPSProfilerComponent::m_configDebug);
2727
}
2828

29-
// Reflect EBus for Lua and Script Canvas
29+
// EBus Reflect for Lua and Script Canvas
3030
if (auto behaviorContext = azrtti_cast<AZ::BehaviorContext*>(context))
3131
{
3232
// Request Bus - Calls made to FPS Profiler

Gems/FPSProfiler/Code/Source/Configurations/FPSProfilerConfig.cpp

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ namespace FPSProfiler::Configs
2222

2323
if (AZ::EditContext* editContext = serializeContext->GetEditContext())
2424
{
25-
editContext->Class<FileSaveSettings>("File Settings", "Settings controlling save file operations.")
26-
->ClassElement(AZ::Edit::ClassElements::EditorData, "")
25+
editContext->Class<FileSaveSettings>("File Save Settings", "Settings for managing how FPS data is saved to a file.")
26+
->ClassElement(AZ::Edit::ClassElements::EditorData, "Configure file-saving options for recorded FPS data.")
2727
->Attribute(AZ::Edit::Attributes::AutoExpand, true)
2828

2929
->DataElement(
@@ -83,8 +83,8 @@ namespace FPSProfiler::Configs
8383

8484
if (auto* editContext = serializeContext->GetEditContext())
8585
{
86-
editContext->Class<RecordSettings>("Record Settings", "Settings controlling the recording behavior.")
87-
->ClassElement(AZ::Edit::ClassElements::EditorData, "")
86+
editContext->Class<RecordSettings>("Recording Settings", "Options for configuring how FPS data is recorded.")
87+
->ClassElement(AZ::Edit::ClassElements::EditorData, "Control the behavior of FPS data recording.")
8888
->Attribute(AZ::Edit::Attributes::AutoExpand, true)
8989

9090
->DataElement(
@@ -152,12 +152,15 @@ namespace FPSProfiler::Configs
152152

153153
if (auto* editContext = serializeContext->GetEditContext())
154154
{
155-
editContext->Class<PrecisionSettings>("Precision Settings", "Settings for FPS profiler precision")
155+
editContext->Class<PrecisionSettings>("Precision Settings", "Defines the precision level of the FPS Profiler measurements.")
156+
->ClassElement(AZ::Edit::ClassElements::EditorData, "Adjust how precisely the FPS Profiler records data.")
157+
156158
->DataElement(
157159
AZ::Edit::UIHandlers::Default,
158160
&PrecisionSettings::m_NearZeroPrecision,
159161
"Near Zero Precision",
160162
"Threshold for near-zero values")
163+
161164
->DataElement(
162165
AZ::Edit::UIHandlers::ComboBox,
163166
&PrecisionSettings::m_avgFpsType,
@@ -166,6 +169,7 @@ namespace FPSProfiler::Configs
166169
->EnumAttribute(MovingAverageType::Simple, "Simple")
167170
->EnumAttribute(MovingAverageType::Exponential, "Exponential")
168171
->Attribute(AZ::Edit::Attributes::ChangeNotify, AZ::Edit::PropertyRefreshLevels::EntireTree)
172+
169173
->DataElement(
170174
AZ::Edit::UIHandlers::Default,
171175
&PrecisionSettings::m_smoothingFactor,
@@ -181,6 +185,7 @@ namespace FPSProfiler::Configs
181185
return data && data->m_avgFpsType == Exponential ? AZ::Edit::PropertyVisibility::Show
182186
: AZ::Edit::PropertyVisibility::Hide;
183187
})
188+
184189
->DataElement(
185190
AZ::Edit::UIHandlers::CheckBox,
186191
&PrecisionSettings::m_keepHistory,
@@ -208,13 +213,17 @@ namespace FPSProfiler::Configs
208213

209214
if (auto* editContext = serializeContext->GetEditContext())
210215
{
211-
editContext->Class<DebugSettings>("Debug Settings", "Settings for debugging the FPS Profiler")
216+
editContext->Class<DebugSettings>("Debug Settings", "Configuration options for debugging the FPS Profiler.")
217+
->ClassElement(AZ::Edit::ClassElements::EditorData, "Customize debugging settings for the FPS Profiler.")
218+
212219
->DataElement(
213220
AZ::Edit::UIHandlers::CheckBox,
214221
&DebugSettings::m_PrintDebugInfo,
215222
"Print Debug Info",
216223
"Enable or disable debug information printing")
224+
217225
->DataElement(AZ::Edit::UIHandlers::CheckBox, &DebugSettings::m_ShowFps, "Show FPS", "Toggle FPS display on screen")
226+
218227
->DataElement(
219228
AZ::Edit::UIHandlers::Color, &DebugSettings::m_Color, "Debug Color", "Set the debug information display color");
220229
}

0 commit comments

Comments
 (0)