41 std::u16string m_LogPrefix;
55 static std::map<System::Type*, _v::MonoPtr<ViewController>> m_Instances;
58 template<
class t_Base>
requires(std::is_assignable_v<ViewController*&, t_Base*>)
61 auto l_Type =
reinterpret_cast<System::Type*
>(csTypeOf(t_Base*));
62 if (l_Type && m_Instances.contains(l_Type))
80 CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(HMUI,
ViewController,
void, DidActivate,
bool p_FirstActivation,
bool p_AddedToHierarchy,
bool p_ScreenSystemEnabling);
84 CP_SDK_IL2CPP_OVERRIDE_METHOD_EX(HMUI,
ViewController,
void, DidDeactivate,
bool p_RemovedFromHierarchy,
bool p_ScreenSystemDisabling);
99 template<
class t_ModalType>
102 return reinterpret_cast<t_ModalType*
>(CreateModal_Impl(
reinterpret_cast<System::Type*
>(csTypeOf(t_ModalType*))));
108 _v::IModal* CreateModal_Impl(System::Type* p_Type);
116 void CloseAllModals_Impl();
128 void ShowConfirmationModal_Impl(std::u16string_view p_Message,
_v::CActionRef<bool> p_Callback);
144 void ShowLoadingModal_Impl(std::u16string_view p_Message = {},
bool p_CancelButton =
false,
_v::CActionRef<> p_CancelCallback =
nullptr);
148 void ShowMessageModal_Impl(std::u16string_view p_Message,
_v::CActionRef<> p_Callback =
nullptr);
152 std::u16string_view KeyboardModal_GetValue_Impl();
155 void KeyboardModal_SetValue_Impl(std::u16string_view p_Value);
158 void KeyboardModal_Append_Impl(std::u16string_view p_ToAppend);
161 void LoadingModal_SetMessage_Impl(std::u16string_view p_Message);
165 void CloseColorPickerModal_Impl();
167 void CloseConfirmationModal_Impl();
169 void CloseDropdownModal_Impl();
171 void CloseKeyboardModal_Impl();
173 void CloseLoadingModal_Impl();
175 void CloseMessageModal_Impl();
181 void ShowTooltip_Impl(_u::Vector3 p_Position, std::u16string_view p_Text);
183 void HideTooltip_Impl();