|
AMFP Enhanced
C++ reference: the code this unofficial fork added
|
which control prompts the bottom-right HUD shows for the player's state and the entity in focus. More...
Go to the source code of this file.
Classes | |
| struct | cLuxCtxPrompt |
Functions | |
| const char * | LuxCtxActionName (int alAction) |
| Input action name as used by cLuxInputHandler::GetInputName / user_keys.cfg. | |
| const char * | LuxCtxFocusLabel (int) |
| Prompt label for Interact on a focused entity: one word for everything (user decision: 互動 / Interact everywhere, not Grab / Push / Read per crosshair). | |
| int | LuxContextPrompts (int alState, int alFocus, cLuxCtxPrompt *apOut, int alMax) |
| Fills apOut (capacity alMax) and returns the number of prompts. | |
Variables | |
| static const int | kLuxCtxNoFocus = -1 |
| static const int | kLuxCtxMaxPrompts = 4 |
which control prompts the bottom-right HUD shows for the player's state and the entity in focus.
Pure table, unit tested in tests/cpp/test_context_controls.cpp. The enums mirror eLuxPlayerState / eLuxFocusCrosshair (checked by static_asserts in LuxPlayer.cpp). Labels are keys in the AMFP2026 category of amfp2026_<lang>.lang.
Definition in file LuxContextControls.h.
| enum eLuxCtxState |
Definition at line 10 of file LuxContextControls.h.
| enum eLuxCtxFocus |
Definition at line 25 of file LuxContextControls.h.
| enum eLuxCtxAction |
| Enumerator | |
|---|---|
| eLuxCtxAction_Interact | |
| eLuxCtxAction_Attack | |
| eLuxCtxAction_Rotate | |
| eLuxCtxAction_Forward | |
| eLuxCtxAction_Backward | |
| eLuxCtxAction_QuestLog | |
| eLuxCtxAction_RecentText | |
| eLuxCtxAction_LastEnum | |
Definition at line 43 of file LuxContextControls.h.
|
inline |
Input action name as used by cLuxInputHandler::GetInputName / user_keys.cfg.
Definition at line 62 of file LuxContextControls.h.
|
inline |
Prompt label for Interact on a focused entity: one word for everything (user decision: 互動 / Interact everywhere, not Grab / Push / Read per crosshair).
Definition at line 72 of file LuxContextControls.h.
|
inline |
Fills apOut (capacity alMax) and returns the number of prompts.
Definition at line 78 of file LuxContextControls.h.
|
static |
Definition at line 40 of file LuxContextControls.h.
|
static |
Definition at line 41 of file LuxContextControls.h.