Class: UI::SymMultilineText

Inherits:
SymText show all
Defined in:
scripts/01450 Systems/00000 General/00100 UI Generics/00500 HelperSprites.rb

Overview

Object that show a multiline text using a method of the data object sent

Instance Attribute Summary

Attributes inherited from LiteRGSS::Text

#__index__, #align, #bold, #draw_shadow, #fill_color, #height, #italic, #nchar_draw, #opacity, #outline_color, #outline_thickness, #real_width, #size, #text, #viewport, #visible, #width, #x, #y, #z

Instance Method Summary collapse

Methods inherited from SymText

#initialize

Methods inherited from Text

#simple_mouse_in?, #translate_mouse_coords

Methods inherited from LiteRGSS::Text

#load_color, #multiline_text=, new, #set_position, #text_width

Methods inherited from LiteRGSS::Disposable

#dispose, #disposed?

Constructor Details

This class inherits a constructor from UI::SymText

Instance Method Details

#data=(object)

Set the Object used to show the text

Parameters:



355
356
357
358
# File 'scripts/01450 Systems/00000 General/00100 UI Generics/00500 HelperSprites.rb', line 355

def data=(object)
  return unless (self.visible = (object ? true : false))
  self.multiline_text = object.public_send(@method).to_s
end