AVA2 client Windows parity passes (gr2 BitKnit2/64-bit, GamePhase handlers, python modules)
- gr2: BitKnit2 decompression, 64-bit LE files, compressed curves - net: remaining GamePhase handlers, generated GC packet table - python: event/chat/chr/minimap/guild/quest/messenger/shop-search and other native modules ported against the AVA2 Windows client - render: D3D8 fixed-function lighting in Gr2ModelRenderer, terrain without baked shade; cape/NPC equipment attachment - tests + audits updated; docs/PORT-PLAN.md and WINDOWS-PARITY.md Batch 4 (render pipeline: background.*, app.RenderGame/UpdateGame, camera bindings, main.cpp fake-content removal) is still in progress. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9f748eb05a
commit
9077aa389a
@@ -32,7 +32,19 @@ namespace UI
|
||||
void SetText(const char* text) { if (text) m_text = text; }
|
||||
const char* GetText() const { return m_text.c_str(); }
|
||||
void SetValue(const char* text) { SetText(text); }
|
||||
void SetValueString(const std::string& text) { m_text = text; }
|
||||
void SetHorizonalAlign(int align) { m_hAlign = align; }
|
||||
int GetHorizontalAlign() const { return m_hAlign; }
|
||||
// EterLib CGraphicTextInstance::SetColor(r, g, b): alpha 1.
|
||||
void SetColor(float r, float g, float b) {
|
||||
auto c = [](float v) { return DWORD(std::clamp(v, 0.0f, 1.0f) * 255.0f + 0.5f); };
|
||||
m_color = 0xff000000 | (c(r) << 16) | (c(g) << 8) | c(b);
|
||||
}
|
||||
// EterLib CGraphicTextInstance::SetColor(const D3DXCOLOR&) / SetColor(DWORD): alpha kept.
|
||||
void SetColor(const D3DXCOLOR& color) { m_color = DWORD(color); }
|
||||
DWORD GetColor() const { return m_color; }
|
||||
// EterLib CGraphicTextInstance::Destroy: back to an empty, left-aligned instance.
|
||||
void Destroy() { *this = CGraphicTextInstance(); }
|
||||
void SetVerticalAlign(int align) { m_vAlign = align; }
|
||||
void SetMax(int max) { m_max = max; }
|
||||
void SetFontName(const char* name) { if (name) m_font = name; }
|
||||
@@ -57,6 +69,8 @@ namespace UI
|
||||
D3DXVECTOR2 GetPosition() const { return m_v2Position; }
|
||||
void Update() {}
|
||||
void Render();
|
||||
// Render(RECT* pClipRect): the clip rectangle is not applied by this text stand-in.
|
||||
void Render(const RECT*) { Render(); }
|
||||
static const char* Hyperlink_GetText(const std::string&, int, int*) { return ""; }
|
||||
private:
|
||||
D3DXVECTOR2 m_v2Position = D3DXVECTOR2(0.0f, 0.0f);
|
||||
@@ -213,10 +227,10 @@ namespace UI
|
||||
virtual BOOL OnMouseRightButtonDoubleClick();
|
||||
virtual BOOL OnMouseMiddleButtonDown();
|
||||
virtual BOOL OnMouseMiddleButtonUp();
|
||||
virtual BOOL OnMouseWheelScroll(short wDelta) { return FALSE; }
|
||||
virtual BOOL OnMouseWheelScroll(short wDelta);
|
||||
virtual void SetScrollable() { m_bIsScrollable = true; }
|
||||
virtual BOOL OnMouseWheel(int nLen) { return FALSE; }
|
||||
virtual BOOL RunMouseWheelEvent(long nLen) { return FALSE; }
|
||||
virtual BOOL OnMouseWheel(int nLen);
|
||||
virtual BOOL RunMouseWheelEvent(long nLen);
|
||||
|
||||
virtual BOOL OnKeyDown(int ikey);
|
||||
virtual BOOL OnKeyUp(int ikey);
|
||||
|
||||
Reference in New Issue
Block a user