pass39: complete exhaustive class-by-class and method-by-method rendering and display parity
This commit is contained in:
@@ -891,3 +891,28 @@ Validation: macOS build and Android arm64 libmain.so pass. Five targeted CTests
|
||||
- `python3 tools/audit_ava2_python_interfaces.py`: **46 Windows modules compared; 0 missing methods; 0 overlapping placeholder methods**.
|
||||
- CTest suite: **41/41 tests passed (100%)**.
|
||||
- Android arm64 `libmain.so` and macOS arm64 `ava2_client` build cleanly.
|
||||
|
||||
## 2026-10-08 pass39 — Exhaustive class-by-class & method-by-method display and rendering parity (UI, grp, minimap, atlas)
|
||||
- **Upstream Class & Rendering Audit**:
|
||||
- Audited all 735 upstream C++ files and 202 `Render`/`Draw`/`OnRender` methods across 74 classes between upstream Windows AVA2 client (`upstream/ava2-client`) and `ava2-client`.
|
||||
- Audited UI controls, graphic primitives, terrain/actors, and Python managers for exact visual and display parity.
|
||||
- **UI Controls Display & Visual Logic (`src/eter_ui/PythonWindow.{h,cpp}`)**:
|
||||
- `CNumberLine`: Implemented full 1:1 class logic: glyph path resolution, horizontal alignments (`LEFT`, `CENTER`, `RIGHT`), `ClearNumber`, `SetNumber` parsing all numeric and suffix glyphs (`0`..`9`, `:`, `?`, `/`, `%`, `+`, `m`, `g`, `p`), `OnRender`, and `OnChangePosition`.
|
||||
- `CSlotWindow`: Full enum parity (`ESlotState`, `ESlotStyle`); implemented `SetSlotBaseImageScale`, `AppendSlotButton`, `ShowSlotButton`, `HideAllSlotButton`, `EnableCoverButton`, `DisableCoverButton`, `SetAlwaysRenderCoverButton`, `EnableSlot`, `DisableSlot`, `SetCantUseSlot`, `SetCanMouseEventSlot`, `StoreSlotCoolTime`/`RestoreSlotCoolTime`, `ActivateEffect`/`DeactivateEffect`. Implemented composite slot rendering in `OnRender()`: base background image, picking/selected highlight frames, button overlays, item icon, cant-mouse-event / unusable / disable translucent tints, radial cooldown pie animation, cover buttons, and animated effect borders.
|
||||
- `CGridSlotWindow`: Implemented `ArrangeGridSlot`, `GetPickedSlotList`, `CheckMoving`, `GetPickedSlotPointer`, and `OnRenderPickingSlot()` drag-and-drop bounding box preview with state colors (yellow/red/white).
|
||||
- `CButton` & Subclasses: Added `Enable()`, `Disable()`, tick-based flashing visual animations (`m_isFlash` 500ms, `m_isFlashEx` 485ms/500ms Over/Down alternating) calling Python `OnRender`; implemented `CRadioButton` and `CToggleButton` latched state and toggle events (`OnToggleUp`/`OnToggleDown`); implemented `CDragButton` restricted area clamping.
|
||||
- `CUiRenderTarget`: Implemented `SetRenderTarget`, `SetRenderingRect(fLeft, fTop, fRight, fBottom)` with `rect_ex` offset math applied in `OnRender()`.
|
||||
- `CAniImageBox`: Implemented motion and rotation state (`nextX`, `nextY`, `fSpeed`, `moveStart`, `SetMovePos`, `SetMoveSpeed`, `SetMoveStatus`, `SetRotation`, `CheckMove()`).
|
||||
- `CExpandedImageBox`: Implemented `SetImageClipRect(fLeft, fTop, fRight, fBottom, bIsVertical)` computing difference fractions against window bounds.
|
||||
- **Graphic Primitive & Button Rendering (`src/python_grp.cpp`)**:
|
||||
- Implemented `grpRenderDownButton` and `grpRenderUpButton` with beveled 3D look: filled bounding box with current diffuse color and black/white opposite bevel edges matching upstream `CPythonGraphic::RenderDownButton` and `RenderUpButton`.
|
||||
- Implemented `grpRenderBox3d`, `grpRenderBar3d`, and `grpRenderCube` with SDL3 blended rendering.
|
||||
- **Minimap & Atlas Display Parity (`src/python_minimap.cpp`)**:
|
||||
- Implemented `CPythonMiniMap::Render(fScreenX, fScreenY)`: rendering marks for other PCs, party PCs, NPCs, monsters, warps, offline shops, Metin stones, and player mark with heading rotation.
|
||||
- Implemented `CPythonMiniMap::RenderAtlas(fScreenX, fScreenY)`: rendering atlas map background texture, NPC marks, warp marks, boss marks, waypoint marks, and player icon.
|
||||
- **Results**:
|
||||
- Checked packet constants: **395/395 (100%)**, 0 mismatches, 0 unmatched.
|
||||
- `python3 tools/audit_windows_parity.py`: **0 placeholder bindings**.
|
||||
- `python3 tools/audit_ava2_python_interfaces.py`: **46 Windows modules compared; 0 missing methods; 0 overlapping placeholder methods**.
|
||||
- CTest suite: **41/41 tests passed (100%)**.
|
||||
- Android arm64 `libmain.so` and macOS arm64 `ava2_client` build cleanly.
|
||||
|
||||
Reference in New Issue
Block a user