Commit Graph
19 Commits
Author SHA1 Message Date
David Cernat 9d596a00ac [MenuHelper] Rename requireAdminRank into requireStaffRank 2018-10-14 11:52:54 +03:00
David Cernat df7475df17 [MenuHelper] Add currentPlayerDataVariable and concatenation variables 2018-10-14 11:20:40 +03:00
David Cernat cee882c376 [MenuHelper] Add chatName variable 2018-10-14 09:38:44 +03:00
David Cernat 88d7f47799 [General] Rename settings.admin into settings.staffRank for players 2018-08-27 16:02:02 +03:00
David Cernat ed23c1a69f [General] Use consistent capitalization for function names, part 2 2018-08-13 06:38:45 +03:00
David Cernat a704dc01d7 [MenuHelper] Remove forgotten debug for variables 2018-07-21 04:39:15 +03:00
David Cernat 497731a9e0 [MenuHelper] Add missing arg unpacking to non-object global functions 2018-07-17 19:29:27 +03:00
David Cernat 2d221d6dc6 [MenuHelper] Add variable-processing with currentPid() as the first type 2018-07-17 05:09:44 +03:00
David Cernat 9c4a82aeeb [MenuHelper] Fix arguments for targetObjects without metatables
This is an unreliable approach, but should work fine on all existing official scripts.
2018-07-17 04:00:08 +03:00
David Cernat 5fc4205208 [MenuHelper] Fix usage of unpack for effect function arguments 2018-07-17 03:51:41 +03:00
David Cernat 5c0a79564c [MenuHelper] Add the ability to run global object functions
Also add the ability to run global functions that are not part of any objects.

The old runFunction() has been renamed into runPlayerFunction(). additionally, the old setDataVariable() has been renamed into setPlayerDataVariable().
2018-07-17 02:53:51 +03:00
David Cernat f242304a98 [General] Fix remaining long lines 2018-07-11 03:40:49 +03:00
David Cernat 77f712100b [MenuHelper] Rework MenuHelper by adding display conditions to buttons 2018-07-09 18:26:19 +03:00
David Cernat 5a4256c9e1 [MenuHelper] Turn checking of a condition table into its own function 2018-07-09 00:17:14 +03:00
David Cernat 60b5ea0089 [MenuHelper] Add new requireAdminRank condition 2018-07-09 00:14:54 +03:00
David Cernat 1efe8e8efd [Utils] Add inventoryHelper.addItem() method and use it in menuHelper 2018-03-26 19:44:26 +03:00
David Cernat f0e633376f [MenuHelper] Allow multiple refIds for item requirements and removals 2018-03-09 18:43:26 +02:00
David Cernat 961c3e9616 [Config] Set custom menu IDs from config 2018-03-09 11:34:56 +02:00
David Cernat 22ce78a7cd [General] Add new menuHelper class for handling custom menus 2018-03-08 07:06:24 +02:00