Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified TMF_LoadingImageTemplate.psd
Binary file not shown.
45 changes: 45 additions & 0 deletions addons/common/RscDisplayLoadMission.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
class RscStandardDisplay;
class RscControlsGroupNoScrollbars;

// Display TMF logo on supported missions
class RscDisplayLoadMission: RscStandardDisplay {
class Controls {
class Mission: RscControlsGroupNoScrollbars {
class controls {
class MissionPicture;
class GVARMAIN(logo): MissionPicture {
text = QPATHTOF(UI\LoadingImageTemplate.paa);
idc = 108;
onLoad = QUOTE(with uiNamespace do { \
params ['_ctrl']; \
_ctrl ctrlShow false; \
if ([[ARR_3(1,1,1)]] call FUNC(checkTMFVersion)) then { \
_ctrl ctrlShow true; \
}; \
});
};
};
};
};
};

class RscDisplayNotFreeze: RscStandardDisplay {
class Controls {
class Mission: RscControlsGroupNoScrollbars {
class controls {
class MissionPicture;
class GVARMAIN(logo): MissionPicture {
text = QPATHTOF(UI\LoadingImageTemplate.paa);
idc = 108;
onLoad = QUOTE(with uiNamespace do { \
params ['_ctrl']; \
_ctrl ctrlShow false; \
if ([[ARR_3(1,1,1)]] call FUNC(checkTMFVersion)) then { \
_ctrl ctrlShow true; \
}; \
});
};
};
};
};
};
Binary file added addons/common/UI/LoadingImageTemplate.paa
Binary file not shown.
1 change: 1 addition & 0 deletions addons/common/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class cfgPatches
#include "CfgEventHandlers.hpp"
#include "CfgVehicles.hpp"
#include "display3DEN.hpp"
#include "RscDisplayLoadMission.hpp"

class TMF_autotest {
class GVAR(groupNamesSlottingScreen) {
Expand Down
5 changes: 1 addition & 4 deletions tmf_template.vr/description.ext
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
tmf_version[] = {1,1,0}; // DO NOT CHANGE THIS. This is the core version of the template that your mission was started with.
tmf_version[] = {1,1,1}; // DO NOT CHANGE THIS. This is the core version of the template that your mission was started with.
enableDebugConsole = 1; // Allows the logged in admin to use the debug console from the escape page.

// Use a randomized loading image from TMF. Set your own loading image with e.g. overviewPicture = "image.jpg";
overviewPicture = __EVAL(selectRandom ['\x\tmf\addons\common\ui\loadscreens\1.jpg','\x\tmf\addons\common\ui\loadscreens\2.jpg','\x\tmf\addons\common\ui\loadscreens\3.jpg','\x\tmf\addons\common\ui\loadscreens\4.jpg','\x\tmf\addons\common\ui\loadscreens\5.jpg','\x\tmf\addons\common\ui\loadscreens\6.jpg','\x\tmf\addons\common\ui\loadscreens\7.jpg','\x\tmf\addons\common\ui\loadscreens\8.jpg','\x\tmf\addons\common\ui\loadscreens\9.jpg','\x\tmf\addons\common\ui\loadscreens\10.jpg']);

class CfgDebriefing
{
class Success
Expand Down