3 protected ref array<ref SCR_SettingsBindingBase> m_aSettingsBindings = {};
4 protected ScrollLayoutWidget m_wScroll;
5 protected bool m_bLoadingSettings;
8 override void OnTabCreate(Widget menuRoot, ResourceName buttonsLayout,
int index)
10 super.OnTabCreate(menuRoot, buttonsLayout,
index);
11 m_wScroll = ScrollLayoutWidget.Cast(
m_wRoot.FindAnyWidget(
"ScrollLayout0"));
15 override void OnTabHide()
22 override void OnTabShow()
27 m_wScroll.SetSliderPos(0, 0);
31 protected void LoadSettings(
bool forceLoadSettings =
false,
bool addEntryChangedEventHandler =
true)
36 m_bLoadingSettings =
true;
39 bind.LoadEntry(m_wScroll, forceLoadSettings, addEntryChangedEventHandler);
40 if (addEntryChangedEventHandler)
41 bind.GetEntryChangedInvoker().Insert(OnMenuItemChanged);
43 m_bLoadingSettings =
false;
49 GetGame().UserSettingsChanged();