add battery-ui #6
1 changed files with 2 additions and 2 deletions
|
@ -14,8 +14,8 @@ pub fn draw(state: &State, _engine: &EngineContext<'_>) {
|
|||
start_positon.y += 0.5 * section_size.y + 0.5 * section_size.y;
|
||||
// draw fill level
|
||||
{
|
||||
let gohst = &state.ghost;
|
||||
let percent = gohst.charge / gohst.max_charge;
|
||||
let ghost = &state.ghost;
|
||||
let percent = ghost.charge / ghost.max_charge;
|
||||
let mut size = section_size;
|
||||
size.y = section_size.y * section_count as f32 * percent;
|
||||
let mut position = start_positon;
|
||||
|
|
Loading…
Reference in a new issue