Skip to content

Commit a4f2fd2

Browse files
committed
Add TMF watermark to loading screen
Invalidates TMF3#379
1 parent d504b2e commit a4f2fd2

5 files changed

Lines changed: 47 additions & 4 deletions

File tree

TMF_LoadingImageTemplate.psd

-4.41 MB
Binary file not shown.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
class RscStandardDisplay;
2+
class RscControlsGroupNoScrollbars;
3+
4+
// Display TMF logo on supported missions
5+
class RscDisplayLoadMission: RscStandardDisplay {
6+
class Controls {
7+
class Mission: RscControlsGroupNoScrollbars {
8+
class controls {
9+
class MissionPicture;
10+
class GVARMAIN(logo): MissionPicture {
11+
text = QPATHTOF(UI\LoadingImageTemplate.paa);
12+
idc = 108;
13+
onLoad = QUOTE(with uiNamespace do { \
14+
params ['_ctrl']; \
15+
_ctrl ctrlShow false; \
16+
if ([[ARR_3(1,1,1)]] call FUNC(checkTMFVersion)) then { \
17+
_ctrl ctrlShow true; \
18+
}; \
19+
});
20+
};
21+
};
22+
};
23+
};
24+
};
25+
26+
class RscDisplayNotFreeze: RscStandardDisplay {
27+
class Controls {
28+
class Mission: RscControlsGroupNoScrollbars {
29+
class controls {
30+
class MissionPicture;
31+
class GVARMAIN(logo): MissionPicture {
32+
text = QPATHTOF(UI\LoadingImageTemplate.paa);
33+
idc = 108;
34+
onLoad = QUOTE(with uiNamespace do { \
35+
params ['_ctrl']; \
36+
_ctrl ctrlShow false; \
37+
if ([[ARR_3(1,1,1)]] call FUNC(checkTMFVersion)) then { \
38+
_ctrl ctrlShow true; \
39+
}; \
40+
});
41+
};
42+
};
43+
};
44+
};
45+
};
27.2 KB
Binary file not shown.

addons/common/config.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ class cfgPatches
1818
#include "CfgEventHandlers.hpp"
1919
#include "CfgVehicles.hpp"
2020
#include "display3DEN.hpp"
21+
#include "RscDisplayLoadMission.hpp"
2122

2223
class TMF_autotest {
2324
class GVAR(groupNamesSlottingScreen) {

tmf_template.vr/description.ext

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
tmf_version[] = {1,1,0}; // DO NOT CHANGE THIS. This is the core version of the template that your mission was started with.
1+
tmf_version[] = {1,1,1}; // DO NOT CHANGE THIS. This is the core version of the template that your mission was started with.
22
enableDebugConsole = 1; // Allows the logged in admin to use the debug console from the escape page.
33

4-
// Use a randomized loading image from TMF. Set your own loading image with e.g. overviewPicture = "image.jpg";
5-
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']);
6-
74
class CfgDebriefing
85
{
96
class Success

0 commit comments

Comments
 (0)