Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NightKestrel #1764

Merged
merged 5 commits into from Dec 17, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions AGM_Wind/config.cpp
Expand Up @@ -198,6 +198,22 @@ class RscTitles {
colorText[] = {1, 1, 1, 1};
colorBackground[] = {1, 1, 1, 1};
shadow = 0;
};
class AGM_KestrelHUDpic_Night: RscPicture {
idc = 42006;
type = 0;
text = "AGM_Wind\data\4500NV2.paa";
style = 48 + 0x800;
x = safeZoneX -0.25;
y = safeZoneY + safeZoneH - 0.8;
h = 0.75;
w = 0.75;
scale = 1;
font = "PuristaMedium";
sizeEx = 1;
colorText[] = {0,0,0,1-(sunOrMoon*sunOrMoon+(moonIntensity/5))};
colorBackground[] = {1, 1, 1, 1};
shadow = 0;
};
class AGM_KestrelHUD1: RscText {
idc = 42002;
Expand Down
Binary file modified AGM_Wind/data/4500NV1.paa
Binary file not shown.
Binary file added AGM_Wind/data/4500NV2.paa
Binary file not shown.
5 changes: 4 additions & 1 deletion AGM_Wind/scripts/KestrelonLoad.sqf
Expand Up @@ -7,6 +7,7 @@ _ctrl2 = _display displayCtrl 42002;
_ctrl3 = _display displayCtrl 42003;
_ctrl4 = _display displayCtrl 42004;
_ctrl5 = _display displayCtrl 42005;
_ctrl6 = _display displayCtrl 42006;
_sleep1 = 0.5;
AGM_Kestrel_wind_Head=0;
//unIFormItems _player+backpackItems _player+vestItems _player
Expand Down Expand Up @@ -102,7 +103,8 @@ WHILE {AGM_isKestrel} DO {
_ctrl3 ctrlSetText _windrBB;
_ctrl4 ctrlSetText FORMAT["%1",round (direction _player)];
_ctrl5 ctrlSetText FORMAT["%1", (round (AGM_Wind_currentTemperature * 10)) / 10];

_ctrl6 ctrlsettextcolor [0,0,0,1-(sunOrMoon*sunOrMoon+(moonIntensity/5))];

IF (!("AGM_ItemKestrel" in items _player)) THEN {AGM_isKestrel = FALSE;};
IF (
underwater _player ||
Expand All @@ -120,3 +122,4 @@ _ctrl2 ctrlShow false;
_ctrl3 ctrlShow false;
_ctrl4 ctrlShow false;
_ctrl5 ctrlShow false;
_ctrl6 ctrlShow false;
2 changes: 2 additions & 0 deletions AGM_Wind/scripts/KestrelonLoadRad.sqf
Expand Up @@ -14,6 +14,8 @@ while {AGM_isKestrelWheel} do {
if (_rad1 > 9) then { _rad1=_rad1-9; };
waitUntil {preloadTitleRsc ["AGM_KestrelWheel_Preload", "PLAIN"]};
_ctrl10 ctrlSetText format["AGM_Wind\data\kestrel_%1.paa",round _rad1];
_Night = (sunOrMoon*sunOrMoon+(moonIntensity/5));
_ctrl10 ctrlsettextcolor [_Night,_Night,_Night,1];
sleep 0.01;
_i = 0; waitUntil {_i = _i + 1; _i > 1};
};
Expand Down