reimpl farlook (tooltips NYI)
This commit is contained in:
parent
e8aa7494a4
commit
e482b29fc6
5 changed files with 70 additions and 44 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue