notenoughcalculator-2.6.0.jar
Curse Maven Snippet
What's new
New features:
Live Syntax Highlighting:
- Numbers & Decimal values: Pure Bright White (
§f) - SkyBlock Units (
k,m,b,t,s,e,h,sc,dc,eb): Vibrant Cyan (§b) - Math Functions (
sqrt,bz,ah,fmt,rad,deg, etc.): Bright Yellow (§e) - Built-in constants (
ans,pi,e) and custom variables ($var): Bright Green (§a) - Math Operators (
+,-,*,x,/,^,%,!,&,|,~,<<,>>): Bright Gold (§6) - Delimiters & Parentheses (
(,),,): Light Gray (§7)
Custom Variables Manager GUI Tab:
- Added a new GUI tab in
/calcconfigto easily add, edit, delete, and paginate (</>) custom variables in-game.
Focus-Aware Search Bar Border:
- Search bar border dynamically switches to Pure Bright White (
0xFFFFFFFF) when actively typing/focused, and Unfocused Gray (0xFF8B8B8B) when unfocused.
Improvements & Fixes:
- Centralized all color codes in
SyntaxHighlighter.java. - Centralized math functions (
FUNCTIONS), unit multipliers (UNITS), and built-in constants (BUILTIN_VARIABLES) inExpressionEvaluator.java. - Token regex patterns in
SyntaxHighlighter.javaandCalculatorManager.javaare fetched dynamically fromExpressionEvaluator. Adding a new unit or function now updates evaluation, autocompletion, regex matching, and syntax highlighting. - Refactored
ResultFormatterto reuse cachedExpressionEvaluator.UNITSBigDecimalinstances, eliminating temporary object allocations during render loops. - Added new test coverage for syntax highlighting token rules (325+ total unit tests).
All features and improvements in this release were contributed by @Rijzzz
Full Changelog: https://github.com/Rijzzz/NotEnoughCalculator/compare/v2.5.0...v2.6.0
This mod has no additional files

