sge_ui 1.0.2

UI library for SGE
Documentation
use super::super::*;
use super::*;

pub struct ProgressBar;

impl ProgressBar {
    pub fn new(size: Vec2, value: f32, max: f32, id: usize) -> UiRef {
        SizedBox::new(
            size,
            Card::thin(
                0.0,
                base::ProgressBar {
                    color: SECONDARY,
                    state: State::from_id(id),
                    interpolation_speed: 40.0,
                    max,
                    value,
                }
                .to_ref(),
            ),
        )
    }
}