mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 22:39:53 +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++;
|
aid++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(current_segment) {
|
||||||
dialog::addItem("create a new position", 'a');
|
dialog::addItem("create a new position", 'a');
|
||||||
dialog::add_action([] {
|
dialog::add_action([] {
|
||||||
current_segment->frames.push_back(frame{gentitle(), centerover, View, current_position, ortho_inverse(NLP), 1, 1, 0});
|
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);
|
||||||
|
|
||||||
|
if(current_segment) {
|
||||||
dialog::addItem("increase interval by 1", 's');
|
dialog::addItem("increase interval by 1", 's');
|
||||||
dialog::add_key_action('s', [] {
|
dialog::add_key_action('s', [] {
|
||||||
if(!current_segment->frames.empty())
|
if(!current_segment->frames.empty())
|
||||||
@ -299,6 +302,7 @@ void show() {
|
|||||||
else
|
else
|
||||||
current_segment->start_interval+=1;
|
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