mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Cleaned up headers, newlines in viewdistance
This commit is contained in:
parent
1a2b99c76c
commit
e20811c0f2
@ -1,4 +1,3 @@
|
||||
|
||||
class Extended_PreInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_preInit));
|
||||
@ -7,6 +6,6 @@ class Extended_PreInit_EventHandlers {
|
||||
|
||||
class Extended_PostInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||
clientInit = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||
};
|
||||
};
|
@ -18,10 +18,11 @@ if (!hasInterface) exitWith {};
|
||||
|
||||
// Set the EH which waits for any of the view distance settings to be changed, so that the effect is show immediately
|
||||
["SettingChanged",{
|
||||
if ((_this select 0 == QGVAR(viewDistanceOnFoot)) ||
|
||||
(_this select 0 == QGVAR(viewDistanceLandVehicle)) ||
|
||||
(_this select 0 == QGVAR(viewDistanceAirVehicle)) ||
|
||||
(_this select 0 == QGVAR(objectViewDistanceCoeff))) then {
|
||||
params ["_name"];
|
||||
if ((_name == QGVAR(viewDistanceOnFoot)) ||
|
||||
(_name == QGVAR(viewDistanceLandVehicle)) ||
|
||||
(_name == QGVAR(viewDistanceAirVehicle)) ||
|
||||
(_name == QGVAR(objectViewDistanceCoeff))) then {
|
||||
|
||||
[true] call FUNC(adaptViewDistance);
|
||||
};
|
||||
|
@ -10,7 +10,7 @@
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
* [] call ace_viewdistance_fnc_adaptViewDistance;
|
||||
* [] call ace_viewdistance_fnc_adaptViewDistance
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
@ -2,7 +2,6 @@
|
||||
* Author: Winter
|
||||
* Sets the player's current view distance according to allowed values.
|
||||
*
|
||||
*
|
||||
* Arguments:
|
||||
* 0: View Distance setting INDEX <SCALAR>
|
||||
* 1: Show Prompt <BOOL>
|
||||
@ -11,7 +10,7 @@
|
||||
* None
|
||||
*
|
||||
* Example:
|
||||
* [] call ace_viewdistance_fnc_changeViewDistance;
|
||||
* [] call ace_viewdistance_fnc_changeViewDistance
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Author: Winter
|
||||
* Initialises the view distance limiter module
|
||||
*
|
||||
* Initializes the view distance limiter module.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: logic <OBJECT>
|
||||
@ -10,7 +9,6 @@
|
||||
*
|
||||
* Return Value:
|
||||
* None
|
||||
*
|
||||
*/
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
@ -2,7 +2,6 @@
|
||||
* Author: Winter
|
||||
* Returns the object view distance coefficient according to the given index
|
||||
*
|
||||
*
|
||||
* Arguments:
|
||||
* 0: Object View Distance setting Index <SCALAR>
|
||||
*
|
||||
|
@ -1,7 +1,6 @@
|
||||
/*
|
||||
* Author: Winter
|
||||
* Returns the view distance value according to the given index
|
||||
*
|
||||
* Returns the view distance value according to the given index.
|
||||
*
|
||||
* Arguments:
|
||||
* 0: View Distance Index <SCALAR>
|
||||
@ -10,7 +9,7 @@
|
||||
* View Distance <SCALAR>
|
||||
*
|
||||
* Example:
|
||||
* [2] call ace_viewdistance_fnc_returnViewDistanceValue;
|
||||
* [2] call ace_viewdistance_fnc_returnViewDistanceValue
|
||||
*
|
||||
* Public: No
|
||||
*/
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project name="ACE">
|
||||
<Package name="View Distance">
|
||||
<Package name="ViewDistance">
|
||||
<Key ID="STR_ACE_ViewDistance_Module_DisplayName">
|
||||
<English>View Distance Limiter</English>
|
||||
<Polish>Ogranicznik zasięgu widzenia</Polish>
|
||||
|
Loading…
Reference in New Issue
Block a user