30 string name =
g_Game.GetContentDLCService().GetLocalizedName(dlcId);
34 g_Game.GetUIManager().ShowDialog(header, message,
m_DialogId, DBT_OK, DBB_OK, DMT_EXCLAMATION,
this);
40 g_Game.GetContentDLCService().BuyDLC(dlcId);
47 super.OnModalResult(w,
x,
y, code, result);
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
ErrorCategory
ErrorCategory - To decide what ErrorHandlerModule needs to be called and easily identify where it cam...
static proto native bool IsValidDLCID(EDLCId dlcId)
Check if a DLC ID is valid.
ContentDLC is for query installed DLC (only as entitlement keys, not content)
void ShowWarning(EDLCId dlcId)
override bool OnModalResult(Widget w, int x, int y, int code, int result)
static ref ContentDLCStorePrompt m_Instance
static void WarnAndOpenStore(EDLCId dlcId)
static void OpenStore(EDLCId dlcId)
Runs from the call queue, so the prompt is released outside of the modal callback.
Informs the player that a DLC is missing and opens the platform store once the warning has been confi...
static proto int CreateError(ErrorCategory category, int code)
Creates full error code.
static proto string GetClientMessage(ErrorCategory category, int code, string additionalInfo="")
Gets the Client Message for specified error.
static proto string GetErrorHex(int errorCode)
Returns a formatted string of the error code.
The error handler itself, for managing and distributing errors to modules Manages the ErrorHandlerMod...
static proto string Format(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
Gets n-th character from string.