Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\..\..\..\script_macros.hpp"
- /*
- AUTHOR : ARMA FRANCE LIFE
- TOUTE REPRODUCTION COMPLETE OU PARTIELLE DE NOS SCRIPTS EST INTERDITES !
- LES SCRIPTS SONT EXCLUSIFS ET RESTERONT EXCLUSIFS A NOTRE MISSION !
- */
- _ItemShop = [_this, 0, "AFL_Medic"] call BIS_fnc_param;
- if(!dialog) then
- {
- if (!(createDialog "RscDisplayItemsShop")) exitWith {};
- };
- _displayCreate = findDisplay 9000;
- _AFL_Items_shop_CTRL_LIST = _displayCreate displayCtrl 9001;
- showChat false;
- AFL_SOUND = soundvolume;
- AFL_MOUSE = false;
- 0 fadeSound 0;
- AFL_Building = "Land_House_Small_02_F" createVehicleLocal [0, 0, 0];
- AFL_Building setDir 290.479;
- private _randPos = [[[[worldSize / 2, worldSize / 2, 0], worldSize / 2]], ["water"]] call BIS_fnc_randomPos;
- AFL_Building setPosATL [_randPos param [0], _randPos param [1], 5000];
- AFL_Building setVectorUp [0, 0, 1];
- AFL_Logic = "Land_Tyre_F" createVehicleLocal [0, 0, 0];
- AFL_Logic setPosATL (AFL_Building modelToWorld [-2.9, -3.2, -0.72]);
- AFL_Logic setVectorUp [0, 0, 1];
- AFL_Logic hideObject true;
- AFL_Holder = "GroundWeaponHolder_Scripted" createVehicleLocal [0, 0, 0];
- AFL_Holder attachTo [AFL_Logic, [0, -0.63, 1.45]];
- AFL_Holder setVectorDirAndUp [[0, 0, 1], [0, -1, 0]];
- if (sunOrMoon isEqualTo 0) then {
- AFL_Light = "#lightpoint" createVehicleLocal [0, 0, 0];
- AFL_Light setLightBrightness 0.2;
- AFL_Light setLightAmbient [1,1,1];
- AFL_Light setLightColor [1,1,1];
- AFL_Light setPosATL (AFL_Building modelToWorld [-2.9, -3.2, 2.0]);
- };
- AFL_Camera = "CAMERA" camCreate [0, 0, 0];
- cameraEffectEnableHUD false;
- showCinemaBorder false;
- AFL_Camera setPosATL (AFL_Building modelToWorld [-1.5, -3.3, 0.95]);
- AFL_Camera camSetFOV 0.75;
- AFL_Camera camSetFocus [1.394, 1];
- AFL_Camera setVectorDirAndUp [[-0.351803,-0.915757,-0.19397], [-0.0695604,-0.181068,0.981007]];
- AFL_Camera camCommit 0;
- AFL_Camera cameraEffect ["Internal", "Back"];
- lbClear _AFL_Items_shop_CTRL_LIST;
- Liste_items = getArray(missionConfigFile >> "Store" >> "General" >> _GunShop);
- _liste_Items = (Liste_items select 0)select 1;
- {
- _bool = [_x] call ArmaFranceLifeClient_fnc_IsNull_vericator;
- if (_bool) then
- {
- _itemInfo = [(_x select 0)] call ArmaFranceLifeClient_fnc_FetchDetails;
- _displayName = _itemInfo select 1;
- _AFL_Items_shop_CTRL_LIST lbAdd _displayName;
- _AFL_Items_shop_CTRL_LIST lbSetData[(lbSize _AFL_Items_shop_CTRL_LIST)-1,(_itemInfo select 0)];
- _AFL_Items_shop_CTRL_LIST lbSetPicture[(lbSize _AFL_Items_shop_CTRL_LIST)-1,(_itemInfo select 2)];
- _Items = _itemInfo select 0;
- };
- true
- } count _liste_Items;
- AFL_ITEMS_STORE_GUNS = _AFL_Items_shop_CTRL_LIST lbSetCurSel 0;
- (findDisplay 9000) displayAddEventHandler ["MouseButtonDown", {
- if (_this select 1 isEqualTo 0) then {AFL_MOUSE = true;};
- }];
- (findDisplay 9000) displayAddEventHandler ["MouseButtonUp", {
- if (_this select 1 isEqualTo 0) then {AFL_MOUSE = false;};
- }];
- (findDisplay 9000) displayAddEventHandler ["MouseMoving", {
- if(AFL_MOUSE && {!isNull AFL_Holder}) then
- {
- params ["", "_x", "_y"];
- private _dir = getDir AFL_Logic;
- AFL_Logic setDir (_dir + (_x * ((ArmaFranceLifeClient_CONFIG_GEN(getNumber,"rotationSpeed") max 1) min 10)));
- };
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement