Commit graph

139 commits

Author SHA1 Message Date
Azumgi
fcce983c9e [Options] Change some bad widget data names 2018-09-05 18:04:55 +03:00
Azumgi
51aa520df9 [Mod Options] Fix group widget collapsing 2018-09-05 17:00:49 +03:00
Azumgi
96050d50da [Options] New widget definition system 2018-09-05 16:08:57 +03:00
Azumgi
adf3b56e31 [Options] Move legacy code to separate file 2018-09-03 14:41:13 +03:00
Azumgi
a0f61e9295 [VMF Loader] Clean up 2018-09-02 16:53:52 +03:00
Azumgi
bab8a36027 Remove pre1.2 VT2 compatibility 2018-09-01 19:15:29 +03:00
Azumgi
0fd1bcc392 [Chat Broadcast] Add VT2 1.2 compatibility 2018-08-23 14:52:52 +03:00
Azumgi
fda3b5ac8b
Merge pull request #23 from Aussiemon/fixes/sanitize_clipboard_paste
Sanitize clipboard paste
2018-08-22 18:00:22 +03:00
Azumgi
c943b17385 [Mod Options] Little code style change 2018-08-22 17:58:27 +03:00
Azumgi
bfd467e0a2 [Mod Options] Add current VT2 compatibility
It's gonna be removed once VT2 1.2 is out.
2018-08-22 17:22:24 +03:00
Azumgi
945c699beb [Mod Options] Fully rewrite button injection code
Fixed all crashes and added console menu support.
2018-08-22 17:17:47 +03:00
Aussiemon
e051642ef9 Changed initial sanitize step to remove carriage returns by key, not keycode 2018-08-21 17:45:05 -06:00
Azumgi
1dfb8d80ff [VMF Loader] Remove debug output 2018-08-21 09:53:01 +03:00
Azumgi
e3d16127e9 [Dev Console] Forbid using in official realm (VT2)
Fatshark's demand.
2018-08-21 09:50:23 +03:00
Azumgi
d7f2d31897 [Hooks] Fix inability to find original functions 2018-08-21 09:30:38 +03:00
Azumgi
16d72fc593 Add reliable way to determine current game version 2018-08-21 09:00:12 +03:00
Azumgi
25ac1f8763 [Internal Mod Data] Add 'allow_rehooking' field 2018-08-20 22:42:35 +03:00
Azumgi
231468c451
Merge pull request #19 from FireSiku/new_hooks
Add ability to update hook handlers (aka rehook)
2018-08-20 22:23:54 +03:00
Azumgi
589ebb28c3 Fix chat-rpc-related crash for VT2 1.2 2018-08-20 22:17:19 +03:00
Azumgi
e625e16b11 [Settings] Make set_user_setting call safe 2018-08-20 20:19:16 +03:00
Azumgi
b0a86a0dd1 [Custom Textures] Fix not working debug output 2018-08-20 20:13:47 +03:00
bi
76c2e2cd21 [Commands List GUI] fix wrong commands' offset 2018-07-16 16:25:36 +03:00
Aussiemon
6a389d3a6f #21 Sanitize clipboard paste 2018-06-27 18:00:49 -06:00
FireSiku
9f05b8a326 Rehooking will only happen when allow_rehooking is set to true 2018-06-27 16:46:19 -04:00
FireSiku
4cbdba8951 Code refactor based on UnShame's advice
local functions will now use `mod` instead of `self` to be more clear about intent.

_registry now holds hook_data and nothing else, as a registry should. This will make it easier to implement the hook debugging utilities planned later on.

_registry.hooks and _registry.origs have been renamed to _hooks and _origs.

mod:enable_all_hooks and mod:disable_all_hooks are now both calling the internal toggle_all_hooks_for_mod function to be consistent with the rest of the API.
2018-06-27 16:11:51 -04:00
FireSiku
28bc668747 Hooks: Allow updating hook handler without affecting order.
It will throw an error if you're trying to update a hook using a different hook_type api to prevent any weirdness by jumping from one chain to the other.

Also created a specialized function for hook_data initialization.
2018-06-27 16:11:51 -04:00
bi
49e4d427d4 Settings: little style changes 2018-06-23 15:51:23 +03:00
bi
603f78b0c5 Misc: little style changes 2018-06-21 10:20:27 +03:00
bi
13727c1adc VMF Mod Data: got rid of 'is_togglable' and 'is_mutator' methods 2018-06-21 09:40:02 +03:00
bi
a172f72c0a VMF Mod Data: updated external change protection 2018-06-20 00:26:33 +03:00
bi
b5a9699bd8 VMF Mod Data: changed several comments 2018-06-19 17:38:17 +03:00
bi
391c1ca65f VMF Mod Data: refactoring, adding modification protection 2018-06-19 17:05:38 +03:00
bi
cb0e0b5585 Chat Actions: little style change 2018-06-19 17:02:30 +03:00
bi
15f7194629 Fixed error fest in mutators test file 2018-06-19 16:28:22 +03:00
bi
e0e519fbad Updated hooks definitions 2018-06-18 19:50:58 +03:00
bi
5b153657e7 VMF Options: fixed duplicated option's name in tooltip 2018-06-18 18:41:29 +03:00
bi
d825003301 Logging: fixed duplicating mod output in log 2018-06-18 18:36:01 +03:00
bi
1b5111d067 Safe Calls: moved to a separate file 2018-06-11 19:52:40 +03:00
bi
4824e6a5c8 Misc: little style changes 2018-06-11 19:51:49 +03:00
bi
4a6fb28b86 Renamed 'core_functions' to 'misc' 2018-06-11 19:36:30 +03:00
bi
315e45165d Logging: moved to a separate file 2018-06-11 18:58:40 +03:00
bi
e1f515e4ef Mutators: updated testing script 2018-06-11 15:20:18 +03:00
bi
a271e08f16 Mutators GUI: fixed dissapearing mutators while trying to scroll 2018-06-11 15:14:37 +03:00
Azumgi
4b890a616a
Merge pull request #14 from FireSiku/new_hooks
Delay disabling delayed hooks and fix a crash
2018-06-11 10:30:55 +03:00
FireSiku
8a13ec1bf9 Hooks's active status is based on mod's enabled status now.
Also, allow hook_enable and hook_disable to be delayed as well.
2018-06-11 03:15:44 -04:00
FireSiku
bee94c1665 Throw error if mod is trying to hook something that isnt a function 2018-06-10 20:35:49 -04:00
FireSiku
6b06745986 Only disable delaying when the state is set to Ingame. 2018-06-10 18:27:57 -04:00
Azumgi
32ce5e6fc9
Merge pull request #13 from FireSiku/events
Move event-checking logic inside run_event
2018-06-10 01:45:32 +03:00
Azumgi
4e9fc3a9c2
Merge pull request #9 from FireSiku/new_hooks
New Hook System
2018-06-10 01:45:12 +03:00
FireSiku
5f5ef1d317 Move event-checking logic inside run_event 2018-06-09 14:32:48 -04:00