tft: picture, crop, progress bar, checkbox, radio; page RAM header fix; README sub-goals

- five more Basic types in tft_types (default variants; others refused)
- the page RAM image starts with 4 x FF + one FF per component (padded to 4)
- README: .tft status split into sub-goals with a stated basis each
- sample generator: display direction and gradient pictures; regression test
  walks sub-folders (84 Editor samples reproduced)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
mangavalkandClaude Fable 5.2 committed 2026-11-16 23:31:12 +01:00
1 parent a8622e7462
commit 0287cf21e4
8 files changed
+101 -10

No files matched your search

+20 -1
View File
@@ -32,7 +32,26 @@ Every percentage is a count with a stated basis, so it can be checked (details i
| Readable attribute names in JSON | **100 %** (31/31 types) | every value list the Editor documents, incl. the Intelligent-only types and load effects |
| Rendering, Basic components | **100 %** (20/20 pixel-exact) | incl. gauges and QR codes (own encoder, no dependencies) |
| Rendering, all components | **94 %** (29/31 pixel-exact) | Intelligent ComboBox and Switch are drawn, but their anti-aliased edges are approximate (~99 % / ~92 % of pixels exact) |
| `.tft` compilation | **81 %** (6.5/8 milestones) | `nxhmi build-tft`: byte-identical to the Editor for NX4832T035 projects with pages, hotspots, plain text, int variables, timers, touch caps, pictures, fonts and script (assignments, arithmetic, 27 commands, if/else/while/for, global variables); the other component types not yet; never tried on a display |
### `.tft` compilation (`nxhmi build-tft`)
Research stage. The goal is output byte-identical to Nextion Editor's; anything not measured is
refused with the reason instead of guessed. Checked against 84 Editor-compiled sample projects.
The firmware files inside every `.tft` are read from your own Editor installation at build time.
| Sub-goal | Status | Basis |
|---|---|---|
| File container | **done** (4/4) | header, layout table, the four checksums, resource area |
| Pictures and fonts in the `.tft` | **done** (2/2) | any number of each (Basic picture format) |
| Page section structure | **done** | code blob, name hashes, RAM image, attribute records, page table, object records |
| Script: statements | **mostly** | assignments, arithmetic, numbers, global `int` variables, attribute references, `if` / `else if` / `else` / `while` / `for`. Not yet: `>=` (inferred only), mixed `&&`/`||`, string attributes and string functions, negative global initial values |
| Script: commands | **39 %** (25/64) | commands whose token was read from a compiled sample |
| Script: system variables and colours | **40 %** (29/72) | same basis |
| Component types (Basic) | **65 %** (13/20) | page, hotspot, text, number, button, picture, crop, progress bar, checkbox, radio, int variable, timer, touch cap. Missing: slider, dual-state button, float, scrolling text, gauge, waveform, QR code |
| Component variants | **partly** | number: all backgrounds and border styles. Button: all 5 styles, solid background only. Text: flat on solid colour only. Progress bar: horizontal, solid colours only. Checkbox: default style only. Page: solid colour only. No global (`vscope`) components, no drag / effects |
| Display directions | **25 %** (1/4) | 90 degrees (landscape) only |
| Display models | **4 %** (1/27) | NX4832T035 only |
| Tested on a real display | **no** | byte-identity with the Editor is the only evidence so far |
## Compatibility