Method: Fidgit::DialogState#draw

Defined in:
lib/fidgit/states/dialog_state.rb

#drawObject



28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/fidgit/states/dialog_state.rb', line 28

def draw
  $window.game_state_manager.previous_game_state.draw # Keep the underlying state being shown.

  $window.flush

  if @shadow_full
    draw_rect 0, 0, $window.width, $window.height, -Float::INFINITY, @shadow_color
  elsif @shadow_offset > 0
    dialog = container[0]
    draw_rect dialog.x + @shadow_offset, dialog.y + @shadow_offset, dialog.width, dialog.height, -Float::INFINITY, @shadow_color
  end

  super
end