Fix group tags scaling glitch

My mistake from b148293
This commit is contained in:
ebayShopper
2017-03-09 13:10:29 -05:00
parent 50b71a08b7
commit f22460491a
2 changed files with 41 additions and 35 deletions

View File

@@ -2,5 +2,6 @@
[FIXED] Kamaz refuel trucks no longer allow automatic refueling. #1855 @coresync2k @dreamforceinc [FIXED] Kamaz refuel trucks no longer allow automatic refueling. #1855 @coresync2k @dreamforceinc
[FIXED] Fixed food and drink going down 10x faster from melee and other "working" actions. [FIXED] Fixed food and drink going down 10x faster from melee and other "working" actions.
[FIXED] Glitch where group icons scaled very large momentarily while moving off screen.
[INFO] See Documents\CHANGE LOG 1.0.6.txt for the full list of 1.0.5.1 --> 1.0.6 changes. [INFO] See Documents\CHANGE LOG 1.0.6.txt for the full list of 1.0.5.1 --> 1.0.6 changes.

View File

@@ -1,12 +1,10 @@
#define DRAW_TAGS (!visibleMap && count units group player > 1) //Use && cameraView != "GROUP" if tactical view is allowed (blocked by default)
private ["_display","_distance","_group","_icon","_index","_pos","_scale","_screen","_text"]; private ["_display","_distance","_group","_icon","_index","_pos","_scale","_screen","_text"];
disableSerialization; disableSerialization;
while {true} do { _refresh = {
_group = player call dayz_filterGroup; _group = player call dayz_filterGroup;
if (!visibleMap && count _group > 1) then { //Use (&& cameraView != "GROUP") if tactical view is allowed (blocked by default)
80000 cutRsc ["DZ_GroupTags","PLAIN"];
_display = uiNamespace getVariable "DZ_GroupTags"; _display = uiNamespace getVariable "DZ_GroupTags";
_index = 0; _index = 0;
{ {
@@ -39,9 +37,16 @@ while {true} do {
}; };
dayz_oldGroupCount = count _group; dayz_oldGroupCount = count _group;
} else { };
80000 cutText ["","PLAIN"];
while {true} do {
waitUntil {uiSleep 1; DRAW_TAGS};
80000 cutRsc ["DZ_GroupTags","PLAIN"];
while {DRAW_TAGS} do {
call _refresh; //Must be called to finish in current frame
uiSleep 0.01;
}; };
uiSleep 0.01; 80000 cutText ["","PLAIN"];
}; };