reimpl farlook (tooltips NYI)

This commit is contained in:
Llywelwyn 2023-09-24 19:16:47 +01:00
parent e8aa7494a4
commit e482b29fc6
5 changed files with 70 additions and 44 deletions

View file

@ -229,7 +229,17 @@ impl State {
}
}
}
// RunState::Farlook
RunState::Farlook { .. } => {
let result = gui::show_farlook(self, ctx);
match result {
gui::FarlookResult::NoResponse { x, y } => {
new_runstate = RunState::Farlook { x, y };
}
gui::FarlookResult::Cancel => {
new_runstate = RunState::AwaitingInput;
}
}
}
// RunState::ShowCheatMenu
// RunState::ShowInventory
// RunState::ShowDropItem
@ -379,7 +389,7 @@ impl State {
}
}
RunState::Farlook { .. } => {
let result = gui::show_farlook(self, ctx);
let result = gui::FarlookResult::Cancel; //gui::show_farlook(self, ctx);
match result {
gui::FarlookResult::NoResponse { x, y } => {
new_runstate = RunState::Farlook { x, y };