mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 14:37:16 +00:00
create and new position and increase interval now work on current_segment
This commit is contained in:
parent
1efe2115cb
commit
5493621167
@ -284,14 +284,17 @@ void show() {
|
||||
aid++;
|
||||
}
|
||||
|
||||
if(current_segment) {
|
||||
dialog::addItem("create a new position", 'a');
|
||||
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::add_action(start_segment);
|
||||
|
||||
if(current_segment) {
|
||||
dialog::addItem("increase interval by 1", 's');
|
||||
dialog::add_key_action('s', [] {
|
||||
if(!current_segment->frames.empty())
|
||||
@ -299,6 +302,7 @@ void show() {
|
||||
else
|
||||
current_segment->start_interval+=1;
|
||||
});
|
||||
}
|
||||
|
||||
/* dialog::addItem("join a new segment", 'j');
|
||||
dialog::add_action(join_segment); */
|
||||
|
Loading…
Reference in New Issue
Block a user