diff --git a/SQF/dayz_code/Configs/rscTitles.hpp b/SQF/dayz_code/Configs/rscTitles.hpp index 6221813ee..0e1e9bf67 100644 --- a/SQF/dayz_code/Configs/rscTitles.hpp +++ b/SQF/dayz_code/Configs/rscTitles.hpp @@ -368,7 +368,6 @@ class RscDisplayGear { idd = 106; enableDisplay = 1; // 177 based - //onLoad = "_this call fn_gearMenuChecks;[] spawn object_monitorGear; {player removeMagazines _x} forEach MeleeMagazines; call gear_ui_init; if (isNil('IGUI_GEAR_activeFilter')) then { IGUI_GEAR_activeFilter = 0;}; private ['_dummy']; _dummy = [_this,'initDialog'] call compile preprocessFile '\z\addons\dayz_code\system\handleGear.sqf'; _dummy = [_this,'onLoad'] execVM '\z\addons\dayz_code\system\handleGear.sqf'; _dummy;"; onUnload = "call player_gearSync; call dayz_forceSave;"; class controls { @@ -998,7 +997,7 @@ class RscDisplayGear { emptyMag2 = "\ca\ui\data\ui_gear_mag2_gs.paa"; emptyHGun = "\ca\ui\data\ui_gear_hgun_gs.paa"; emptyHGunMag = "\ca\ui\data\ui_gear_hgunmag_gs.paa"; - onLoad = "_this call fn_gearMenuChecks;[] spawn object_monitorGear; call gear_ui_init; call ui_gear_sound;if (isNil('IGUI_GEAR_activeFilter')) then { IGUI_GEAR_activeFilter = 0;}; private ['_dummy']; _dummy = [_this,'initDialog'] call compile preprocessFile '\z\addons\dayz_code\system\handleGear.sqf'; _dummy = [_this,'onLoad'] execVM '\z\addons\dayz_code\system\handleGear.sqf'; _dummy;"; + onLoad = "setMousePosition [0.5, 0.5];_this call fn_gearMenuChecks;[] spawn object_monitorGear; call gear_ui_init; call ui_gear_sound;if (isNil('IGUI_GEAR_activeFilter')) then { IGUI_GEAR_activeFilter = 0;}; private ['_dummy']; _dummy = [_this,'initDialog'] call compile preprocessFile '\z\addons\dayz_code\system\handleGear.sqf'; _dummy = [_this,'onLoad'] execVM '\z\addons\dayz_code\system\handleGear.sqf'; _dummy;"; class ControlsBackground { class Mainback: RscPicture { idc = 1005;