BF2.US bf2-rsdeveloper wiki Parity Discord bf2.us
Battlefield Heroes
On this page

The widget bar (every widget's slot: icon, count, wait, crossed out): the feature checklist

Heroes

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.

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.

What a check is

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 knowsThe widget bar (every widget's slot: icon, count, wait, crossed out)
kindwidget
in the game's dataweaponHud.* icons, ability.hideDurationProgressBar, weaponHud.showBatteryIconInHud
what it acts on (the ledger's tags)client-effect
its row in the sweepsnotes/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.

AddressWhat it is, in the ledger's wordsFollowed
0x008e4855the bar's frame updatewhole
0x008e3fb3its slot fill: the three icons and the texts from the item's WeaponHud templatewhole

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.

SituationWhat the game does (W)What a player sees (S)Note
used on footno such lineopen: not checked
used at the wheel of a vehicleno such lineopen: not checked
used from a passenger's or a gunner's seatno such lineopen: not checked
the user dies while it runsno such lineopen: not checked
after the user respawnsno such lineopen: not checked
the round ends while it runs, and the next round starts cleanno such lineopen: not checked
the map changes while it runsno such lineopen: not checked
a player who joins while it runs sees itno such lineopen: not checked
watching a team mate who uses it (after dying, or as a spectator)no such lineopen: not checked
team mates against enemies (who gets it and who does not)no such lineopen: not checked
in water (swimming)no such lineopen: not checked
on a ladderno such lineopen: not checked
while another effect runs on the same herono such lineopen: not checked
the effect on a target or user in a vehicle seat is drawn on the vehicleno such lineopen: not checked
triggered in a round's last seconds, the next roundno such lineopen: not checked
bought for valor points at the storeno such lineopen: not checked
ready again only after its waitno such lineopen: not checked
held at the account service, put in a widget slot and carried into a gameno such lineopen: not checked
a pack's uses count down and the key is refused at none (a kept widget takes none)no such lineopen: 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 functionKindReachedOursProofIts kindChecked
0x008e4855 FUN_008e4855Sentry, depth 0crates/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 codeyes
0x008e3fb3 FUN_008e3fb3Sentry, depth 0crates/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 codeyes
0x00418ebb FUN_00418ebbW0x008e4855, depth 1engine utility (>= 100 call sites)not a line
0x00428d62 FUN_00428d62W0x008e4855, depth 1engine utility (>= 100 call sites)not a line
0x0045c8f1 FUN_0045c8f1W0x008e4855, depth 1crates/bf2-server/src/abilities_heroes.rs:1564 (fn attacker_active_ability)bfh_ability_overload, bfh_alt_fire_ammo_poolnot a line: hub (241 callers): not expanded
0x004f34e9 FUN_004f34e9W0x008e4855, depth 1forwarder (<= 40 bytes, one call: default arguments, argument order, a constructor's fill, a deleting destructor)not a line
0x008e2a6d FUN_008e2a6dW0x008e4855, depth 1trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x008e3ad9 FUN_008e3ad9S0x008e4855, depth 1crates/bfh-client/src/hud.rs:213 (fn clear)bfh_apparel_ingame, bfh_client_alt_ammo_barthe counter's weaker proofopen
0x008e3be4 FUN_008e3be4S0x008e4855, depth 1crates/bfh-client/src/hud.rs:136 (fn is_level_map_texture)bfh_client_alt_ammo_bar, bfh_client_cdm_livesthe counter's weaker proofopen
0x008e3f2a FUN_008e3f2aS0x008e4855, depth 1crates/bfh-client/src/hud.rs:17 (const SLOTS)bfh_client_alt_ammo_bar, bfh_client_cdm_livesthe counter's weaker proofopen
0x008e47e9 FUN_008e47e9S0x008e4855, depth 1crates/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 assertsopen
0x009f0895 __EH_prolog3W0x008e4855, depth 1CRT / compiler name (scope_rules.LIBNAME)not a line
0x009f096d __EH_epilog3W0x008e4855, depth 1CRT / compiler name (scope_rules.LIBNAME)not a line
0x00527c6f world::PlayerManager::getLocalHumanPlayerW0x008e4855 vt+0x30, depth 1tiny stub (<= 5 bytes)not a line
0x00484e71 FUN_00484e71W0x008e3fb3, depth 1thin wrapper (<= 80 bytes, calls only library code)not a line
0x008e4ec0 FUN_008e4ec0S0x008e3fb3, depth 1crates/bfh-client/src/hud.rs:181 (fn clear)bfh_apparel_ingame, bfh_client_alt_ammo_barthe counter's weaker proofopen
0x004f34d6 FUN_004f34d6W0x004f34e9, depth 2trivial leaf (<= 40 bytes, no calls: a field accessor / vector op / clamp)not a line
0x0070bc27 FUN_0070bc27S0x008e3be4, depth 2crates/bf2-client/app/src/client/heroes_hud.rs:3264 (fn heroes_weapon_bar)bfh_apparel_ingame, bfh_client_alt_ammo_barthe counter's weaker proofopen
0x008e4fbf FUN_008e4fbfW0x008e47e9, depth 2STL 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_008e39faS0x008e4ec0, depth 2crates/bfh-client/src/hud.rs:174 (const EMPTY_ICON)bfh_client_bots_village, bfh_client_chat_keysthe counter's weaker proofopen

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#

WhatWhere
this feature's ledgernotes/bfheroes/features/widget/widget_bar.toml (its ticks: the folder notes/bfheroes/features/widget/widget_bar.ticks)
the ledger's rulenotes/bfheroes/features/README.md
the recorded resultsnotes/bfheroes/features/records/<run>.tsv
the tool that walks the original's call graph and computes the statustools/bfheroes/feature_ledger.py
the counter the ledger was made withbfheroes 83706c0 2026-11-28T22:37:11
this page's makertools/devwiki/features.py
Source: tools/devwiki/features.py · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.