22 data.MissionPaths = {dzg.GetMissionFolderPath()};
23 if (!JsonFileLoader<JsonMissionLoaderData>.SaveFile(
path, data, errorMessage))
28 if (!JsonFileLoader<JsonMissionLoaderData>.LoadFile(
path, data, errorMessage))
49 layoutRoot =
GetGame().GetWorkspace().CreateWidgets(
"gui/layouts/day_z_mission_loader.layout");
51 m_WgtLstMsnList = TextListboxWidget.Cast( layoutRoot.FindAnyWidget(
"wgt_lst_missions") );
52 m_WgtBtnMsnPlay = ButtonWidget.Cast( layoutRoot.FindAnyWidget(
"wgt_btn_mission_play") );
53 m_WgtBtnMsnClose = ButtonWidget.Cast( layoutRoot.FindAnyWidget(
"wgt_btn_mission_close") );
63 override bool OnClick(Widget w,
int x,
int y,
int button)
65 super.OnClick(w,
x,
y, button);
76 string missionPath =
m_MissionData.MissionPaths.Get(rowIndex);
77 GetGame().PlayMission(missionPath);
86 super.OnClick(w,
x,
y, button);
91 string missionPath =
m_MissionData.MissionPaths.Get(rowIndex);
92 GetGame().PlayMission(missionPath);
99 super.OnKeyDown(w,
x,
y,key);
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
const string CFG_FILE_MISSION_LIST
proto bool FileExist(string name)
Check existence of file.
proto bool GetCLIParam(string param, out string val)
Returns command line argument.
override bool OnDoubleClick(Widget w, int x, int y, int button)
ref JsonMissionLoaderData m_MissionData
ButtonWidget m_WgtBtnMsnPlay
ref TStringArray m_ListMissionsNames
ButtonWidget m_WgtBtnMsnClose
class JsonMissionLoaderData m_WgtLstMsnList