Bring over my bag of shit shaders and use one as a placeholder for the build status indicator.
This commit is contained in:
parent
8f3a3c10c2
commit
d4d8c780a4
20 changed files with 708 additions and 9 deletions
11
builder.cpp
11
builder.cpp
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue