Skip to content

Commit

Permalink
Merge pull request #3567 from BaerMitUmlaut/microdagr-microoverhaul
Browse files Browse the repository at this point in the history
MicroDAGR Microoverhaul
  • Loading branch information
BaerMitUmlaut committed Jun 7, 2016
2 parents 527db2b + 3f96e11 commit bce92e8
Show file tree
Hide file tree
Showing 16 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions addons/microdagr/functions/fnc_mapOnDrawEH.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (GVAR(currentApplicationPage) == 1) then {
_theMap ctrlMapAnimAdd [0, DUMMY_ZOOM, DUMMY_POS];
ctrlMapAnimCommit _theMap;
_size = 412 * _mapSize;
_theMap drawIcon [QUOTE(PATHTO_R(images\compass_starInverted.paa)), [1,1,1,1], DUMMY_POS, _size, _size, (-1 * (getDir ACE_player)), '', 0 ];
_theMap drawIcon [QUOTE(PATHTO_R(images\compass_starInverted.paa)), [1,1,1,1], DUMMY_POS, _size, _size, (-1 * (([ACE_player] call CBA_fnc_headDir) select 0)), '', 0 ];
_theMap drawIcon [QUOTE(PATHTO_R(images\compass_needle.paa)), [0.533,0.769,0.76,1], DUMMY_POS, _size, _size, 0, '', 0 ];

if (GVAR(currentWaypoint) != -1) then {
Expand Down Expand Up @@ -56,7 +56,7 @@ if (GVAR(currentApplicationPage) == 1) then {
ctrlMapAnimCommit _theMap;
};
_size = 48 * _mapSize;
_theMap drawIcon [QUOTE(PATHTO_R(images\icon_self.paa)), [0.533,0.769,0.76,0.75], (getPosASL ACE_player), _size, _size, (getDir ACE_player), '', 0 ];
_theMap drawIcon [QUOTE(PATHTO_R(images\icon_self.paa)), [0.533,0.769,0.76,0.75], (getPosASL ACE_player), _size, _size, (([ACE_player] call CBA_fnc_headDir) select 0), '', 0 ];

if (GVAR(settingShowAllWaypointsOnMap)) then {
_size = 32 * _mapSize;
Expand Down
2 changes: 1 addition & 1 deletion addons/microdagr/functions/fnc_showApplicationPage.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if (GVAR(currentApplicationPage) == APP_MODE_INFODISPLAY) then {
(_display displayCtrl IDC_MODEDISPLAY_MODEPOSTIMECG) ctrlShow false;
(_display displayCtrl IDC_MODEDISPLAY_MODEPOSTARGETCG) ctrlShow true;
if (GVAR(currentWaypoint) == -2) then {
(_display displayCtrl IDC_MODEDISPLAY_TARGETICON) ctrlSetText "\A3\ui_f\data\igui\rscingameui\rscoptics\laser_designator_iconLaserOn.paa"
(_display displayCtrl IDC_MODEDISPLAY_TARGETICON) ctrlSetText QUOTE(PATHTOF(images\icon_menuLaser.paa));
} else {
(_display displayCtrl IDC_MODEDISPLAY_TARGETICON) ctrlSetText QPATHTOF(images\icon_menuMark.paa);
};
Expand Down
8 changes: 4 additions & 4 deletions addons/microdagr/functions/fnc_updateDisplay.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ case (APP_MODE_INFODISPLAY): {

//Heading:
_compassAngleText = if (GVAR(settingUseMils)) then {
[(floor ((6400 / 360) * (getDir ACE_player))), 4, 0] call CBA_fnc_formatNumber;
[(floor ((6400 / 360) * (([ACE_player] call CBA_fnc_headDir) select 0))), 4, 0] call CBA_fnc_formatNumber;
} else {
([(floor (getDir ACE_player)), 3, 1] call CBA_fnc_formatNumber) + "°" //degree symbol is in UTF-8
([(floor (([ACE_player] call CBA_fnc_headDir) select 0)), 3, 1] call CBA_fnc_formatNumber) + "°" //degree symbol is in UTF-8
};
(_display displayCtrl IDC_MODEDISPLAY_HEADINGNUM) ctrlSetText _compassAngleText;

Expand Down Expand Up @@ -107,9 +107,9 @@ case (APP_MODE_INFODISPLAY): {
case (APP_MODE_COMPASS): {
//Heading:
_compassAngleText = if (GVAR(settingUseMils)) then {
[(floor ((6400 / 360) * (getDir ACE_player))), 4, 0] call CBA_fnc_formatNumber;
[(floor ((6400 / 360) * (([ACE_player] call CBA_fnc_headDir) select 0))), 4, 0] call CBA_fnc_formatNumber;
} else {
([(floor (getDir ACE_player)), 3, 1] call CBA_fnc_formatNumber) + "°" //degree symbol is in UTF-8
([(floor (([ACE_player] call CBA_fnc_headDir) select 0)), 3, 1] call CBA_fnc_formatNumber) + "°" //degree symbol is in UTF-8
};
(_display displayCtrl IDC_MODECOMPASS_HEADING) ctrlSetText _compassAngleText;

Expand Down
4 changes: 2 additions & 2 deletions addons/microdagr/gui_controls.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class controlsBackground {
};
class RangefinderConnectedIcon: RscPicture {
idc = IDC_RANGEFINDERCONNECTEDICON;
text = "\A3\ui_f\data\igui\rscingameui\rscoptics\laser_designator_iconLaserOn.paa";
text = QUOTE(PATHTOF(images\icon_menuLaser.paa));
x = X_PART(6.35);
y = Y_PART(0.1);
w = W_PART(2.7);
Expand Down Expand Up @@ -486,7 +486,7 @@ class controls {
onbuttonclick = QUOTE([5] call FUNC(saveCurrentAndSetNewMode));
};
class ButtonBL: ButtonTL {
text = "\A3\ui_f\data\igui\rscingameui\rscoptics\laser_designator_iconLaserOn.paa";
text = QUOTE(PATHTOF(images\icon_menuLaser.paa));
x = W_PART(3);
y = H_PART(10.5);
onbuttonclick = QUOTE(_this call FUNC(appMenuButtonConnectRangefinder));
Expand Down
Binary file modified addons/microdagr/images/button_pushedDown.paa
Binary file not shown.
Binary file modified addons/microdagr/images/button_pushedUp.paa
Binary file not shown.
Binary file modified addons/microdagr/images/icon_compass.paa
Binary file not shown.
Binary file modified addons/microdagr/images/icon_info.paa
Binary file not shown.
Binary file modified addons/microdagr/images/icon_infoClock.paa
Binary file not shown.
Binary file modified addons/microdagr/images/icon_infoCompass.paa
Binary file not shown.
Binary file modified addons/microdagr/images/icon_map.paa
Binary file not shown.
Binary file added addons/microdagr/images/icon_menuLaser.paa
Binary file not shown.
Binary file modified addons/microdagr/images/icon_menuMark.paa
Binary file not shown.
Binary file modified addons/microdagr/images/icon_menuSettings.paa
Binary file not shown.
Binary file modified addons/microdagr/images/icon_menuWaypoints.paa
Binary file not shown.
Binary file modified addons/microdagr/images/microDAGR_topBar.paa
Binary file not shown.

0 comments on commit bce92e8

Please sign in to comment.