Skip to content
Snippets Groups Projects
Commit 9f1e7d5b authored by Hague Matthew UXAC009's avatar Hague Matthew UXAC009
Browse files

Add SLIDE_RIGHT

parent 156e7a6a
Branches
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
# SLIDE_SCALE_LEFT allows the distance left to be scaled (e.g. half # SLIDE_SCALE_LEFT allows the distance left to be scaled (e.g. half
# normal distance) # normal distance)
# #
# !SLIDE_RIGHT args
# !SLIDE_LEFT args # !SLIDE_LEFT args
# !SLIDE_DOWN args # !SLIDE_DOWN args
# !SLIDE_SCALE_LEFT .5 args # !SLIDE_SCALE_LEFT .5 args
...@@ -199,6 +200,8 @@ module SlideHelper ...@@ -199,6 +200,8 @@ module SlideHelper
output += impress_scale_relative(args) + "\n" output += impress_scale_relative(args) + "\n"
when '!SLIDE_HERE' when '!SLIDE_HERE'
output += impress_make_slide(args) + "\n" output += impress_make_slide(args) + "\n"
when '!SLIDE_RIGHT'
output += impress_slide_right(args) + "\n"
when '!SLIDE_LEFT' when '!SLIDE_LEFT'
output += impress_slide_left(args) + "\n" output += impress_slide_left(args) + "\n"
when '!SLIDE_DOWN' when '!SLIDE_DOWN'
...@@ -277,6 +280,11 @@ module SlideHelper ...@@ -277,6 +280,11 @@ module SlideHelper
"" ""
end end
def impress_slide_right(args)
@@pos.x -= impress_horiz_mov_unit()
impress_make_slide(args)
end
def impress_slide_left(args) def impress_slide_left(args)
@@pos.x += impress_horiz_mov_unit() @@pos.x += impress_horiz_mov_unit()
impress_make_slide(args) impress_make_slide(args)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment