Class: UI::Summary_Contest

Inherits:
Summary_Skills show all
Defined in:
docs/4_Systems_102_Party.rb

Overview

UI part displaying the Contest Data of the Creature in the Summary

Defined Under Namespace

Classes: Summary_Contest_Skill

Constant Summary collapse

PENTAGON_BASE_COORDINATES =

Coordinates of the points constituting the pentagon of the stats display when the corresponding stat is at the minimum

Returns:

  • (Array<Array<Integer>>)
[[210.5, 67.5], [213.5, 69.5], [212.5, 72.5], [208.5, 72.5], [207.5, 69.5]]
PENTAGON_MAX_COORDINATES =

Coordinates of the points constituting the pentagon of the stats display when the corresponding stat is at the maximum

Returns:

  • (Array<Array<Integer>>)
[[210.5, 39.5], [240.5, 61.5], [229.5, 95.5], [192.5, 95.5], [180.5, 61.5]]
PENTAGON_COLOR =

Color of the pentagon fill

Returns:

  • (Array<Integer>)
[127, 233, 210, 150]
PENTAGON_OUTLINE_COLOR =

Color of the pentagon outline

Returns:

  • (Array<Integer>)
[65, 142, 192, 255]
PENTAGON_OUTLINE_THICKNESS =

Thickness of the pentagon outline in pixels

Returns:

  • (Integer)
1

Constants inherited from SpriteStack

UI::SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary collapse

Attributes inherited from Summary_Skills

#index, #skills

Attributes inherited from SpriteStack

#animated, #data, #font_id, #moving, #stack, #viewport, #x, #y

Instance Method Summary collapse

Methods inherited from SpriteStack

#[], #add_background, #add_line, #add_text, #anime, #anime_delta_set, #dispose, #each, #execute_anime, #move, #move_to, #opacity, #opacity=, #push, #push_sprite, #set_origin, #set_position, #simple_mouse_in?, #size, #stop_animation, #translate_mouse_coords, #update, #update_animation, #update_position, #visible, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

#initialize(viewport) ⇒ Summary_Contest

Create a new Contest UI for the summary

Parameters:



394
395
# File 'docs/4_Systems_102_Party.rb', line 394

def initialize(viewport)
end

Instance Attribute Details

#appeal_hearts ⇒ Array<SpriteSheet> (readonly)

Appeal hearts sprites

Returns:



382
383
384
# File 'docs/4_Systems_102_Party.rb', line 382

def appeal_hearts
  @appeal_hearts
end

#background ⇒ SpriteSheet (readonly)

Background of this summary page

Returns:



379
380
381
# File 'docs/4_Systems_102_Party.rb', line 379

def background
  @background
end

#jam_hearts ⇒ Array<SpriteSheet> (readonly)

Jam hearts sprites

Returns:



385
386
387
# File 'docs/4_Systems_102_Party.rb', line 385

def jam_hearts
  @jam_hearts
end

#page_version ⇒ Symbol

The shown version of this summary page (:moves or :stats)

Returns:

  • (Symbol)


391
392
393
# File 'docs/4_Systems_102_Party.rb', line 391

def page_version
  @page_version
end

#sheen_stars ⇒ Array<Sprite> (readonly)

Sheen stars sprites

Returns:



388
389
390
# File 'docs/4_Systems_102_Party.rb', line 388

def sheen_stars
  @sheen_stars
end

Instance Method Details

#data=(creature)

Set the data of the UI

Parameters:



402
403
# File 'docs/4_Systems_102_Party.rb', line 402

def data=(creature)
end

#index=(index)

Set the index of the shown move

Parameters:

  • index (Integer)


406
407
# File 'docs/4_Systems_102_Party.rb', line 406

def index=(index)
end

#show_page_version(version)

Show the specified version of the summary page

Parameters:

  • version (Symbol) —

    :moves or :stats



410
411
# File 'docs/4_Systems_102_Party.rb', line 410

def show_page_version(version)
end

#visible=(value)

Set the visibility of the UI

Parameters:

  • value (Boolean) —

    new visibility



398
399
# File 'docs/4_Systems_102_Party.rb', line 398

def visible=(value)
end