Class: UI::SymText

Inherits:
Text show all
Defined in:
docs/01450_Systems_00000_General_00100_UI_Generics.rb

Overview

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

Direct Known Subclasses

SymMultilineText

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 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

#initialize(font_id, viewport, x, y, width, height, method, align = 0, outlinesize = nil, color = nil, sizeid = nil) ⇒ SymText

Add a text inside the window, the offset x/y will be adjusted

Parameters:

  • font_id (Integer)

    the id of the font to use to draw the text

  • viewport (Viewport, nil)

    the viewport used to show the text

  • x (Integer)

    the x coordinate of the text surface

  • y (Integer)

    the y coordinate of the text surface

  • width (Integer)

    the width of the text surface

  • height (Integer)

    the height of the text surface

  • method (Symbol)

    the symbol of the method to call in the data object

  • align (0, 1, 2) (defaults to: 0)

    the align of the text in its surface (best effort => no resize), 0 = left, 1 = center, 2 = right

  • outlinesize (Integer, nil) (defaults to: nil)

    the size of the text outline

  • color (Integer) (defaults to: nil)

    the id of the color

  • sizeid (Intger) (defaults to: nil)

    the id of the size to use



710
711
# File 'docs/01450_Systems_00000_General_00100_UI_Generics.rb', line 710

def initialize(font_id, viewport, x, y, width, height, method, align = 0, outlinesize = nil, color = nil, sizeid = nil)
end

Instance Method Details

#data=(object)

Set the Object used to show the text

Parameters:



714
715
# File 'docs/01450_Systems_00000_General_00100_UI_Generics.rb', line 714

def data=(object)
end