Class: UI::CurtainSprite

Inherits:
Sprite show all
Includes:
BattleUI::GoingInOut, UI
Defined in:
docs/6_Contest_01_Scene.rb

Overview

Class that represents the Curtains during a contest

Constant Summary collapse

SPRITE_NAME =

Curtain sprite name

Returns:

'contest/curtain'

Instance Attribute Summary collapse

Attributes inherited from LiteRGSS::ShaderedSprite

#blendmode, #shader

Attributes inherited from LiteRGSS::Sprite

#__index__, #angle, #bitmap, #height, #mirror, #opacity, #ox, #oy, #src_rect, #visible, #width, #x, #y, #z, #zoom, #zoom_x, #zoom_y

Instance Method Summary collapse

Methods included from BattleUI::GoingInOut

#go_in, #go_out, #in?, #out?

Methods inherited from Sprite

#load, #mouse_in?, #set_origin_div, #set_rect, #set_rect_div, #set_z, #simple_mouse_in?, #translate_mouse_coords

Methods inherited from LiteRGSS::Sprite

#set_origin, #set_position

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

#initialize(viewport, side) ⇒ CurtainSprite

Create a new Curtain Sprite

Parameters:

  • viewport (Viewport)
  • side (Symbol) —

    Side of the curtain, :left or :right



666
667
# File 'docs/6_Contest_01_Scene.rb', line 666

def initialize(viewport, side)
end

Instance Attribute Details

#animation_handler ⇒ Yuki::Animation::Handler{ Symbol => Yuki::AnimationMixin} (readonly)

Get the animation handler



659
660
661
# File 'docs/6_Contest_01_Scene.rb', line 659

def animation_handler
  @animation_handler
end

#side ⇒ Symbol (readonly)

Side of the curtain

Returns:

  • (Symbol)


656
657
658
# File 'docs/6_Contest_01_Scene.rb', line 656

def side
  @side
end

#viewport ⇒ Viewport (readonly)

The viewport

Returns:



662
663
664
# File 'docs/6_Contest_01_Scene.rb', line 662

def viewport
  @viewport
end

Instance Method Details

#create_animation

Create the animation



669
670
# File 'docs/6_Contest_01_Scene.rb', line 669

def create_animation
end

#done? ⇒ Boolean

Tell if the InfoBox animations are done

Returns:

  • (Boolean)


676
677
# File 'docs/6_Contest_01_Scene.rb', line 676

def done?
end

#go_in_animation ⇒ Yuki::AnimationMixin

Get the in animation



680
681
# File 'docs/6_Contest_01_Scene.rb', line 680

def go_in_animation
end

#go_out_animation ⇒ Yuki::AnimationMixin

Get the out animation



684
685
# File 'docs/6_Contest_01_Scene.rb', line 684

def go_out_animation
end

#update

Update the InfoBox



672
673
# File 'docs/6_Contest_01_Scene.rb', line 672

def update
end