mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
3f4564605b
* Muzzle Velocity vs. Temperature Interpolation * C1 Ballistic Coefficient vs. Distance Interpolation * Coriolis and Spin drift output * Options menu * Truing Drop --------------------------------- * Overworked default gun profiles --------------------------------- * Fixed the Cancel buttons on the gun-, atmosphere- and target columns. * Fixed some muzzle velocity entries in the default gun list. * Fixed divide by zero error in the target range estimator
44 lines
1.0 KiB
Plaintext
44 lines
1.0 KiB
Plaintext
/*
|
|
* Author: Ruthberg
|
|
* Updates the truing drop input method
|
|
*
|
|
* Arguments:
|
|
* Nothing
|
|
*
|
|
* Return Value:
|
|
* Nothing
|
|
*
|
|
* Example:
|
|
* call ace_atragmx_fnc_update_truing_drop_selection
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
#define __dsp (uiNamespace getVariable "ATragMX_Display")
|
|
|
|
(__dsp displayCtrl 18009) ctrlEnable true;
|
|
(__dsp displayCtrl 18010) ctrlEnable true;
|
|
|
|
if (GVAR(truingDropMode) == 0) then {
|
|
(__dsp displayCtrl 18009) ctrlEnable false;
|
|
{
|
|
(__dsp displayCtrl _x) ctrlEnable true;
|
|
} forEach [18011, 18013, 18016];
|
|
{
|
|
(__dsp displayCtrl _x) ctrlEnable false;
|
|
} forEach [18012, 18014, 18017];
|
|
ctrlSetFocus (__dsp displayCtrl 18011);
|
|
} else {
|
|
(__dsp displayCtrl 18010) ctrlEnable false;
|
|
{
|
|
(__dsp displayCtrl _x) ctrlEnable true;
|
|
} forEach [18012, 18014, 18017];
|
|
{
|
|
(__dsp displayCtrl _x) ctrlEnable false;
|
|
} forEach [18011, 18013, 18016];
|
|
ctrlSetFocus (__dsp displayCtrl 18012);
|
|
};
|
|
|
|
[] call FUNC(update_truing_drop_data);
|