extends log builder, swaps away from textblocks

line wrapping no longer works, but in return the message log can easily be swapped between ascending/descending, and spaces/no spaces between entries.

realistically nobody wants to read a huge wrapped line anyway so those can just be avoided
This commit is contained in:
Llywelwyn 2023-07-11 02:41:01 +01:00
parent b562e093ea
commit 42901b984e
9 changed files with 89 additions and 30 deletions

View file

@ -368,7 +368,7 @@ impl GameState for State {
}
const DISPLAYWIDTH: i32 = 80;
const DISPLAYHEIGHT: i32 = 50;
const DISPLAYHEIGHT: i32 = 60;
fn main() -> rltk::BError {
use rltk::RltkBuilder;
@ -436,6 +436,9 @@ fn main() -> rltk::BError {
gamelog::clear_log();
gamelog::clear_events();
for _ in 0..5 {
gamelog::Logger::new().log();
}
gamelog::Logger::new()
.append("Welcome!")
.colour(rltk::CYAN)