Class: UI::Options::Description

Inherits:
SpriteStack show all
Defined in:
scripts/01450 Systems/00105 Options/00002 UI/00001 Description.rb

Overview

Class that shows the option description

Constant Summary

Constants inherited from SpriteStack

SpriteStack::NO_INITIAL_IMAGE

Instance Attribute Summary

Attributes inherited from SpriteStack

#animated, #data, #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, #visible=, #with_cache, #with_font, #with_surface, #z, #z=

Constructor Details

#initialize(viewport) ⇒ Description

Create a new InfoWide

Parameters:



7
8
9
10
11
12
# File 'scripts/01450 Systems/00105 Options/00002 UI/00001 Description.rb', line 7

def initialize(viewport)
  super(viewport, 0, 45)
  add_background('options/description')
  @name = add_text(3, 19, 0, 13, :name, type: SymText, color: 25)
  @descr = add_text(3, 37, 151, 16, :description, type: SymMultilineText)
end