mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-26 18:10:35 +00:00
intra:: unconnected portals form a list
This commit is contained in:
parent
c2acb4f271
commit
1791190493
@ -733,13 +733,15 @@ EX void show_portals() {
|
|||||||
else {
|
else {
|
||||||
dialog::addItem(XLAT("add to list"), 'a');
|
dialog::addItem(XLAT("add to list"), 'a');
|
||||||
dialog::add_action([cw] { unconnected.push_back(cw); });
|
dialog::add_action([cw] { unconnected.push_back(cw); });
|
||||||
|
dialog::start_list(500, 500, '1');
|
||||||
for(auto p: unconnected) {
|
for(auto p: unconnected) {
|
||||||
dialog::addItem(XLAT("connect " + lalign(0, p)), '1');
|
dialog::addItem(XLAT("connect " + lalign(0, p)), dialog::list_fake_key++);
|
||||||
dialog::add_action([p, cw] {
|
dialog::add_action([p, cw] {
|
||||||
connect_portal(cw, p, edit_spin);
|
connect_portal(cw, p, edit_spin);
|
||||||
erase_unconnected(p);
|
erase_unconnected(p);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
dialog::end_list();
|
||||||
dialog::addSelItem(XLAT("portal orientation"), its(edit_spin), 'o');
|
dialog::addSelItem(XLAT("portal orientation"), its(edit_spin), 'o');
|
||||||
dialog::add_action([] { edit_spin = edit_spin + 1; });
|
dialog::add_action([] { edit_spin = edit_spin + 1; });
|
||||||
if(debug_portal) {
|
if(debug_portal) {
|
||||||
|
Loading…
Reference in New Issue
Block a user