mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-24 17:10:36 +00:00
pressing 0..9 keys now changes the radius in map editor
This commit is contained in:
parent
9c60df7dde
commit
47e5eb1e93
@ -1448,7 +1448,7 @@ EX namespace mapeditor {
|
||||
dialog::addInfo(paintwhat_str);
|
||||
dialog::addInfo(XLAT("use at your own risk!"), 0x800000);
|
||||
|
||||
dialog::addSelItem(XLAT("radius"), its(radius), '0');
|
||||
dialog::addSelItem(XLAT("radius"), its(radius), '=');
|
||||
dialog::add_action([] {
|
||||
dialog::editNumber(radius, 0, 9, 1, 1, XLAT("radius"), "");
|
||||
});
|
||||
@ -1496,6 +1496,9 @@ EX namespace mapeditor {
|
||||
dialog::addBoolItem_action(XLAT("build on walls"), building_mode, 'B');
|
||||
else dialog::addBreak(100);
|
||||
dialog::addBreak(800);
|
||||
|
||||
for(int r=0; r<10; r++) if(!dialog::key_actions.count(r))
|
||||
dialog::add_key_action('0' + r, [r] { radius = r; });
|
||||
}
|
||||
|
||||
void editor_menu(int i) {
|
||||
|
Loading…
Reference in New Issue
Block a user