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
@@ -481,8 +481,50 @@ namespace UI
|
||||
return ret ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
BOOL CWindow::OnMouseMiddleButtonDown() { return FALSE; }
|
||||
BOOL CWindow::OnMouseMiddleButtonUp() { return FALSE; }
|
||||
// EterPythonLib/PythonWindow.cpp CWindow::OnMouseMiddleButtonDown/Up, RunMouseWheelEvent,
|
||||
// OnMouseWheel/OnMouseWheelScroll (ENABLE_MOUSEWHEEL_EVENT is on in AVA2 Locale_inc.h).
|
||||
BOOL CWindow::OnMouseMiddleButtonDown()
|
||||
{
|
||||
if (!m_poHandler) return FALSE;
|
||||
long ret = 0;
|
||||
if (PyCallClassMemberFunc(m_poHandler, "OnMouseMiddleButtonDown", BuildEmptyTuple(), &ret) && ret)
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL CWindow::OnMouseMiddleButtonUp()
|
||||
{
|
||||
if (!m_poHandler) return FALSE;
|
||||
long ret = 0;
|
||||
if (PyCallClassMemberFunc(m_poHandler, "OnMouseMiddleButtonUp", BuildEmptyTuple(), &ret) && ret)
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL CWindow::RunMouseWheelEvent(long nLen)
|
||||
{
|
||||
if (!m_poHandler) return FALSE;
|
||||
long ret = 0;
|
||||
if (PyCallClassMemberFunc(m_poHandler, "OnRunMouseWheel", Py_BuildValue("(l)", nLen), &ret))
|
||||
return ret ? TRUE : FALSE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL CWindow::OnMouseWheel(int nLen)
|
||||
{
|
||||
if (!m_poHandler) return FALSE;
|
||||
long ret = 0;
|
||||
if (PyCallClassMemberFunc(m_poHandler, "OnMouseWheel", Py_BuildValue("(i)", nLen), &ret) && ret)
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL CWindow::OnMouseWheelScroll(short wDelta)
|
||||
{
|
||||
if (m_poHandler)
|
||||
PyCallClassMemberFunc(m_poHandler, "OnMouseWheelScroll", Py_BuildValue("(s)", wDelta > 0 ? "UP" : "DOWN"));
|
||||
return m_bIsScrollable ? TRUE : FALSE;
|
||||
}
|
||||
|
||||
BOOL CWindow::OnKeyDown(int ikey)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user