Initial idea for the boss fight UI but it's just a temporary holder for now.

This commit is contained in:
Zed A. Shaw 2025-02-27 15:24:17 -05:00
parent a72d2879fd
commit 64807174c0
16 changed files with 165 additions and 36 deletions

View file

@ -84,14 +84,14 @@ namespace gui {
RAY_VIEW_Y + bounds.size.y / 2});
st.sprite->setOrigin({bounds.size.x / 2, bounds.size.y / 2});
$overlay_ui.render();
$overlay_ui.init();
}
void MainUI::show_level() {
$show_level = true;
}
void MainUI::draw() {
void MainUI::render() {
auto start = $stats.time_start();
if($show_level) {
@ -110,7 +110,7 @@ namespace gui {
$stats.sample_time(start);
$overlay_ui.draw($window);
$overlay_ui.render($window);
auto debug = $level.world->get_the<Debug>();
if(debug.FPS) draw_stats();