AMFP Enhanced
C++ reference: the code this unofficial fork added
Loading...
Searching...
No Matches
LuxContextControls.h File Reference

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

Enumerations

enum  eLuxCtxState {
  eLuxCtxState_Normal , eLuxCtxState_HandObject , eLuxCtxState_UseItem , eLuxCtxState_InteractGrab ,
  eLuxCtxState_InteractPush , eLuxCtxState_InteractSwingDoor , eLuxCtxState_InteractLever , eLuxCtxState_InteractWheel ,
  eLuxCtxState_InteractSlide , eLuxCtxState_Ladder , eLuxCtxState_LastEnum
}
enum  eLuxCtxFocus {
  eLuxCtxFocus_Default , eLuxCtxFocus_Grab , eLuxCtxFocus_Push , eLuxCtxFocus_Ignite ,
  eLuxCtxFocus_Pick , eLuxCtxFocus_LevelDoor , eLuxCtxFocus_Ladder , eLuxCtxFocus_VoiceOver ,
  eLuxCtxFocus_PhoneBox , eLuxCtxFocus_Note , eLuxCtxFocus_LastEnum
}
enum  eLuxCtxAction {
  eLuxCtxAction_Interact , eLuxCtxAction_Attack , eLuxCtxAction_Rotate , eLuxCtxAction_Forward ,
  eLuxCtxAction_Backward , eLuxCtxAction_QuestLog , eLuxCtxAction_RecentText , eLuxCtxAction_LastEnum
}

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

Detailed Description

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.

Enumeration Type Documentation

◆ eLuxCtxState

Enumerator
eLuxCtxState_Normal 
eLuxCtxState_HandObject 
eLuxCtxState_UseItem 
eLuxCtxState_InteractGrab 
eLuxCtxState_InteractPush 
eLuxCtxState_InteractSwingDoor 
eLuxCtxState_InteractLever 
eLuxCtxState_InteractWheel 
eLuxCtxState_InteractSlide 
eLuxCtxState_Ladder 
eLuxCtxState_LastEnum 

Definition at line 10 of file LuxContextControls.h.

◆ eLuxCtxFocus

Enumerator
eLuxCtxFocus_Default 
eLuxCtxFocus_Grab 
eLuxCtxFocus_Push 
eLuxCtxFocus_Ignite 
eLuxCtxFocus_Pick 
eLuxCtxFocus_LevelDoor 
eLuxCtxFocus_Ladder 
eLuxCtxFocus_VoiceOver 
eLuxCtxFocus_PhoneBox 
eLuxCtxFocus_Note 
eLuxCtxFocus_LastEnum 

Definition at line 25 of file LuxContextControls.h.

◆ 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.

Function Documentation

◆ LuxCtxActionName()

const char * LuxCtxActionName ( int alAction)
inline

Input action name as used by cLuxInputHandler::GetInputName / user_keys.cfg.

Definition at line 62 of file LuxContextControls.h.

◆ LuxCtxFocusLabel()

const char * LuxCtxFocusLabel ( int )
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.

◆ LuxContextPrompts()

int LuxContextPrompts ( int alState,
int alFocus,
cLuxCtxPrompt * apOut,
int alMax )
inline

Fills apOut (capacity alMax) and returns the number of prompts.

Definition at line 78 of file LuxContextControls.h.

Variable Documentation

◆ kLuxCtxNoFocus

const int kLuxCtxNoFocus = -1
static

Definition at line 40 of file LuxContextControls.h.

◆ kLuxCtxMaxPrompts

const int kLuxCtxMaxPrompts = 4
static

Definition at line 41 of file LuxContextControls.h.