class Speech < Peta::Content
load_manifest
- include Peta::ElementPart
belongs_to :speech_balloon
belongs_to :writing_format
@@text_align_texts = ['left', 'left', 'right', 'center']
- def self.colum_structures
- @@colum_structures ||= {
- :fore_color => {
- :helper => 'panels/color_helper'
- }
- }
- end
-
def supply_default
self.x = 0
self.y = 0
self.get_parent.speech_balloon_template.symbol_option
end
- def get_parent
- self.speech_balloon || @new_parent
- end
-
- def tag_element_part_type
- 'speech'
- end
-
def outer_style
{
'top' => self.y, 'left' => self.x,