mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-03-19 17:01:55 +08:00
Add actions to jump back and forth 1 frame in anim
This commit is contained in:
parent
e09399b1e7
commit
04d5f2c480
@ -726,6 +726,28 @@ BARS.defineActions(function() {
|
||||
Animator.preview()
|
||||
}
|
||||
})
|
||||
new Action('timeline_frame_back', {
|
||||
icon: 'arrow_back',
|
||||
category: 'animation',
|
||||
condition: {modes: ['animate']},
|
||||
keybind: new Keybind({key: 188}),
|
||||
click: function (e) {
|
||||
let time = Timeline.snapTime(limitNumber(Timeline.time - Timeline.getStep(), 0, 1e4));
|
||||
Timeline.setTime(time);
|
||||
Animator.preview()
|
||||
}
|
||||
})
|
||||
new Action('timeline_frame_forth', {
|
||||
icon: 'arrow_forward',
|
||||
category: 'animation',
|
||||
condition: {modes: ['animate']},
|
||||
keybind: new Keybind({key: 190}),
|
||||
click: function (e) {
|
||||
let time = Timeline.snapTime(limitNumber(Timeline.time + Timeline.getStep(), 0, 1e4));
|
||||
Timeline.setTime(time);
|
||||
Animator.preview()
|
||||
}
|
||||
})
|
||||
|
||||
new Action('bring_up_all_animations', {
|
||||
icon: 'fa-sort-amount-up',
|
||||
|
@ -995,6 +995,8 @@
|
||||
"action.next_keyframe.desc": "Jump to the next keyframe",
|
||||
"action.jump_to_timeline_start": "Jump to Animation Start",
|
||||
"action.jump_to_timeline_end": "Jump to Animation End",
|
||||
"action.timeline_frame_back": "Jump 1 Frame Back",
|
||||
"action.timeline_frame_forth": "Jump 1 Frame Forth",
|
||||
"action.bring_up_all_animations": "Bring Up All Animators",
|
||||
"action.bring_up_all_animations.desc": "Brings all modified animators into the timeline",
|
||||
"action.fold_all_animations": "Fold All Animators",
|
||||
|
Loading…
x
Reference in New Issue
Block a user