Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_SaveWorkshopManagerUI.c
Go to the documentation of this file.
1
4
6{
7 static const ResourceName DIALOGS_CONFIG = "{326975357A528C2B}Configs/Dialogs/GMSaveDialogs.conf";
8 static const ResourceName PUBLISH_BUTTON_TOOLTIPS = "{9DA751645E85FC64}Configs/Editor/Tooltips/EditorSaveTooltips.conf";
9
11
13
15
16 //---------------------------------------------------------------------------------------------
17 // Static
18 //---------------------------------------------------------------------------------------------
19
20 //---------------------------------------------------------------------------------------------
28
29 //---------------------------------------------------------------------------------------------
30 static SCR_ConfigurableDialogUi CreateDialog(string presetName)
31 {
32 return SCR_ConfigurableDialogUi.CreateFromPreset(DIALOGS_CONFIG, presetName);
33 }
34
35 //------------------------------------------------------------------------------------------------
37 {
38 SCR_GMSaveDialog dialogUI = new SCR_GMSaveDialog(scenario, onFavoritesResponse);
39 SCR_ConfigurableDialogUi.CreateFromPreset(DIALOGS_CONFIG, "save_detail", dialogUI);
40
41 return dialogUI;
42 }
43
44 //---------------------------------------------------------------------------------------------
45 // Public
46 //---------------------------------------------------------------------------------------------
47
48 //---------------------------------------------------------------------------------------------
53
54 //---------------------------------------------------------------------------------------------
59
60 //---------------------------------------------------------------------------------------------
63 {
65 {
67 SCR_EditorManagerEntity editorManager = core.GetEditorManager();
68
69 m_PhotoModeEntity = editorManager.FindModeEntity(EEditorMode.PHOTO_SAVE);
70 }
71
72 m_PhotoModeEntity.GetOnDeactivateServer().Insert(OnImageCapturePhotoModeDeactivate);
73 }
74
75 //---------------------------------------------------------------------------------------------
77 {
79 {
80 Print("Can't clearup photo mode entity cause it was not setup", LogLevel.ERROR);
81 return;
82 }
83
84 m_PhotoModeEntity.GetOnDeactivateServer().Remove(OnImageCapturePhotoModeDeactivate);
85 }
86
87 //---------------------------------------------------------------------------------------------
90 {
92
93 // Reopen dialog and fill with cached data
95 }
96}
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
ScriptInvokerBase< ScriptInvokerBoolMethod > ScriptInvokerBool
static SCR_ConfigurableDialogUi CreateFromPreset(ResourceName presetsResourceName, string tag, SCR_ConfigurableDialogUi customDialogObj=null)
Creates a dialog from preset.
Core component to manage SCR_EditorManagerEntity.
SCR_EditorManagerEntity GetEditorManager()
SCR_EditorSaveDialog GetCachedEditSaveDialog()
static SCR_SaveWorkshopManagerUI GetInstance()
void SetupSaveImageCaptureCallback()
Setup callbacks reacting on photo save capture mode events.
void OnImageCapturePhotoModeDeactivate()
Callback reacting to closing photo mode intended for image capture.
static ref SCR_SaveWorkshopManagerUI m_Instance
static SCR_GMSaveDialog CreateSaveDetailsnDialog(MissionWorkshopItem scenario, ScriptInvokerBool onFavoritesResponse=null)
static SCR_ConfigurableDialogUi CreateDialog(string presetName)
static ref SCR_EditorSaveDialog m_CachedEditorSaveDialog
void SetCachedEditSaveDialog(SCR_EditorSaveDialog dialog)
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14
EEditorMode
Editor mode that defines overall functionality.
Definition EEditorMode.c:6