How to add a setting
Advanced Framework Pro stores a setting as a small Blueprint derived from BP_Value_Settings_<Type>, with a matching row widget on a settings page. Saving, loading and console variables are handled for you. By the end of this you will have a new entry on a settings page, reading and writing a value of your own.
At a glance
BP_Setting_<Name> parent BP_Value_Settings_Bool / _Float / _Integer / _Name,
or BP_Value_Settings_Integer_Console for a console variable
Name, Caption; console variable + value mapping for _Console
Settings page WBP_Settings_Desktop_Graphics / _Sound / _Gameplay
└─ WBP_SettingItem_Boolean_Toggle / _Float_Slider / _Integer_Selector / _Name_DropDown / _Color_Picker
→ points at BP_Setting_<Name>
Steps
- Pick the base class matching your value type:
BP_Value_Settings_Bool,_Float,_Integer,_Name, or one of the console-variable variants such asBP_Value_Settings_Integer_Console. - Create a Blueprint deriving from it, in your own project content.
- Set Name and Caption — these become the label and helper text on the row.
- For a console-variable setting, set the console variable name and the value mapping.
- Open the settings page the entry belongs on:
WBP_Settings_Desktop_Graphics,WBP_Settings_Desktop_SoundorWBP_Settings_Desktop_Gameplay. - Add the row widget matching your value type —
WBP_SettingItem_Boolean_Toggle,WBP_SettingItem_Float_Slider,WBP_SettingItem_Integer_Selector,WBP_SettingItem_Name_DropDownorWBP_SettingItem_Color_Picker— and place it in the page's vertical box alongside the existing rows. - Select the row and set its Settings class to the Blueprint from step 2. This is the step that connects the two: leave it unset and the row has nothing to read from or write to.
- Optionally set Slot Horizontal Alignment on the row to control how its control sits beside the title and caption.



Notes
There is no separate registration step
The row's Settings class is the registration. BPC_GameState_Settings.getObjectForSettings
builds the value object the first time a row asks for that class, runs its Init, and caches it — so
two rows pointing at the same class share one object and stay in sync without any wiring.
The component's own Settings map is that runtime cache, not an authoring list. There is nothing to
fill in on the game state.
Pick the row subclass yourself
Nothing infers the control from the value type. A boolean needs WBP_SettingItem_Boolean_Toggle, a
float needs WBP_SettingItem_Float_Slider, and pairing a float value with a toggle row simply gives
you a row that cannot represent its own value.
One set of pages serves both menus
The shipped pages are named for the desktop — WBP_Settings_Desktop_Graphics and its siblings — but
the menu builds itself from the Pages list on BPC_Pawn_Menu on every platform, and the desktop
sidebar from the same pages on BPC_Pawn_Sidebar, so a row you add once appears everywhere. A new category is more work: it means a new page widget and a PDA_WidgetPage asset for it in
the menu's Pages list.
Look at the assets under AFM_Settings/Blueprints/Presets for worked examples of every value type,
and at WBP_Settings_Desktop_Graphics for how a page of rows is laid out.
The settings component loads as play begins: it resets the classes listed in Apply Defaults On
Startup, applies the Setting Default Override maps as the project's defaults, then the values in
the save slot, so a value the player saved wins. Values
reach the save slot only when SaveAllSettings runs; the Save button of the shipped settings pages
calls it.