force mouse to center of screen on gear open.

This commit is contained in:
[VB]AWOL
2014-06-02 15:11:34 -05:00
parent 0f008a62df
commit 7b4af30c21

View File

@@ -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;