ui_selectedModelIndex
Base Jedi Academy
Needs review. The inventory/provenance evidence is recorded, but some behavior, options, or attribution still lacks a direct user-facing source.
Controls ui_selectedModelIndex in the ui module. Consult the cited behavior reads before relying on values not listed here.
At a glance
| Field | Value |
|---|---|
| Category | HUD & interface |
| Module | ui |
| Also registered in | ui |
| Renderer | All / not renderer-specific |
| Network scope | client-only — Local to the client/UI/renderer. |
| Derivation | code-trace |
| Confidence | high |
| In-game xdocs | No |
| In-game menu | Yes — ingame_player.menu:207, player.menu:492 |
| Default | -1 |
| Value type | enum |
| Restart | No latch flag is registered. |
| Cheat protected | No |
Values
| Value | Meaning | Evidence |
|---|---|---|
-1 |
Selects the code path tested for value -1. | codemp/ui/ui_shared.c:5790 |
Flags
CVAR_ARCHIVE— saved to the user configurationCVAR_INTERNAL— internal UI/engine state
Provenance
Origin: Base Jedi Academy
- Baseline evidence:
14cea1563762 - Upstream registration evidence: codemp/ui/ui_main.c:11403
- Attribution method:
present-in-openjk-initial-source-import - Attribution confidence:
high - Notes: Identifier is present in OpenJK’s initial Raven source-import snapshot. Dated commit evidence identifies later registration changes relative to the origin snapshot.
Later changes
These commits occur after the ultimate-origin introduction on TaystJK’s inherited first-parent lineage. Registration evidence is exact; behavior evidence requires a changed bound cvar reference or a changed registered command-handler hunk.
| Date | Change source | Commit / subject | Evidence | Confidence |
|---|---|---|---|---|
2013-08-11 |
OpenJK | 794718e3fdfbMerge pull request #344 from Razish/qvmtest |
Changed an exact bound cvar-variable reference. codemp/ui/ui_main.c |
medium |
2013-09-05 |
OpenJK | 9bc49a503050UI cleanup. Unused functions |
Changed registration, default, flags, module, renderer scope, handler, or gating; and an exact bound cvar-variable reference. codemp/ui/ui_main.c |
medium |
2013-09-28 |
OpenJK | 5cd41b41c941[MP] Port the xcvar stuff and clean up cvar usage in UI. Few minor tweaks in UI code for cleanup/was unused. |
Changed registration, default, flags, module, renderer scope, handler, or gating; and an exact bound cvar-variable reference. codemp/ui/ui_main.c |
medium |
2013-09-28 |
OpenJK | 8fdb5fb65dbe[MP] The cvar files for previous commit … |
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/ui/ui_xcvar.h |
medium |
2013-09-30 |
OpenJK | 2ca29aebe0e9[MP] Fix more defaults for saber names and team names. Don’t register cg_viewsize needlessly on client startup, update cvar as soon as it’s changed |
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/ui/ui_xcvar.h |
medium |
2018-01-06 |
EternalJK | a2acfb6b9129Merge pull request #11 from Bucky21659/master |
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/ui/ui_xcvar.h |
medium |
2018-09-03 |
jaPRO | bdcd618c6771Import japro cgame |
Changed registration, default, flags, module, renderer scope, handler, or gating. codemp/ui/ui_xcvar.h |
high |
2019-03-19 |
EternalJK | 0b9f190a7a4bReset ui_selectedModelIndex (last selected model icon) if the number of models counted has changed |
Changed registration, default, flags, module, renderer scope, handler, or gating; and an exact bound cvar-variable reference. codemp/ui/ui_main.c, codemp/ui/ui_xcvar.h |
medium |
2019-03-19 |
EternalJK | 713662027af3Check model cvar for team skin and update profile menu accordingly. |
Changed an exact bound cvar-variable reference. codemp/ui/ui_main.c |
medium |
2019-03-21 |
EternalJK | 95dcf4d6228fFix crash |
Changed an exact bound cvar-variable reference. codemp/ui/ui_main.c |
medium |
2019-04-11 |
EternalJK | a649365161adIgnore mutant_racnor and r5d2 in profile menu list |
Changed an exact bound cvar-variable reference. codemp/ui/ui_main.c |
medium |
2019-04-11 |
EternalJK | 4fdbdfbd0443Fix custom jedi models being reset when closing ingame profile menu. |
Changed an exact bound cvar-variable reference. codemp/ui/ui_main.c |
medium |
2019-06-13 |
EternalJK | 49e91d910266Filter custom skins/species/hilts out of player menus on sv_pure servers |
Changed an exact bound cvar-variable reference. codemp/ui/ui_main.c |
medium |
2019-06-13 |
EternalJK | b6f9c97643c4Don’t highlight anything in model list if no model is selected (ui_selectedModelIndex -1) |
Changed an exact bound cvar-variable reference. codemp/ui/ui_shared.c |
medium |
Evidence
- registration: codemp/ui/ui_xcvar.h:141 (XCVAR_DEF)
- behavior: codemp/ui/ui_main.c:5829
- behavior: codemp/ui/ui_main.c:6562
- behavior: codemp/ui/ui_main.c:6569
- behavior: codemp/ui/ui_main.c:8959
- behavior: codemp/ui/ui_shared.c:5790