Port route 4-c: NPC shop (PythonShop.cpp) + app cursor state
- UserInterface/PythonShop.cpp ported verbatim (shop module, initshop after initfly); pending stub and module stubs removed. - 40250 PythonApplicationCursor.cpp and SetMouseHandler moved into the platform CPythonApplication on file-static members; GetCursorNum out of line, since uishop's app.GetCursor() dereferenced the missing application object. - Fake server: general store (npclist 9003) answers CG_ON_CLICK with GC_SHOP START, CG_SHOP BUY/SELL2/END like CShop::Buy / CShopManager::Sell. - port.login_flow step 10: click the shopkeeper, right-click buy, drag-sell, ESC close. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
85e176bdd5
commit
a12e7fea42
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"reference": "UserInterface/PythonApplicationCursor.cpp",
|
||||
"reference_sha256": "acd34facc55665509839d75c04feb0af074d6db40f39195c01af492a40b31e93",
|
||||
"priority": "P4",
|
||||
"contracts": [],
|
||||
"functions": {
|
||||
"CPythonApplication::CreateCursors": {
|
||||
"status": "N_A",
|
||||
"note": "Win32 LoadImage/DestroyCursor of the IDC_CURSOR_* resources; the host draws no hardware cursor, so SetCursorNum treats every shape in [0, CURSOR_COUNT) as loaded."
|
||||
},
|
||||
"CPythonApplication::DestroyCursors": {
|
||||
"status": "N_A",
|
||||
"note": "Win32 LoadImage/DestroyCursor of the IDC_CURSOR_* resources; the host draws no hardware cursor, so SetCursorNum treats every shape in [0, CURSOR_COUNT) as loaded."
|
||||
},
|
||||
"CPythonApplication::SetCursorVisible": {
|
||||
"status": "ADAPTED",
|
||||
"impl": [
|
||||
"extension/src/platform/UserInterface/PythonApplication.cpp:SetCursorVisible"
|
||||
],
|
||||
"note": "Body verbatim in the platform CPythonApplication stand-in on file-static members (there is no application object yet); ShowCursor/SetCursor calls dropped.",
|
||||
"test": "extension/tests/port_login_flow_test.cpp (step 10: uishop reads app.GetCursor)"
|
||||
},
|
||||
"CPythonApplication::GetCursorVisible": {
|
||||
"status": "ADAPTED",
|
||||
"impl": [
|
||||
"extension/src/platform/UserInterface/PythonApplication.cpp:GetCursorVisible"
|
||||
],
|
||||
"note": "Body verbatim in the platform CPythonApplication stand-in on file-static members (there is no application object yet); ShowCursor/SetCursor calls dropped.",
|
||||
"test": "extension/tests/port_login_flow_test.cpp (step 10: uishop reads app.GetCursor)"
|
||||
},
|
||||
"CPythonApplication::GetLiarCursorOn": {
|
||||
"status": "ADAPTED",
|
||||
"impl": [
|
||||
"extension/src/platform/UserInterface/PythonApplication.cpp:GetLiarCursorOn"
|
||||
],
|
||||
"note": "Body verbatim in the platform CPythonApplication stand-in on file-static members (there is no application object yet); ShowCursor/SetCursor calls dropped.",
|
||||
"test": "extension/tests/port_login_flow_test.cpp (step 10: uishop reads app.GetCursor)"
|
||||
},
|
||||
"CPythonApplication::GetCursorMode": {
|
||||
"status": "ADAPTED",
|
||||
"impl": [
|
||||
"extension/src/platform/UserInterface/PythonApplication.cpp:GetCursorMode"
|
||||
],
|
||||
"note": "Body verbatim in the platform CPythonApplication stand-in on file-static members (there is no application object yet); ShowCursor/SetCursor calls dropped.",
|
||||
"test": "extension/tests/port_login_flow_test.cpp (step 10: uishop reads app.GetCursor)"
|
||||
},
|
||||
"CPythonApplication::__IsContinuousChangeTypeCursor": {
|
||||
"status": "ADAPTED",
|
||||
"impl": [
|
||||
"extension/src/platform/UserInterface/PythonApplication.cpp:__IsContinuousChangeTypeCursor"
|
||||
],
|
||||
"note": "Body verbatim in the platform CPythonApplication stand-in on file-static members (there is no application object yet); ShowCursor/SetCursor calls dropped.",
|
||||
"test": "extension/tests/port_login_flow_test.cpp (step 10: uishop reads app.GetCursor)"
|
||||
},
|
||||
"CPythonApplication::SetCursorNum": {
|
||||
"status": "ADAPTED",
|
||||
"impl": [
|
||||
"extension/src/platform/UserInterface/PythonApplication.cpp:SetCursorNum"
|
||||
],
|
||||
"note": "Body verbatim in the platform CPythonApplication stand-in on file-static members (there is no application object yet); ShowCursor/SetCursor calls dropped.",
|
||||
"test": "extension/tests/port_login_flow_test.cpp (step 10: uishop reads app.GetCursor)"
|
||||
},
|
||||
"CPythonApplication::SetCursorMode": {
|
||||
"status": "ADAPTED",
|
||||
"impl": [
|
||||
"extension/src/platform/UserInterface/PythonApplication.cpp:SetCursorMode"
|
||||
],
|
||||
"note": "Body verbatim in the platform CPythonApplication stand-in on file-static members (there is no application object yet); ShowCursor/SetCursor calls dropped.",
|
||||
"test": "extension/tests/port_login_flow_test.cpp (step 10: uishop reads app.GetCursor)"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user