Commit Graph
3712 Commits
Author SHA1 Message Date
bigguy345 b9b1b0725a JSDoc hover tooltip improvements: fix scissor clip, remove trailing whitespace, balance code block padding, support multi-resolution wrapping, add tooltip panning
- Trim trailing blank lines from JSDoc descriptions to remove extra bottom space
- Add tooltip panning: drag M1 anywhere on tooltip panel body to reposition it freely
2026-03-05 00:35:25 +02:00
bigguy345 e8b0c6a542 Merge remote-tracking branch 'origin/syntax-highlighter-unified' into syntax-highlighter-unified 2026-03-05 00:32:34 +02:00
Kam c5cd2d7ce1 Merge branch 'dev' into syntax-highlighter-unified 2026-03-04 16:21:29 -05:00
Kam 5a879cd6a5 Beta 13.1 2026-03-04 16:21:22 -05:00
Kam d3346111c7 Animation Resync on Teleport 2026-03-04 16:19:42 -05:00
Kam a981060e9e Crazy Logging for Health Spam Debugging 2026-03-04 16:05:09 -05:00
Kam d1b32ea8a1 Fix Timer not being able to be called from a Spawning NPC [Revert if not working] 2026-03-04 15:59:41 -05:00
bigguy345 2578ce1cf6 feat(hover): wire tooltip scrollbar drag into GuiScriptTextArea input handling
- drawTextBox: update scrollbar drag each frame via Mouse.isButtonDown(0),
  release drag when button lifted (mirrors existing ScrollState pattern)
- mouseClicked: intercept LMB on tooltip scrollbar thumb before text interaction

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-04 22:56:10 +02:00
bigguy345 58f86058d4 feat(hover): scrollbar drag/hover-highlight, smooth scroll, compact blank-line spacing
- HoverState: add smooth-scroll lerp (updateSmoothScroll, targetScrollOffset),
  scrollbar thumb bounds (setScrollbarThumb), click/drag/release state methods,
  and fix broken scrollTooltip/getTooltipScrollOffset/resetTooltipScroll methods
  that referenced the deleted int field
- TokenHoverRenderer: call updateSmoothScroll each frame; store thumb bounds
  for drag+hover detection; highlight thumb on hover/drag; reduce empty
  DocumentationLine height from lineHeight+LINE_SPACING to lineHeight/2

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)
Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
2026-03-04 22:54:38 +02:00
bigguy345 24af603ce1 Java/Janino editor fixes and improvements:
- Fixed clicking and adding hooks not properly resolving added types like INpcEvent.CollideEvent

- Imported wildcards of all available events in the given context.
  i.e ScriptContext NPC has INpcEvent,IProjectileEvent,IAbilityEvent,etc.. as available wildcard imports

- Added nested types to autocomplete of outer classes so INpcEvent. shows InitEvent, UpdateEvent, InteractEvent,etc...

- Added wildcard imports to autocomplete
2026-03-04 15:08:30 +02:00
bigguy345 784fb8da65 feat(hover): markdown-aware JSDoc description rendering with heading and code colors 2026-03-04 14:11:46 +02:00
bigguy345 f08e97af1f fix(jsdoc): preserve newlines in JSDoc description and tag continuation 2026-03-04 14:05:20 +02:00
bigguy345 60fc7ec252 Add ECMAScript 5.1 global imports like Math/JSON/Date/Number 2026-03-04 13:21:40 +02:00
bigguy345 2821b5da09 Merge remote-tracking branch 'origin/syntax-highlighter-unified' into syntax-highlighter-unified 2026-03-04 12:54:29 +02:00
Kam 2eecf9c230 Merge branch 'dev' into syntax-highlighter-unified 2026-03-03 23:01:37 -05:00
Kam 2f33abc75c 1.11 Beta 13 2026-03-03 23:01:03 -05:00
Kam 556d7daa13 Fix Script Contexts 2026-03-03 22:53:18 -05:00
Kam 9e68943b7e Merge branch 'dev' into syntax-highlighter-unified 2026-03-03 22:32:38 -05:00
Kam 54e0ca6510 Fix Instanced Abilities Reloading per Usage 2026-03-03 22:15:49 -05:00
Kam 2ba2372bde Fix some Selection Handling for Abilities 2026-03-03 21:56:17 -05:00
Kam 513956062d Merge branch 'dev' into syntax-highlighter-unified 2026-03-03 20:30:02 -05:00
Kam b59f0b8f2f Energy Explosion API and some changes to Energy Projectile API 2026-03-03 17:11:12 -05:00
Kam 6f6e080ee0 Add Better Info Panel and Display Damage to Abilities 2026-03-03 16:32:16 -05:00
Kam d9f100d245 Cleanup Damage Handling Logic for CNPC+ and DBC Addon for better readability / context. Added Magic Data Support to Abilities 2026-03-03 14:55:50 -05:00
Kam c3096b320e Fix Critical and Attribute Handling for CNPC+ and DBC Addon 2026-03-03 04:06:34 -05:00
Kam ee192a247f Better API Handling for Scripting Energy Utilitizes / Damage Handling 2026-03-03 02:02:13 -05:00
Kam 572a51ad32 Better API Handling for Scripting Energy Utilitizes / Damage Handling 2026-03-03 02:02:05 -05:00
Kam 7df1cfbfb9 Script Token Handling 2026-03-03 01:58:45 -05:00
Kam dad49f1867 Add Track Delay and Anchor Handling 2026-03-02 20:09:32 -05:00
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