Skip to content

fix(gui): typing-only IDE autocomplete + ScrollPanelElement constructor#144

Open
I-No-oNe wants to merge 4 commits into
clickcrystals-development:mainfrom
I-No-oNe:fix/ide-autocomplete-and-gui
Open

fix(gui): typing-only IDE autocomplete + ScrollPanelElement constructor#144
I-No-oNe wants to merge 4 commits into
clickcrystals-development:mainfrom
I-No-oNe:fix/ide-autocomplete-and-gui

Conversation

@I-No-oNe

@I-No-oNe I-No-oNe commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix
  • New feature

Description

IDE/GUI and module fixes, branched off current main (post 26.2 port part 1).

1. ClickScript IDE autocomplete is now typing-only.
Previously the suggestion box was driven by any text-field state change, so
copying, pasting, caret navigation and mouse clicks would pop it up and let it
hijack TAB/ENTER/UP/DOWN. TextFieldElement now reports whether a change
came from typing (character entry, backspace, delete) versus not (copy/cut/paste,
select, navigation, mouse click); the IDE only refreshes suggestions on typed
changes and hides them otherwise.

2. ScrollPanelElement vertical stacking folded into a constructor.
verticalStack(gap) is no longer a public chained setter — the gap is passed to a
dedicated constructor and applied at construction. ModuleEditElement,
ModuleEditScreen, AdvancedSettingScreen and KeybindScreen updated to match.

3. Team detection decoupled from EntityUtils.
isTeammate / shouldCancelCcsAttack and the scoreboard/color-name checks moved
out of EntityUtils into TeamDetector, so the util no longer imports a module;
the ccs macro callers are repointed. TeamDetector now caches the parsed manual
name list, ignores blank entries, and never flags yourself as a teammate.

4. NoResPack no longer hangs on forced packs.
After blocking a pushed resource pack it now spoofs the accepted → downloaded →
successfully-loaded handshake, so servers stop waiting on a response and kicking.

5. EntityIndicator setting visibility.
sprite-size only shows in COMPASS render mode (it has no effect in spherical).

Related issues

N/A

Checklist:

  • My code follows the style guidelines of ItziSpyder(ImproperIssues).
  • I added comments to my code in the more complex areas.
  • I tested the code in both development and production environments. (touched files compile clean; the wider build currently fails only on the unfinished 26.2 migration, unrelated to these changes)
  • I joined the ClickCrystals Discord.

I-No-oNe added 4 commits July 14, 2026 10:53
The IDE surfaced autocomplete on any text-field state change, so copying,
pasting, navigating and clicking would pop the suggestion box and let it
hijack TAB/ENTER/UP/DOWN.

TextFieldElement now reports whether a change came from typing: character
entry, backspace and delete flag it as typed, while copy/cut/paste/select,
caret navigation and mouse clicks do not. The IDE only updates suggestions
on typed changes and hides them otherwise.

(cherry picked from commit 6365aea)
…ructor

verticalStack(gap) is no longer a public chained setter; the gap is now
passed to a dedicated constructor and applied at construction. Updates the
ModuleEditElement, ModuleEditScreen, AdvancedSettingScreen and KeybindScreen
call sites to the new constructor.
…ode-only settings

- move team-detection logic (isTeammate/shouldCancelCcsAttack/team checks)
  out of EntityUtils into TeamDetector so the util no longer imports a module;
  repoint ccs macro callers accordingly
- TeamDetector: cache the parsed manual name list, ignore blank entries,
  exclude self, simplify shouldCancelCcsAttack
- NoResPack: spoof the accept/download/loaded handshake after blocking a pack
  so servers stop hanging/kicking on forced packs
- EntityIndicator: only show sprite-size in COMPASS render mode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant