@configurations = { models: { PanelPicture: 'panel_picture', panel_picture: { class_name: 'PanelPicture', table_name: 'panel_pictures', attributes: { id: { type: 'number', primary_key: 1, }, panel_id: { type: 'number', }, picture_id: { type: 'number', }, caption: { type: 'text', }, x: { type: 'number', }, y: { type: 'number', }, width: { type: 'number', }, height: { type: 'number', }, link: { type: 'text', }, z: { type: 'number', }, t: { type: 'number', }, created_at: { type: 'datetime', }, updated_at: { type: 'datetime', } } }, SpeechBalloon: 'speech_balloon', speech_balloon: { class_name: 'SpeechBalloon', table_name: 'speech_balloons', extend: 'classname', attributes: { id: { type: 'number', primary_key: 1, }, panel_id: { type: 'number', }, speech_balloon_template_id: { type: 'number', }, classname: { type: 'text', }, z: { type: 'number', }, t: { type: 'number', }, settings: { type: 'text', }, caption: { type: 'text', }, created_at: { type: 'datetime', }, updated_at: { type: 'datetime', } } }, Balloon: 'balloon', balloon: { class_name: 'Balloon', table_name: 'balloons', attributes: { id: { type: 'number', primary_key: 1, }, speech_balloon_id: { type: 'number', }, system_picture_id: { type: 'number', }, x: { type: 'number', }, y: { type: 'number', }, width: { type: 'number', }, height: { type: 'number', }, r: { type: 'number', }, settings: { type: 'text', }, created_at: { type: 'datetime', }, updated_at: { type: 'datetime', } } }, Speech: 'speech', speech: { class_name: 'Speech', table_name: 'speeches', attributes: { id: { type: 'number', primary_key: 1, }, speech_balloon_id: { type: 'number', }, writing_format_id: { type: 'number', }, content: { type: 'text', }, font_size: { type: 'float', }, text_align: { type: 'number', }, fore_color: { type: 'number', }, x: { type: 'number', }, y: { type: 'number', }, width: { type: 'number', }, height: { type: 'number', }, quotes: { type: 'text', }, settings: { type: 'text', }, created_at: { type: 'datetime', }, updated_at: { type: 'datetime', } } }, GroundPicture: 'ground_picture', ground_picture: { class_name: 'GroundPicture', table_name: 'ground_pictures', attributes: { id: { type: 'number', primary_key: 1, }, panel_id: { type: 'number', }, picture_id: { type: 'number', }, caption: { type: 'text', }, repeat: { type: 'number', }, x: { type: 'number', }, y: { type: 'number', }, z: { type: 'number', }, t: { type: 'number', }, created_at: { type: 'datetime', }, updated_at: { type: 'datetime', } } }, GroundColor: 'ground_color', ground_color: { class_name: 'GroundColor', table_name: 'ground_colors', attributes: { id: { type: 'number', primary_key: 1, }, panel_id: { type: 'number', }, caption: { type: 'text', }, code: { type: 'number', }, z: { type: 'number', }, t: { type: 'number', }, created_at: { type: 'datetime', }, updated_at: { type: 'datetime', } } }, WritingFormat: 'writing_format', writing_format: { class_name: 'WritingFormat', table_name: 'writing_formats', attributes: { id: { type: 'number', primary_key: 1, }, name: { type: 'text', }, classname: { type: 'text', }, caption: { type: 'text', }, system_picture_id: { type: 'number', }, settings: { type: 'text', }, created_at: { type: 'datetime', }, updated_at: { type: 'datetime', } } }, }, elements: [ { name: 'panel_picture', path_name: 'panel_pictures', parts: [] }, { name: 'speech_balloon', path_name: 'circle_speech_balloon/speech_balloons', parts: ['balloon', 'speech'] }, { name: 'ground_picture', path_name: 'ground_pictures', parts: [] }, { name: 'ground_color', path_name: 'ground_colors', parts: [] }, ], forms: { PanelPicture: 'panel_picture', panel_picture: { fields: [ { column: 'caption', type: 'text', options: { label_break: false, row_break: true } }, { column: 'x', type: 'number', options: { size: 5, } }, { column: 'y', type: 'number', options: { size: 5, row_break: true } }, { column: 'width', type: 'number', options: { size: 5, row_break: true }, helpers: { size: { path: 'panels/size_helper', options: { class: 'panel_picture_width_tool', } } }, }, { column: 'height', type: 'number', options: { size: 5, row_break: true }, helpers: { size: { path: 'panels/size_helper', options: { class: 'panel_picture_height_tool', } } }, }, { column: 'link', type: 'text', options: { row_break: true } }, { column: 'id', type: 'hidden', options: { } }, { column: 'panel_id', type: 'hidden', options: { } }, { column: 'picture_id', type: 'hidden', options: { } }, { column: 'z', type: 'hidden', options: { } }, { column: 't', type: 'hidden', options: { } }, ] }, CircleSpeechBalloon: 'circle_speech_balloon', circle_speech_balloon: { base: 'speech_balloon', fields: [ { column: 'caption', type: 'text', options: { row_break: true } }, { part: 'balloon', column: 'r', type: 'number', options: { size: 5, row_break: true }, helpers: { tail_angle: { path: 'panels/tail_angle_helper', options: { } } } }, { part: 'balloon', column: 'x', type: 'number', options: { size: 5, } }, { part: 'balloon', column: 'y', type: 'number', options: { size: 5, row_break: true } }, { part: 'balloon', column: 'width', type: 'number', options: { size: 5, } }, { part: 'balloon', column: 'height', type: 'number', options: { size: 5, row_break: true } }, { part: 'balloon', column: 'id', type: 'hidden', options: { } }, { part: 'balloon', column: 'speech_balloon_id', type: 'hidden', options: { } }, { part: 'balloon', column: 'system_picture_id', type: 'hidden', options: { } }, { part: 'balloon', column: 'settings', type: 'hidden', options: { } }, { part: 'speech', column: 'writing_format_id', type: 'select', options: { source: 'model', model: 'writing_format', method: 'list', caption: 'caption' } }, { part: 'speech', column: 'font_size', type: 'select', options: { source: 'magic_number', key: 'speech_font_size_items', row_break: true } }, { part: 'speech', column: 'text_align', type: 'select', options: { source: 'magic_number', key: 'speech_text_align_items', } }, { part: 'speech', column: 'quotes', type: 'text', options: { size: 5, } }, { part: 'speech', column: 'content', type: 'text_area', options: { label_break: true, size: '45x5', } }, { part: 'speech', column: 'fore_color', type: 'hidden', options: { label_break: true, }, helpers: { color: { path: 'panels/color_helper', options: { }, wrapper: 'speech-fore_color-wrap' } } }, { part: 'speech', column: 'id', type: 'hidden', options: { } }, { part: 'speech', column: 'speech_balloon_id', type: 'hidden', options: { } }, { part: 'speech', column: 'x', type: 'hidden', options: { } }, { part: 'speech', column: 'y', type: 'hidden', options: { } }, { part: 'speech', column: 'width', type: 'hidden', options: { } }, { part: 'speech', column: 'height', type: 'hidden', options: { } }, { part: 'speech', column: 'settings', type: 'hidden', options: { } }, { column: 'id', type: 'hidden', options: { } }, { column: 'panel_id', type: 'hidden', options: { } }, { column: 'speech_balloon_template_id', type: 'hidden', options: { } }, { column: 'classname', type: 'hidden', options: { } }, { column: 'z', type: 'hidden', options: { } }, { column: 't', type: 'hidden', options: { } }, { column: 'settings', type: 'hidden', options: { } } ] }, PlainSpeechBalloon: 'plain_speech_balloon', plain_speech_balloon: { base: 'speech_balloon', fields: [ { column: 'caption', type: 'text', options: { row_break: true } }, { part: 'balloon', column: 'r', type: 'hidden', options: { }, }, { part: 'balloon', column: 'x', type: 'number', options: { size: 5, } }, { part: 'balloon', column: 'y', type: 'number', options: { size: 5, row_break: true } }, { part: 'balloon', column: 'width', type: 'number', options: { size: 5, } }, { part: 'balloon', column: 'height', type: 'number', options: { size: 5, row_break: true } }, { part: 'balloon', column: 'id', type: 'hidden', options: { } }, { part: 'balloon', column: 'speech_balloon_id', type: 'hidden', options: { } }, { part: 'balloon', column: 'system_picture_id', type: 'hidden', options: { } }, { part: 'balloon', column: 'settings', type: 'hidden', options: { } }, { part: 'speech', column: 'writing_format_id', type: 'select', options: { source: 'model', model: 'writing_format', method: 'list', caption: 'caption' } }, { part: 'speech', column: 'font_size', type: 'select', options: { source: 'magic_number', key: 'speech_font_size_items', row_break: true } }, { part: 'speech', column: 'text_align', type: 'select', options: { source: 'magic_number', key: 'speech_text_align_items', } }, { part: 'speech', column: 'quotes', type: 'text', options: { size: 5, } }, { part: 'speech', column: 'content', type: 'text_area', options: { label_break: true, size: '45x5', } }, { part: 'speech', column: 'fore_color', type: 'hidden', options: { label_break: true, }, helpers: { color: { path: 'panels/color_helper', options: { }, wrapper: 'speech-fore_color-wrap' } } }, { part: 'speech', column: 'id', type: 'hidden', options: { } }, { part: 'speech', column: 'speech_balloon_id', type: 'hidden', options: { } }, { part: 'speech', column: 'x', type: 'hidden', options: { } }, { part: 'speech', column: 'y', type: 'hidden', options: { } }, { part: 'speech', column: 'width', type: 'hidden', options: { } }, { part: 'speech', column: 'height', type: 'hidden', options: { } }, { part: 'speech', column: 'settings', type: 'hidden', options: { } }, { column: 'id', type: 'hidden', options: { } }, { column: 'panel_id', type: 'hidden', options: { } }, { column: 'speech_balloon_template_id', type: 'hidden', options: { } }, { column: 'classname', type: 'hidden', options: { } }, { column: 'z', type: 'hidden', options: { } }, { column: 't', type: 'hidden', options: { } }, { column: 'settings', type: 'hidden', options: { } } ] }, SquareSpeechBalloon: 'square_speech_balloon', square_speech_balloon: { base: 'speech_balloon', fields: [ { column: 'caption', type: 'text', options: { row_break: true } }, { part: 'balloon', column: 'r', type: 'hidden', options: { }, }, { part: 'balloon', column: 'x', type: 'number', options: { size: 5, } }, { part: 'balloon', column: 'y', type: 'number', options: { size: 5, row_break: true } }, { part: 'balloon', column: 'width', type: 'number', options: { size: 5, } }, { part: 'balloon', column: 'height', type: 'number', options: { size: 5, row_break: true } }, { part: 'balloon', column: 'id', type: 'hidden', options: { } }, { part: 'balloon', column: 'speech_balloon_id', type: 'hidden', options: { } }, { part: 'balloon', column: 'system_picture_id', type: 'hidden', options: { } }, { part: 'balloon', column: 'settings', type: 'hidden', options: { } }, { part: 'speech', column: 'writing_format_id', type: 'select', options: { source: 'model', model: 'writing_format', method: 'list', caption: 'caption' } }, { part: 'speech', column: 'font_size', type: 'select', options: { source: 'magic_number', key: 'speech_font_size_items', row_break: true } }, { part: 'speech', column: 'text_align', type: 'select', options: { source: 'magic_number', key: 'speech_text_align_items', } }, { part: 'speech', column: 'quotes', type: 'text', options: { size: 5, } }, { part: 'speech', column: 'content', type: 'text_area', options: { label_break: true, size: '45x5', } }, { part: 'speech', column: 'fore_color', type: 'hidden', options: { label_break: true, }, helpers: { color: { path: 'panels/color_helper', options: { }, wrapper: 'speech-fore_color-wrap' } } }, { part: 'speech', column: 'id', type: 'hidden', options: { } }, { part: 'speech', column: 'speech_balloon_id', type: 'hidden', options: { } }, { part: 'speech', column: 'x', type: 'hidden', options: { } }, { part: 'speech', column: 'y', type: 'hidden', options: { } }, { part: 'speech', column: 'width', type: 'hidden', options: { } }, { part: 'speech', column: 'height', type: 'hidden', options: { } }, { part: 'speech', column: 'settings', type: 'hidden', options: { } }, { column: 'id', type: 'hidden', options: { } }, { column: 'panel_id', type: 'hidden', options: { } }, { column: 'speech_balloon_template_id', type: 'hidden', options: { } }, { column: 'classname', type: 'hidden', options: { } }, { column: 'z', type: 'hidden', options: { } }, { column: 't', type: 'hidden', options: { } }, { column: 'settings', type: 'hidden', options: { } } ] }, GroundPicture: 'ground_picture', ground_picture: { fields: [ { column: 'caption', type: 'text', options: { row_break: true } }, { column: 'repeat', type: 'select', options: { source: 'magic_number', key: 'ground_picture_repeat_items', row_break: true } }, { column: 'x', type: 'number', options: { size: 5, } }, { column: 'y', type: 'number', options: { size: 5, row_break: true } }, { column: 'z', type: 'hidden', options: { } }, { column: 't', type: 'hidden', options: { } }, { column: 'id', type: 'hidden', options: { } }, { column: 'panel_id', type: 'hidden', options: { } }, { column: 'picture_id', type: 'hidden', options: { } }, ] }, GroundColor: 'ground_color', ground_color: { fields: [ { column: 'caption', type: 'text', options: { row_break: true } }, { column: 'code', type: 'hidden', options: { label_break: true, row_break: true } helpers: { color: { path: 'panels/color_helper', options: { }, wrapper: 'ground_color-code-wrap' } }, }, { column: 'z', type: 'hidden', options: { } }, { column: 't', type: 'hidden', options: { } }, { column: 'id', type: 'hidden', options: { } }, { column: 'panel_id', type: 'hidden', options: { } }, ] } }, locales: { ja: { } }, } @repeat_texts = ['repeat', 'repeat-x', 'repeat-y', 'no-repeat'] @text_align_texts = ['left', 'left', 'right', 'center']