Commit Graph
3783 Commits
Author SHA1 Message Date
Kam c16aae75e2 Merge branch 'dev' into syntax-highlighter-unified 2026-03-02 16:38:44 -05:00
Kam dfa6ccb350 Fixes to some Script Handling 2026-03-02 16:38:35 -05:00
Kam 702dec9c40 Small Bug Fixes to Flight, Command Handling, Linked Items 2026-03-02 15:23:54 -05:00
bigguy345 a5ffe34c2d feat(script-editor): apply receiver generic type args to legacy Object params in JDK collection methods
This change enables the script editor to display and validate generic type arguments
for method parameters that are erased to Object in Java's built-in collection interfaces.

MOTIVATION
----------
Java's Map, Collection, List, Deque, and concurrent variants use Object-typed parameters
(e.g., Map.get(Object), Collection.contains(Object)) for backward-compatibility reasons.
When the receiver is parameterized (e.g., HashMap<String, Integer>), the editor should
show get(String) instead of get(Object) to provide better hints and stricter validation.

IMPLEMENTATION
--------------
New GenericParameterAdapter utility (contract-level rules, NOT per-concrete-class):
- Covers 8 JDK collection contracts exhaustively (Map, ConcurrentMap, Collection, List,
  Set, Deque, BlockingQueue, BlockingDeque)
- 35+ rules total mapping erased Object params to appropriate type arguments (K, V, or E)
- Integrated into MethodInfo.fromReflection() so all code paths (autocomplete, hover,
  validation) use the same adapted parameter types
- Hover signature rendering now routes through MethodInfo for parameterized receivers,
  ensuring consistency with autocomplete

Related-to: Generic type argument substitution framework (TypeSubstitutor, GenericContext)
which already applied V correctly; this extends that same mechanism to K/E for the
JDK's intentionally-erased-for-compatibility method parameters.
2026-03-02 17:11:52 +02:00
bigguy345 26ebb69f81 Merge remote-tracking branch 'origin/syntax-highlighter-unified' into syntax-highlighter-unified 2026-03-02 14:08:19 +02:00
bigguy345 6b7563cab3 Fixed broken null assignments i.e. var npc = null 2026-03-02 14:08:00 +02:00
bigguy345 4fa7a73704 Fixed JS func expressions/lambda fields broken scope logic + fixed another statement line separation logic 2026-03-02 14:07:59 +02:00
bigguy345 6328826c9e Fixed .d.ts js types of same assignability/inheritance (ICustomNpc -> IEntity) not being checked properly 2026-03-02 13:30:29 +02:00
bigguy345 006766bc1e Fixed .d.ts type merges overriding same-arity methods i.e spawn(IWorld) used to override spawn(IEntity, no more 2026-03-02 13:29:39 +02:00
Kam 109e31fd2d Fix Hooks not Registering 2026-03-02 06:13:40 -05:00
bigguy345 fbb46ae9f2 Improved statement line separation logic so it includes chained dots on whitespaces and lines 2026-03-02 12:49:36 +02:00
Kam ce5c85b0ad Merge branch 'dev' into syntax-highlighter-unified 2026-03-02 04:01:23 -05:00
Kam a077c7b32f Add Ignore I-Frames to Abilities 2026-03-02 03:58:18 -05:00
Kam 8ed04fb58b Merge branch 'dev' into syntax-highlighter-unified 2026-03-01 21:08:36 -05:00
Kam 2448655fc4 1.11 Beta 12 2026-03-01 21:07:52 -05:00
bigguy345 32fd6af04f Fix hook signatures to follow runtime hook registrations in ScriptHookController.
This fixes broken unresolved DBC addon hook event types
2026-03-02 02:28:01 +02:00
bigguy345 36f7233297 Narrow integer literals to byte/short/char when expected i.e setByte(100) no longer throws "Expected byte, provided int" 2026-03-02 01:47:56 +02:00
bigguy345 edb285c90b Applied scope logic more consistently for variables/assignments 2026-03-02 00:45:24 +02:00
bigguy345 29f0282fe4 Merge branch 'dev' into syntax-highlighter-unified 2026-03-02 00:26:51 +02:00
bigguy345 e1be96412d Merge remote-tracking branch 'origin/syntax-highlighter-unified' into syntax-highlighter-unified 2026-03-02 00:20:45 +02:00
bigguy345 d45f09c27c Extracted ScopeInfo to its own class 2026-03-01 23:33:36 +02:00
Kam 61d08882a9 Lots of Fixes 2026-03-01 16:19:50 -05:00
Kam 0ad15e674a Clear Ability on Teleport 2026-03-01 15:55:22 -05:00
Kam edb9686703 Cancel Only during Windup 2026-03-01 15:49:04 -05:00
Kam 6eeeddad3f Sort Ordering for Concurrent and Custom 2026-03-01 15:34:29 -05:00
Kam a479a9d941 Fix Charging on Staff Resetting 2026-03-01 04:44:42 -05:00
Kam 40613fa56a Bunch of API Additions
- ITintData
- IHitboxData
- Sound Management APIS
- Tactical Chance
- Swimming
- Fire Reactions
- Sprint
- Door Interact
- Walking Range
2026-03-01 04:27:12 -05:00
Kam aa53d0588c Merge branch 'dev' into syntax-highlighter-unified 2026-03-01 03:34:56 -05:00
Kam 6f1a837296 Renaming for Better Schema 2026-03-01 03:00:17 -05:00
Kam f1a6d7488f Counter, Dodge, Guard Animation Hookup + Damage Fixes 2026-03-01 01:59:44 -05:00
Kam b49316d9bb Counter, Dodge, Guard Abilities 2026-03-01 00:09:57 -05:00
Kam fc71fb5a33 Counter, Dodge, Guard Abilities [WIP] 2026-02-28 23:23:52 -05:00
Kam de2fcea154 Animated Texture Support 2026-02-28 18:34:21 -05:00
Kam 988dbe0cd2 Fix Scripts not being available on Ability / Chained Creation 2026-02-28 18:12:55 -05:00
Kam f71694e210 Fix Default Icon Logic in DBC Addon to work with Layering System of CNPC+ 2026-02-28 17:05:54 -05:00
Kam 8056640102 Default Icon Layer Handling 2026-02-28 16:58:38 -05:00
Kam eaec10e529 Fix Some Quest Cooldown Behavior 2026-02-28 14:17:23 -05:00
Kam 38df157c40 Staff Charging Fix 2026-02-28 14:04:11 -05:00
somehussar 80ab2eaae9 Change image download headers.
- Simplified connection headers.
- Added a config to fall back to the original connection headers.
2026-02-28 02:23:47 +01:00
Kam 3bbde1f748 Field Def Size Fixes 2026-02-27 16:45:48 -05:00
Kam 675c4ef4f9 Remove all Legacy Ability Content, cleanup API.
- Add Script Tab to Abilities
- Add Custom Ability
- Add Icon Support for Abilities / Default Icon Support
- Remove Icon Tab and throw it into Effects with allowed Override
- Removed Deprecated API Sources
2026-02-27 16:43:35 -05:00
Kam 3d21a7634c Merge branch 'dev' into syntax-highlighter-unified 2026-02-26 19:29:16 -05:00
Kam 04e6cbe6cf 1.11 Beta 11 2026-02-26 19:29:08 -05:00
Kam 6a10a25389 Merge branch 'dev' into syntax-highlighter-unified 2026-02-26 19:27:42 -05:00
Kam 2f1e67660d Anchor Point Helper Eye - Item Staff Fixes 2026-02-26 02:59:40 -05:00
bigguy345 be50fdeda5 Forgotten if clause from yesterday 2026-02-25 20:45:00 +02:00
bigguy345 30be75dbae Fix autocomplete menu scroll math when visible rows < max
When the menu shrinks in windowed/cramped layouts, several paths still assumed MAX_VISIBLE_ITEMS (10) for maxScroll/hover/scrollbar calculations, making the last entries unreachable. Use the actual visible capacity (visibleItemsCount) consistently and normalize scissor Y conversion for scaled GUI coords
2026-02-25 19:54:32 +02:00
bigguy345 28293fd6d7 Changed ShowImplementationFieldsInAutocomplete config description 2026-02-25 17:35:52 +02:00
bigguy345 f9f1cb760c Merge remote-tracking branch 'origin/syntax-highlighter-unified' into syntax-highlighter-unified 2026-02-25 17:14:12 +02:00
bigguy345 6c45957b82 Add ShowImplementationFieldsInAutocomplete config 2026-02-25 17:13:35 +02:00