diff --git a/lib/slide_helper.rb b/lib/slide_helper.rb index 801a1f2c4d8ca0b0945d49b6eee136d241cdb405..a0ac6562f725afaab2260df53e9bbce5960ce240 100644 --- a/lib/slide_helper.rb +++ b/lib/slide_helper.rb @@ -21,6 +21,7 @@ # SLIDE_SCALE_LEFT allows the distance left to be scaled (e.g. half # normal distance) # +# !SLIDE_RIGHT args # !SLIDE_LEFT args # !SLIDE_DOWN args # !SLIDE_SCALE_LEFT .5 args @@ -199,6 +200,8 @@ module SlideHelper output += impress_scale_relative(args) + "\n" when '!SLIDE_HERE' output += impress_make_slide(args) + "\n" + when '!SLIDE_RIGHT' + output += impress_slide_right(args) + "\n" when '!SLIDE_LEFT' output += impress_slide_left(args) + "\n" when '!SLIDE_DOWN' @@ -277,6 +280,11 @@ module SlideHelper "" end + def impress_slide_right(args) + @@pos.x -= impress_horiz_mov_unit() + impress_make_slide(args) + end + def impress_slide_left(args) @@pos.x += impress_horiz_mov_unit() impress_make_slide(args)