Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added addons/mission/data/keypad_accepted_ca.paa
Binary file not shown.
Binary file added addons/mission/data/keypad_default_ca.paa
Binary file not shown.
Binary file added addons/mission/data/keypad_locked_ca.paa
Binary file not shown.
4 changes: 4 additions & 0 deletions addons/mission/functions/fnc_keypadPress.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ if (_keypadInput isEqualTo "Enter") exitWith {
if (_failedAttempts >= _maxFailedAttempts) exitWith {
[QGVAR(keypadFailure), [_keypad, ace_player, _failedAttempts]] call CBA_fnc_globalEvent;
_keypad setVariable [QGVAR(keypadBlocked), true, true];
_keypad setObjectTextureGlobal [0, QPATHTOF(data\keypad_locked_ca.paa)];
[_keypad, "FD_CP_Not_Clear_F", 10] call CBA_fnc_globalSay3D;
ctrlSetText [1000, "Keypad Locked"];
[{
closeDialog 2;
Expand All @@ -54,6 +56,8 @@ if (_keypadInput isEqualTo "Enter") exitWith {
ctrlSetText [1000, "Accepted!"];
[QGVAR(keypadSuccess), [_keypad, ace_player]] call CBA_fnc_globalEvent;
_keypad setVariable [QGVAR(keypadFinished), true, true];
_keypad setObjectTextureGlobal [0, QPATHTOF(data\keypad_accepted_ca.paa)];
[_keypad, "FD_CP_Clear_F", 10] call CBA_fnc_globalSay3D;

[{
closeDialog 2;
Expand Down
3 changes: 2 additions & 1 deletion addons/mission/functions/fnc_keypadSetup.sqf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "..\script_component.hpp"
/*
* Author: Mike
* Prepares an object for keypad GUI
* Prepares an object for keypad GUI (Imagery supports any of the "Tablet" objects)
*
* Call from init.sqf
*
Expand All @@ -26,6 +26,7 @@ if (isServer) then {
_object setVariable [QGVAR(Keypad_maxCharacters), _maxCharacters, true];
_object setVariable [QGVAR(Keypad_requiredCode), _requiredCode, true];
_object setVariable [QGVAR(Keypad_Text), "", true];
_object setObjectTextureGlobal [0, QPATHTOF(data\keypad_default_ca.paa)];
};

if (!hasInterface) exitWith {};
Expand Down
Loading