Cleaned up headers, newlines in viewdistance

This commit is contained in:
jonpas 2015-08-12 20:16:01 +02:00
parent 1a2b99c76c
commit e20811c0f2
11 changed files with 22 additions and 27 deletions

View File

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

View File

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

View File

@ -10,7 +10,7 @@
* None
*
* Example:
* [] call ace_viewdistance_fnc_adaptViewDistance;
* [] call ace_viewdistance_fnc_adaptViewDistance
*
* Public: No
*/

View File

@ -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
*/

View File

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

View File

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

View File

@ -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
*/

View File

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