On this page
The widget bar (every widget's slot: icon, count, wait, crossed out): the feature checklist
The widget bar (every widget's slot: icon, count, wait, crossed out) is a Battlefield Heroes widget. This page is its checklist from the project's feature ledger: every step of the original's code behind it and every situation it must work in, each with the proof that stands for it, or none. The ledger's status today: 2 of 62 lines checked.
Situations: no such lines checked for what the game does, 0 of 19 for what a player sees. The original's code: 2 of 43 checked (9 functions and 34 inner calls). By the ledger's rule this feature is not called done, fixed or the same as the original. The ledger was written on 2026-11-28 22:37.
Every line has a kind: W, what the game does with nothing to see (a number, a speed, a refusal), or S, what a player sees or hears. A W line is checked by a test written from the original's code or by a play with a recorded pass; an S line only by a recorded play whose pixels an assert reads, or that a person looked at and wrote so. A scenario that merely exists, a test that merely calls the Rust function and a read of the listing are not checks. All feature checklists explains the rule.
What it is for a player#
The row of slots at the bottom of the screen, one for each widget: its icon, how many are left, the wait filling up again with a sound and five blinks when the widget is ready, a bar while it runs, and a cross over the slot wherever its key will not work
That is this wiki's own line about it, taken at build time from the page that tells it.
| the name a player knows | The widget bar (every widget's slot: icon, count, wait, crossed out) |
| kind | widget |
| in the game's data | weaponHud.* icons, ability.hideDurationProgressBar, weaponHud.showBatteryIconInHud |
| what it acts on (the ledger's tags) | client-effect |
| its row in the sweeps | notes/bfheroes/widget_sweep.md, the row THE WIDGET BAR |
The original's entry functions#
Where the original starts doing it (BFHeroes.exe 1.126). The code behind the feature is everything these reach.
| Address | What it is, in the ledger's words | Followed |
|---|---|---|
0x008e4855 | the bar's frame update | whole |
0x008e3fb3 | its slot fill: the three icons and the texts from the item's WeaponHud template | whole |
The situations#
Every situation the ledger's matrix names for a feature of this kind, with its two lines side by side. "Has a scenario, no recorded pass" and "passed on a branch not landed" are the ledger's words for a play that is not a check yet.
| Situation | What the game does (W) | What a player sees (S) | Note |
|---|---|---|---|
| used on foot | no such line | open: not checked | |
| used at the wheel of a vehicle | no such line | open: not checked | |
| used from a passenger's or a gunner's seat | no such line | open: not checked | |
| the user dies while it runs | no such line | open: not checked | |
| after the user respawns | no such line | open: not checked | |
| the round ends while it runs, and the next round starts clean | no such line | open: not checked | |
| the map changes while it runs | no such line | open: not checked | |
| a player who joins while it runs sees it | no such line | open: not checked | |
| watching a team mate who uses it (after dying, or as a spectator) | no such line | open: not checked | |
| team mates against enemies (who gets it and who does not) | no such line | open: not checked | |
| in water (swimming) | no such line | open: not checked | |
| on a ladder | no such line | open: not checked | |
| while another effect runs on the same hero | no such line | open: not checked | |
| the effect on a target or user in a vehicle seat is drawn on the vehicle | no such line | open: not checked | |
| triggered in a round's last seconds, the next round | no such line | open: not checked | |
| bought for valor points at the store | no such line | open: not checked | |
| ready again only after its wait | no such line | open: not checked | |
| held at the account service, put in a widget slot and carried into a game | no such line | open: not checked | |
| a pack's uses count down and the key is refused at none (a kept widget takes none) | no such line | open: not checked |
Recorded plays#
The ledger names no played scenario for this feature.
The code behind it#
20 functions of the original reachable from the entries, as the ledger's tool walked them: each with its kind, the port's place, the proof that stands for it and that proof's kind. "Checked" is the ledger's tick; a row that is no line of the checklist (library code, shared engine code that is tested in its own game) says so.
| The original's function | Kind | Reached | Ours | Proof | Its kind | Checked |
|---|---|---|---|---|---|---|
0x008e4855 FUN_008e4855 | S | entry, depth 0 | crates/bf2-client/app/src/client/heroes_hud.rs:3256 (fn heroes_weapon_bar) | crates/bf2-client/tests/heroes_slot_no_use.rs:2 (fn heroes) | test from the original's code | yes |
0x008e3fb3 FUN_008e3fb3 | S | entry, depth 0 | crates/bf2-client/app/src/client/heroes_hud.rs:3036 (fn heroes_weapon_bar) | crates/bf2-client/tests/heroes_consumable_count.rs:2 (fn heroes) | test from the original's code | yes |
0x00418ebb FUN_00418ebb | W | 0x008e4855, depth 1 | engine utility (>= 100 call sites) | not a line | ||
0x00428d62 FUN_00428d62 | W | 0x008e4855, depth 1 | engine utility (>= 100 call sites) | not a line | ||
0x0045c8f1 FUN_0045c8f1 | W | 0x008e4855, depth 1 | crates/bf2-server/src/abilities_heroes.rs:1564 (fn attacker_active_ability) | bfh_ability_overload, bfh_alt_fire_ammo_pool | not a line: hub (241 callers): not expanded | |
0x004f34e9 FUN_004f34e9 | W | 0x008e4855, depth 1 | forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor) | not a line | ||
0x008e2a6d FUN_008e2a6d | W | 0x008e4855, depth 1 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x008e3ad9 FUN_008e3ad9 | S | 0x008e4855, depth 1 | crates/bfh-client/src/hud.rs:213 (fn clear) | bfh_apparel_ingame, bfh_client_alt_ammo_bar | the counter's weaker proof | open |
0x008e3be4 FUN_008e3be4 | S | 0x008e4855, depth 1 | crates/bfh-client/src/hud.rs:136 (fn is_level_map_texture) | bfh_client_alt_ammo_bar, bfh_client_cdm_lives | the counter's weaker proof | open |
0x008e3f2a FUN_008e3f2a | S | 0x008e4855, depth 1 | crates/bfh-client/src/hud.rs:17 (const SLOTS) | bfh_client_alt_ammo_bar, bfh_client_cdm_lives | the counter's weaker proof | open |
0x008e47e9 FUN_008e47e9 | S | 0x008e4855, depth 1 | crates/bf2-client/app/src/client/heroes_hud.rs:2971 (fn heroes_weapon_bar) | scenario bfh_client_killer_cam_cdm (PASS in run 20261022_162726_bfheroes) | play with a recorded pass, state asserts | open |
0x009f0895 __EH_prolog3 | W | 0x008e4855, depth 1 | CRT / compiler name (scope_rules.LIBNAME) | not a line | ||
0x009f096d __EH_epilog3 | W | 0x008e4855, depth 1 | CRT / compiler name (scope_rules.LIBNAME) | not a line | ||
0x00527c6f world::PlayerManager::getLocalHumanPlayer | W | 0x008e4855 vt+0x30, depth 1 | tiny stub (<= 5 bytes) | not a line | ||
0x00484e71 FUN_00484e71 | W | 0x008e3fb3, depth 1 | thin wrapper (<= 80 bytes, calls only library code) | not a line | ||
0x008e4ec0 FUN_008e4ec0 | S | 0x008e3fb3, depth 1 | crates/bfh-client/src/hud.rs:181 (fn clear) | bfh_apparel_ingame, bfh_client_alt_ammo_bar | the counter's weaker proof | open |
0x004f34d6 FUN_004f34d6 | W | 0x004f34e9, depth 2 | trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp) | not a line | ||
0x0070bc27 FUN_0070bc27 | S | 0x008e3be4, depth 2 | crates/bf2-client/app/src/client/heroes_hud.rs:3264 (fn heroes_weapon_bar) | bfh_apparel_ingame, bfh_client_alt_ammo_bar | the counter's weaker proof | open |
0x008e4fbf FUN_008e4fbf | W | 0x008e47e9, depth 2 | STL container code, READ: a container's own member by its listing; it calls a body that holds a Dinkumware error string (a stl-read: row of parity_denominator.yaml, H7762) | not a line | ||
0x008e39fa FUN_008e39fa | S | 0x008e4ec0, depth 2 | crates/bfh-client/src/hud.rs:174 (const EMPTY_ICON) | bfh_client_bots_village, bfh_client_chat_keys | the counter's weaker proof | open |
Inner calls#
A call through a virtual table has no line in the call graph; the ledger lists every one it met: 36 here, 34 of them open lines (nobody has named what they call, or what they call is not checked).
What is open#
In a player's words, as the ledger writes them:
- used on foot: not checked
- used at the wheel of a vehicle: not checked
- used from a passenger's or a gunner's seat: not checked
- the user dies while it runs: not checked
- after the user respawns: not checked
- the round ends while it runs, and the next round starts clean: not checked
- the map changes while it runs: not checked
- a player who joins while it runs sees it: not checked
- watching a team mate who uses it (after dying, or as a spectator): not checked
- team mates against enemies (who gets it and who does not): not checked
- in water (swimming): not checked
- on a ladder: not checked
- while another effect runs on the same hero: not checked
- the effect on a target or user in a vehicle seat is drawn on the vehicle: not checked
- triggered in a round's last seconds, the next round: not checked
- bought for valor points at the store: not checked
- ready again only after its wait: not checked
- held at the account service, put in a widget slot and carried into a game: not checked
- a pack's uses count down and the key is refused at none (a kept widget takes none): not checked
And 41 lines about the original's code (the first 25):
- a step of the original (FUN_008e3ad9): in ours, but no test written from the original's code holds it
- a step of the original (FUN_008e3be4): in ours, but no test written from the original's code holds it
- a step of the original (FUN_008e3f2a): in ours, but no test written from the original's code holds it
- a step of the original (FUN_008e47e9): played and passed, but no test written from the original and nothing read the screen
- a step of the original (FUN_008e4ec0): in ours, but no test written from the original's code holds it
- a step of the original (FUN_0070bc27): in ours, but no test written from the original's code holds it
- a step of the original (FUN_008e39fa): in ours, but no test written from the original's code holds it
- an inner call of the original (in 0x008e4855, slot 0xc) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0x10) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0x2c) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0x3c) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0x40) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0x54) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0x7c) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0x90) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0x94) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0xb8) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0xb8) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0xbc) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0xcc) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0x16c) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0x1b0) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0x1dc) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0x1e0) is not followed yet: nobody has named what it calls
- an inner call of the original (in 0x008e4855, slot 0x1e4) is not followed yet: nobody has named what it calls
The other 16 stand in the ledger's file.
How it is tested#
This page is the answer: the tables above name each test and each played scenario that stands for a line, with its kind. The ledger's own tool refuses a status that disagrees with its rows, a tick the rule does not give, and a proof that is not in the tree (feature_ledger.py --check). The wiki's test checks that this page says done only where the ledger does.
In the code#
| What | Where |
|---|---|
| this feature's ledger | notes/bfheroes/features/widget/widget_bar.toml (its ticks: the folder notes/bfheroes/features/widget/widget_bar.ticks) |
| the ledger's rule | notes/bfheroes/features/README.md |
| the recorded results | notes/bfheroes/features/records/<run>.tsv |
| the tool that walks the original's call graph and computes the status | tools/bfheroes/feature_ledger.py |
| the counter the ledger was made with | bfheroes 83706c0 2026-11-28T22:37:11 |
| this page's maker | tools/devwiki/features.py |
tools/devwiki/features.py · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.