Docs · Engineering reference
Player menu (personal file)
docs/features/player-menu.mdEdit on GitHub
LF_PlayerMenuSheet — Scripts/Game/Feature/PlayerMenu/
- ✅ F2 (gamepad: hold RB + Y) opens a read-only kit sheet, a full-screen dashboard (80% of the screen,
centred, the world dimmed behind it). Header: the name in large type, a role badge (Civilian plain,
police blue, medic red, with duty), and "Day N on the island · X h Y min played" (island days from the
day cycle's length). Tabs: Person, Progress, and a "What to do next" slot (
LF_PlayerMenuNextTab) that stays hidden until a feature fills it. Person, three columns of cards: a live preview of the character as dressed now (LF_WantedPortraiton a sizedPORTRAIT), profession, wanted and standing with the locals and the law; Finances (cash, bank) and Status (houses, garage x / y, island day, playtime, licenses and permits) as icon rows with the value flush right; every job skill with a level chip and an XP bar (scrolls past ten), the picked one's record under the list: description, XP bar, "Level N · X / Y XP" and "Next level opens: ..." (chain steps gated at that level). Progress: the errand list (First errands / Other, DONE / CURRENT / LATER chips, done / on file) beside the picked errand's record (the current one until a row is picked) and Set waypoint to the current errand. Footer: key-cap chips Esc Close, F3 Welcome guide, Settings. While open the HUD, the vanilla hint card and the notification toasts are put away (LF_NotificationHold) and come back on close. Focus starts on the open tab; MenuUp/Down walk tabs, skills or errands, and the footer. - 🧪 Trade detail card (2026-11-23, #4414, WK-W6): opening a skill shows the trade and its tier word ("Mining, Journeyman": Apprentice 1-5, Hand 6-11, Journeyman 12-19, Foreman 20-27, Master 28-30; core rows
LF-Level_TradeTier_1to_5), "Level N · X / Y XP", "Level N+1 opens: ..." from the unlock table (LF_TradeUnlocks.NextKey, #4185; the chain-gate line is the fallback when no row names one), "Perks: ..." for the perks picked at levels 10 and 20 (LF_TradePerks.PerkAt, #4186) and the weekly rank slot ("Ranked 6th in Mining this week", or "Not ranked yet this week"). The text lives inLF_PlayerMenuTrade.c; the skill row of the wire (S|...) gains four trailing fields (next unlock key, tier key, rank, perk ids) that an older wire may leave off. The rank slot is empty (LF_PlayerMenuTrade.RankOfreturns 0) until the shift boards (W22) fill it. Levels show for legal trades only (decision N1). TestLF_Test_PlayerMenuTrade. Merged, in-dev. - ✅ Data comes from one owner RPC per open (
RpcAsk_LF_PlayerMenu, no argument, throttled 5 s on the client and byLF_RateLimiton the server); the server reads only the asking player's own state. - ✅ New UI kit pieces:
COLUMNS(side-by-side columns,.Cards()puts each on a plate; columns nest),PAIR(label, optional badge with a tone, value flush right, optional kit icon), compactLISTrows with a badge chip andAddListBarRow(a thin XP bar under the row), key-cap chips onKEYS(WithCaps), a sizedPORTRAIT(whole figure),LF_UISkin.Dashboard(width share, centred, darker backdrop),FocusPart, and the kit icon setLF_UIIcons.imageset(white glyphs tinted with the theme;tools/ui-icons/build-ui-icons.mjs). - ✅ New UI kit part
BAR(LF_UIBar.layout,LF_UIScreen.SetBar): a thin bar in the skin's accent. - ✅ Tests:
LF_Test_PlayerMenuXp,LF_Test_PlayerMenuData,LF_Test_PlayerMenuLayout(LOGIC). Proof:player-menu-proofsession verb; harnessplayermenu seed(dev gate) grants XP, cash, savings and a free house for pictures. - ⬜ Quest chapters: quests carry no chapter field yet, so the list groups the guided chain and the rest.
- ✅ Next tab (2026-11-22): what the player can start now, with pitch, pay an hour, distance and state; Start / Guide me run a guided starter (
docs/features/activities.md). Harnessplayermenu open next,activities state|pick <n>|go. - 🧪 Licences row names what is held (2026-11-22, review B2). The Person tab's "Licenses and permits" row shows "None", the names of one or two licences ("Field hand"), or "N held" with one row per licence from three up (
LF_PlayerMenuSheet.LicencesValue); the orphan "· Field hand" line under the count is gone. The HUD cash figure re-reads the pockets every second (LF_BetaHud.PollCash), so a desk purchase that took cash on the server always lands on screen.