Bring over my bag of shit shaders and use one as a placeholder for the build status indicator.

This commit is contained in:
Zed A. Shaw 2025-04-23 00:20:08 -04:00
parent 8f3a3c10c2
commit d4d8c780a4
20 changed files with 708 additions and 9 deletions

View file

@ -93,9 +93,14 @@ void Builder::BUILDING(BuildEvent) {
auto m = parse_line(line);
if(m.match) {
gui.output(fmt::format("HIT WITH {} @ {}:{}:{} {}", m.type, m.file_name, m.lnumber, m.col, m.message));
fmt::println("HIT WITH {} @ {}:{}:{} {}", m.type, m.file_name, m.lnumber, m.col, m.message);
game.event(GameEvent::HIT, m.type);
gui.update_status(game, line.size(), true);
} else {
gui.update_status(game, line.size(), false);
}
state(BuildState::READING);
}
}
@ -117,7 +122,7 @@ void Builder::START(BuildEvent) {
wid = fileWatcher->addWatch(git_path, listener, true);
fileWatcher->watch();
gui.update_status(game);
gui.update_status(game, 100, false);
state(BuildState::WAITING);
}
@ -169,7 +174,7 @@ void Builder::READING(BuildEvent) {
}
void Builder::DONE(BuildEvent) {
gui.update_status(game);
gui.update_status(game, 100, false);
if(game.is_dead()) {
gui.you_died();