Some tweaks/fixes

- Show monster name in description of summoning item abilities (in-game and in the scenario editor)
- Don't call drop special nodes when storing an item in a container
- Don't use exceptions to determine whether a slot in the get window has an item in it
- Fix placed items defaulting to 0 charges instead of -1 (fortunately, this didn't actually cause a bug)
- Fix ability description in item dialog not updating after you edit the abilities
- Fix off-by-one issues in several cases of the pick monster dialog
- Show charges field in placed item dialog if the item is given the Shoot Flames enchantment
- Fix enchantment field not being filled with the current value when opening the edit placed item dialog
- Fix placed item dialog not updating after you set a new enchantment by editing the field (rather than using the Choose button)
- (Dialog engine) Fix initial focus handler call passing wrong control ID
This commit is contained in:
2015-06-11 12:22:04 -04:00
parent c871980b8f
commit 21291e168c
7 changed files with 38 additions and 30 deletions

View File

@@ -1044,7 +1044,7 @@ void cDialog::run(std::function<void(cDialog&)> onopen){
return ctrl.second->isVisible();
});
if(iter != tabOrder.end()) {
iter->second->triggerFocusHandler(*this, tabOrder[0].first, false);
iter->second->triggerFocusHandler(*this, iter->first, false);
currentFocus = iter->first;
}
}