mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-07 22:38:11 +03:00
PartsEngine: Implement pass_cursor flag
This implements SetPassCursor/GetPartsPassCursor HLL functions. The pass_cursor flag controls whether the cursor "passes through" a component to reach parts behind it. Key changes to input processing: - Iteration order changed from back-to-front to front-to-back for proper cursor consumption - MOUSE_ENTER / MOUSE_LEAVE now fire for all parts regardless of clickable - Click hit test uses clickable || !pass_cursor pre-filter - pass_cursor=false parts consume the cursor, preventing hover and click events from reaching parts behind them
This commit is contained in:
@@ -162,6 +162,8 @@ bool PE_SetPartsConstructionSurfaceArea(int parts_no, int x, int y, int w, int h
|
||||
|
||||
// input.c
|
||||
void PE_UpdateInputState(int passed_time);
|
||||
void PE_SetPassCursor(int parts_no, bool pass);
|
||||
bool PE_GetPartsPassCursor(int parts_no);
|
||||
void PE_SetClickable(int parts_no, bool clickable);
|
||||
bool PE_GetPartsClickable(int parts_no);
|
||||
void PE_SetPartsGroupDecideOnCursor(int group_no, bool decide_on_cursor);
|
||||
|
||||
Reference in New Issue
Block a user