mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-16 05:02:57 +03:00
Add back R3F weight text in object_monitorGear
The size of control 1001 was shortened in 1.8.7, so it is better to set it on control 156. The initial text is always blank for that control when cursorTarget isNull. Showing the weight carried when looking at an object or vehicle is not necessary. It cuts off with long vehicle names anyway.
This commit is contained in:
@@ -31,14 +31,8 @@ while {true} do
|
||||
_gearbox_visible = false;
|
||||
#endif
|
||||
|
||||
if(_gearbox_visible) then {
|
||||
R3F_Weight = call R3F_WEIGHT_FNCT_GetWeight;
|
||||
if(_initial_text == "") then {
|
||||
_control = _display displayCtrl ARMA2_CAPTIONGEARBOX;
|
||||
_initial_text = ctrlText _control ;
|
||||
};
|
||||
_control = _display displayCtrl ARMA2_CAPTIONGEARBOX;
|
||||
_control ctrlSetText format[localize "STR_R3F_WEIGHT_InGearBox",_initial_text,R3F_Weight];
|
||||
if (_gearbox_visible) then {
|
||||
//Moved code to object_monitorGear.sqf
|
||||
_n = 0;
|
||||
}else{
|
||||
if( _n > R3F_WEIGHT_LONG_DELAY) then {
|
||||
|
||||
@@ -53,7 +53,7 @@ R3F_WEIGHT_FNCT_GetItemWeight = {
|
||||
_total_weight = _total_weight + _weight;
|
||||
} else {
|
||||
// log only if not found
|
||||
diag_log format["No R3F weight config for: %1", _x];
|
||||
//diag_log format["No R3F weight config for: %1", _x];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user