Skip to content

Conversation

@supersaiyansubtlety
Copy link
Member

@supersaiyansubtlety supersaiyansubtlety commented Oct 26, 2025

Adds #139

based on #318


Adds markers for each token type:

  • markers for each type are toggleable; only obfuscated and fallback are enabled by default
  • markers can be limited to declarations; disabled by default
  • markers have entry tooltips; enabled by default
  • markers can be clicked to navigate to their corresponding entry
  • up to two markers can be displayed per line; which markers are displayed is determined by priority:
    debug > obfuscated > fallback > proposed > deobfuscated
  • higher priority markers are left-most
  • markers have their token type's outline color (because it's brighter and more opaque than the main color)

Config

enigma-markers-config-menu-2
from editor.toml:
# Settings for markers on the right side of the editor indicating where different entry types are.
[entry_markers]
	# Whether markers should have tooltips showing their corresponding entries.
	# default: true
	tooltip = true
	# Whether only declaration entries should be marked.
	# default: false
	only_mark_declarations = false
	# Whether obfuscated entries should be marked.
	# default: true
	mark_obfuscated = true
	# Whether fallback entries should be marked.
	# default: true
	mark_fallback = true
	# Whether proposed entries should be marked.
	# default: false
	mark_proposed = false
	# Whether deobfuscated entries should be marked.
	# default: false
	mark_deobfuscated = false

Screenshots

default all enabled only declarations
enigma-markers-default enigma-markers-all-enabled enigma-markers-only-declarations
limited space tooltip
enigma-markers-squished enigma-markers-tooltip

TODO:

  • add markers for each highlightable token type
  • make markers for each token type toggleable
  • make markers interactable (tooltip on hover, click to navigate to token)
  • rebase once Improve selection highlighting #318 is merged
  • add scroll preview on mouse over scroll bar (may go in followup PR)

…t's the same class (editor bounds were 0x0 when setting source)

navigate to tooltip target entry declaration when showing tooltip
stop excluding curly braces from method and class sources
add "No source available" label when there's no classhandle
centralize target name reporting
stop closing tooltip's class handles as tabs may still need them; remove ClassHandleListener instead
rename TooltipEditorPanel -> DeclarationSnippetPanel
extract EditorTooltip
add test input for easier manual tooltip testing
make only EditorPanel use MarkablScrollPane
add EntryMarkersSection.onlyMarkDeclarations
repaint MarkableScrollPane on marker added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request user interface affects the enigma ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show Unmapped lines in scrollbar

1 participant