Player12
An open source football management simulator
Loading...
Searching...
No Matches
PlayerUI Namespace Reference

Functions

void detailPanel (const char *id, const Player *player, const StatsConfig &statsConfig, const Player *comparison=nullptr, float height=0.0f)
 Compact player card used beside tables (squad, lineup, subs).
 

Function Documentation

◆ detailPanel()

void PlayerUI::detailPanel ( const char *  id,
const Player *  player,
const StatsConfig &  statsConfig,
const Player *  comparison = nullptr,
float  height = 0.0f 
)
inline

Compact player card used beside tables (squad, lineup, subs).

Parameters
idStable ImGui id.
playerPlayer to show, or nullptr for a prompt.
statsConfigRating weights.
comparisonOptional player to compare against (shows deltas).
heightCard height (0 = fill, negative = fit the content).