Repository navigation
UI Buttons
Snapshot — Fri Nov 27, 2026. Surveyed on
v0.1.148-test(commit2d43b28). The UI buttons pass described here is in progress on branchui-buttons-craftingand is not yet shipped. This page records the survey as delivered, not the shipped state.
Direction (Ed, Nov 25): clickable buttons like WoW across the ENTIRE UI, text commands only as fallback.
Method: every surface below was traced to code read on the .148 branch (mainly data/menus/rpg.cfg, 15 newgui windows, plus src/engine/menus.cpp, src/engine/3dgui.cpp, src/fpsgame/client.cpp, src/fpsgame/fps.cpp, src/rpg/abilities.cpp). Screenshots are real headless captures from the .148 Linux client (1280x720, screenshot command); mockups are PIL overlays on those captures, except Dialog and Spells, which are compositions built from the real frame texture, real dialogue/ability data and real icons, and are labeled as such. No screenshot was faked.
The Social window (Friends/Clan/Who) already has real framed buttons and is the style the whole pass should copy:
-
guibuttonframed(src/engine/menus.cpp:435) — same asguibuttonbut passesframed=truetocgui->button, which draws a dark fill with a steel border (framed path insrc/engine/3dgui.cpp). - Sampled from the real Social screenshot's ADD FRIEND button: fill near-black blue ~(14,15,21), 1–2px light steel-grey border, text off-white (245,244,240) in small-caps serif.
- Social tabs themselves stay plain
guibuttonwhen inactive, yellow text when active — tabs are not buttons and should not be framed. - Most of the pass is therefore a mechanical swap:
guibutton→guibuttonframedon action controls, plus hiding the red "action" icon that plain buttons render by default (the Social buttons pass no icon and show none).
See images/real_social_friends.png (real capture, reference) and images/mockup_craft.png (same style applied to Crafting).
| # | Surface | Current controls | Buttons needed | Priority |
|---|---|---|---|---|
| 1 |
Crafting (rpgcraft) — Craft tab |
Craft/Recipes tabs are plain guibutton. Slots are clickable guiimages (click to clear, rpgcraftclear). The "Craft" button is a plain guibutton calling rpgcraftsend. Materials/Gear rows are name guitext + plain "Add" button (rpgcraftadd). |
Frame the CRAFT button and every ADD button. Tabs stay plain (they are tabs, like Social). | 1 |
| 2 |
Crafting (rpgcraft) — Recipes tab |
Text-only list of discovered recipes. No button to re-craft a discovered recipe. | Framed CRAFT button per recipe row. This is the only item in the survey that needs new code: fill the Craft slots from a recipe (server still validates the combination). | 1 |
| 3 |
Inventory (rpginv) |
8x6 grid cells are clickable images (rpgcellact toggle; selected cell swaps to cell_sel_ art). Use/Equip/Sell/Drop are plain guibutton, shown only when a cell is selected. Sell appears only at a vendor (rpg_atvendor = 1), otherwise Drop. Buttons render with the red "action" icon because they pass icon "". |
Frame Use/Equip/Sell/Drop; hide the icon like Social does. Grid cells are already clickable icons (WoW-style, OK). | 2 |
| 4 |
Spells panel (rpgspells) |
Display-only rows: icon + name + desc + dmg/mana/cd. No Cast button. Casting today is keys 1–4 / ability1–4. |
Framed CAST button per row, calling the row's ability through the existing ability commands. Mockup shows a Ranger's three: Quick Shot, Arrow Shot, Venom Shot. | 2 |
| 5 |
Vendor (rpgvendor, Glimmer) |
Item rows are plain guibutton (name + price as the label). "Open Inventory to Sell" + "Close Shop" are plain guibutton. |
Frame the buy rows and the two bottom buttons. | 2 |
| 6 |
PvP vendor (rpgvendor_pvp, Blasque) |
Same as the vendor: item rows plain guibutton, class-filtered. Unknown class shows no buy buttons (fail closed, by design). |
Frame the buy rows, same as the vendor. | 2 |
| 7 |
NPC dialog (rpgdialog) |
Response lines are plain numbered guibutton ("1...."), keys 1–4 mirror them. |
Frame the response buttons only — pure guibutton → guibuttonframed swap. The battleground queue with Lady Abbott runs through this same dialog window (mode pick is a response line), so it is covered here; there is no separate queue window in rpg.cfg. |
2 |
| 8 |
Character sheet (rpgchar) |
Paperdoll slots are clickable images (click an equipped item to unequip, rpgunequip). Stats are text-only. "Spells" toggle is a plain guibutton. Hint text: "Click an equipped item to unequip it." |
Frame the Spells toggle. Paperdoll slots are already clickable icons (WoW-style, OK). | 3 |
| 9 |
Quest log (rpgjournal, J key) |
Text-only quest list plus an X button. No Track/Abandon buttons; no quest-abandon command exists in code. The HUD quest tracker has its own clickable collapse rect. | Nothing to frame today. A Track button would need a new function — a design decision, not a button swap. | 3 |
| 10 |
Pause menu (sspause, ESC) |
Return to Game / Switch Character / Leave Battleground (in BG) / Settings / Exit — all plain guibutton. |
Frame all five. | 3 |
| 11 |
Leave-match confirm (bgleaveconfirm, L key) |
LEAVE / STAY plain guibutton. |
Frame both. | 3 |
| 12 |
Main menu / character select / creation (data/menus/main.cfg) |
Main PLAY/OPTIONS/ABOUT/EXIT plain guibutton. Character cards are clickable images with an ENTER WORLD plain button. charcreate archetype cards are clickable images; Male/Female toggle + Create/Cancel plain guibutton. chardelete DELETE/Cancel plain. About/Battlegrounds plain. |
Frame the action buttons (PLAY, ENTER WORLD, Create/Cancel, DELETE/Cancel, etc.). Cards stay clickable images. | 4 |
| 13 | Chat | Tabs are already mouse-driven and clickable (rpg_chattabclick in src/fpsgame/fps.cpp); input field exists. Slash commands (/w, /g, etc.) are text-only fallback by design. |
Nothing. Tabs already work; commands stay as the fallback by direction. | — |
| 14 | HUD | Hotbar has 10 clickable icon slots (rpg_hotbarclick, src/fpsgame/fps.cpp:2190). Buff row is display-only icons. Quest tracker has a collapse button. Minimap/radar present. Death is a 10s countdown then respawn — no window, nothing to button. No group-invite accept/decline prompt GUI exists; no trade system. |
Nothing. Hotbar slots are already clickable; buffs are display-only by design. | — |
| 15 |
Options menus (stock Cube 2, data/menus/options/*.cfg) |
Sliders, toggles and buttons already exist. | Nothing — note only. Lowest priority. | 4 |
| — |
NPC editor (npceditor) |
Dev-only tool. | Out of scope. | — |
Count: 15 in-scope surfaces. 1 done (.148 Social, the reference), 2 need nothing (Chat, HUD), 12 need work. Of those, 10 are pure guibutton → guibuttonframed swaps (plus icon hiding); 2 need new code — per-recipe CRAFT (Crafting Recipes tab) and a Quest Log Track button (design decision first).
All under images/ in this wiki repo. Real captures are tagged "REAL CAPTURE — .148 AS IT IS TODAY"; mockups are tagged "MOCKUP — PROPOSED BUTTONS".
Real captures (headless .148 Linux client, 1280x720):
| File | What it shows |
|---|---|
images/real_social_friends.png |
Social window, Friends tab — the reference framed buttons (ADD FRIEND, REMOVE, etc.) |
images/real_craft.png |
Crafting, Craft tab, slots filled with Grave Moss + Imp Horn (a craft succeeded in-run: log "You craft Battle Draught") |
images/real_craft_recipes.png |
Crafting, Recipes tab — "1 Grave Moss + 1 Imp Horn = Battle Draught" |
images/real_inventory.png |
Inventory, Copper Ring selected, plain EQUIP / DROP with the red action icon |
images/real_character.png |
Character sheet, paperdoll + stats + Spells toggle |
images/real_vendor.png |
Glimmer's Wares — Puglin Stick 10c, Copper Necklace 15c, Copper Ring 12c, Silver Ring 18c, Cape 20c, Pauldron 50c |
images/real_journal.png |
Quest log, text-only |
images/real_spells_panel.png |
Spells panel, empty — see fixture note below |
Mockups (framed buttons in the sampled Social style):
| File | What it shows |
|---|---|
images/mockup_craft.png |
Framed CRAFT + framed ADD on all 5 Materials/Gear rows |
images/mockup_craft_recipes.png |
Framed CRAFT under the discovered recipe row |
images/mockup_inventory.png |
Framed EQUIP / DROP, red icon hidden like Social |
images/mockup_vendor.png |
Framed buy rows + framed OPEN INVENTORY TO SELL / CLOSE SHOP |
images/mockup_dialog.png |
Composition (no dialog was captured live): real window_steel.png frame over a real in-game background, real Maren dialogue from data/rpg/quests.cfg (q1_progress node: "Elder Maren: The imps still plague the fields. 3 of 8 slain." — the "3 of 8" progress figure is illustrative), framed response buttons |
images/mockup_spells.png |
Composition on the empty-panel capture: real Ranger ability data from src/rpg/abilities.cpp (Quick Shot 12 dmg / 0 mana / 1.2s cd; Arrow Shot 40 / 0 / 2.5s; Venom Shot 20 / 0 / 8s), real ability icons, framed CAST buttons. Quick Shot's icon is the inventory bow art — the code itself flags it as a placeholder ("needs HUD-style icon", client.cpp:2081). |














-
The Spells panel does not dock beside the character sheet. The engine renders only
guistack.last()(g3d_mainmenuinsrc/engine/menus.cppcallsg3d_addgui(guistack.last(), ...)), so opening the Spells panel hides the character sheet entirely, and re-showing the sheet pops the panel off viarestoregui. The "docked beside the sheet" design (guidockright, and theguipanelcomment inmenus.cppsaying companion panels "stay open alongside") does not work as described — only one window is visible at a time. Verified in two headless runs. If the Spells panel is meant to sit beside the sheet, that is a separate engine fix, not a button swap. -
Vendor walk-away auto-close (Ed's Nov 3 direction).
updatetargetinginsrc/fpsgame/client.cpp(~line 1365) closes the vendor/dialog window when the player is more than 16u horizontally from the NPC. The first vendor capture failed for exactly this reason (player spawned far from Glimmer); the real capture was taken standing next to her. Any button work on the vendor should keep this behaviour. -
The empty Spells panel / empty hotbar in the captures is a fixture artifact, not a game bug. The test character MonkCheck has empty
archetype/appearancein its DB row, soclassforfails andrpgspellidreturns -1 for all slots (verified: SPELLID0/1/2 all -1 even afterrpg_charlist). Real characters created viacharcreatestore archetype + appearance. The spells mockup therefore shows Ranger abilities on the empty-panel capture rather than a live Ranger panel. -
Layout nits seen in the real captures (footnote material, not button items): left-edge text clipping in Social ("FRIENDS (0", "IGNORED:") and in the Recipes tab (first character of the recipe line cut at the frame edge); the Spells panel's header sits under the minimap (title/X hidden); inventory action buttons render with the red "action" icon because they pass icon
"". -
Craft works end to end in .148. The capture run seeded Grave Moss + Imp Horn, and the in-run log shows "You craft Battle Draught" and "recipe discovered" — the Recipes tab in
images/real_craft_recipes.pngis the result of that real craft.
- Crafting (priority 1, Ed's example): frame CRAFT + ADDs; add per-recipe CRAFT (new code — fill slots from recipe, server still validates).
- Vendor + PvP vendor + NPC dialog (priority 2, pure swaps): frame buy rows, bottom buttons, dialog responses.
- Inventory + Spells panel (priority 2): frame Use/Equip/Sell/Drop (hide icon); add CAST per spell row. Note the Spells docking finding (item 1 above) before promising a side-by-side sheet.
- Character sheet, Quest log, Pause, Leave-match confirm (priority 3): frame the Spells toggle and the pause/confirm buttons; Track/Abandon is a design call first.
- Main menu / character creation + Options (priority 4): frame action buttons; cards stay clickable images.