key inv display
This commit is contained in:
@@ -100,6 +100,10 @@ impl EditorState {
|
||||
/// Builds an editor session for `world`, starting on its designated start board.
|
||||
pub(crate) fn new(world: World) -> Self {
|
||||
let board_name = world.start.clone();
|
||||
let cursor = {
|
||||
let b = world.boards[&board_name].borrow();
|
||||
(b.width as i32 / 2, b.height as i32 / 2)
|
||||
};
|
||||
Self {
|
||||
world,
|
||||
board_name,
|
||||
@@ -107,7 +111,7 @@ impl EditorState {
|
||||
dialog: None,
|
||||
code_editor: None,
|
||||
glyph_dialog: None,
|
||||
cursor: (0, 0),
|
||||
cursor,
|
||||
current_archetype: Archetype::Wall,
|
||||
current_glyph: Archetype::Wall.default_glyph(),
|
||||
draw_mode: false,
|
||||
|
||||
Reference in New Issue
Block a user