mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
create and new position and increase interval now work on current_segment
This commit is contained in:
parent
1efe2115cb
commit
5493621167
@ -284,21 +284,25 @@ void show() {
|
|||||||
aid++;
|
aid++;
|
||||||
}
|
}
|
||||||
|
|
||||||
dialog::addItem("create a new position", 'a');
|
if(current_segment) {
|
||||||
dialog::add_action([] {
|
dialog::addItem("create a new position", 'a');
|
||||||
current_segment->frames.push_back(frame{gentitle(), centerover, View, current_position, ortho_inverse(NLP), 1, 1, 0});
|
dialog::add_action([] {
|
||||||
});
|
current_segment->frames.push_back(frame{gentitle(), centerover, View, current_position, ortho_inverse(NLP), 1, 1, 0});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
dialog::addItem("create a new segment", 'b');
|
dialog::addItem("create a new segment", 'b');
|
||||||
dialog::add_action(start_segment);
|
dialog::add_action(start_segment);
|
||||||
|
|
||||||
dialog::addItem("increase interval by 1", 's');
|
if(current_segment) {
|
||||||
dialog::add_key_action('s', [] {
|
dialog::addItem("increase interval by 1", 's');
|
||||||
if(!current_segment->frames.empty())
|
dialog::add_key_action('s', [] {
|
||||||
current_segment->frames.back().interval += 1;
|
if(!current_segment->frames.empty())
|
||||||
else
|
current_segment->frames.back().interval += 1;
|
||||||
current_segment->start_interval+=1;
|
else
|
||||||
});
|
current_segment->start_interval+=1;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
/* dialog::addItem("join a new segment", 'j');
|
/* dialog::addItem("join a new segment", 'j');
|
||||||
dialog::add_action(join_segment); */
|
dialog::add_action(join_segment); */
|
||||||
|
Loading…
Reference in New Issue
Block a user