OSDN Git Service

t#2334:add gc offset
[pettanr/pettanr.git] / app / assets / javascripts / configurations.js.coffee
1 @configurations = {\r
2   models: {\r
3     Panel: 'panel',\r
4     panel: {\r
5       class_name: 'Panel',\r
6       table_name: 'panels',\r
7       attributes: {\r
8         id: {\r
9           type: 'number',\r
10           primary_key: 1,\r
11           rules : {\r
12             number: true,\r
13           }\r
14         },\r
15         width: {\r
16           type: 'number',\r
17           rules : {\r
18             required: true,\r
19             number: true,\r
20             min: 1,\r
21           }\r
22         },\r
23         height: {\r
24           type: 'number',\r
25           rules : {\r
26             required: true,\r
27             number: true,\r
28             min: 1,\r
29           }\r
30         },\r
31         border: {\r
32           type: 'number',\r
33           rules : {\r
34             required: true,\r
35             number: true,\r
36             min: 0,\r
37           }\r
38         },\r
39         caption: {\r
40           type: 'text',\r
41           rules : {\r
42           }\r
43         },\r
44         publish: {\r
45           type: 'number',\r
46           rules : {\r
47             required: true,\r
48             number: true,\r
49           }\r
50         },\r
51         author_id: {\r
52           type: 'number',\r
53           rules : {\r
54             required: true,\r
55             number: true,\r
56           }\r
57         },\r
58         created_at: {\r
59           type: 'datetime',\r
60         },\r
61         updated_at: {\r
62           type: 'datetime',\r
63         }\r
64       }\r
65     },\r
66     PanelPicture: 'panel_picture',\r
67     panel_picture: {\r
68       class_name: 'PanelPicture',\r
69       table_name: 'panel_pictures',\r
70       attributes: {\r
71         id: {\r
72           type: 'number',\r
73           primary_key: 1,\r
74           rules : {\r
75             number: true,\r
76           }\r
77         },\r
78         panel_id: {\r
79           type: 'number',\r
80           rules : {\r
81             number: true,\r
82           }\r
83         },\r
84         picture_id: {\r
85           type: 'number',\r
86           rules : {\r
87             required: true,\r
88             number: true,\r
89           }\r
90         },\r
91         caption: {\r
92           type: 'text',\r
93           rules : {\r
94           }\r
95         },\r
96         x: {\r
97           type: 'number',\r
98           rules : {\r
99             required: true,\r
100             number: true,\r
101           }\r
102         },\r
103         y: {\r
104           type: 'number',\r
105           rules : {\r
106             required: true,\r
107             number: true,\r
108           }\r
109         },\r
110         width: {\r
111           type: 'number',\r
112           rules : {\r
113             required: true,\r
114             number: true,\r
115           }\r
116         },\r
117         height: {\r
118           type: 'number',\r
119           rules : {\r
120             required: true,\r
121             number: true,\r
122           }\r
123         },\r
124         link: {\r
125           type: 'text',\r
126           rules : {\r
127             url: true,\r
128           }\r
129         },\r
130         z: {\r
131           type: 'number',\r
132           rules : {\r
133             required: true,\r
134             number: true,\r
135             min: 1,\r
136           }\r
137         },\r
138         t: {\r
139           type: 'number',\r
140           rules : {\r
141             required: true,\r
142             number: true,\r
143             min: 0,\r
144           }\r
145         },\r
146         created_at: {\r
147           type: 'datetime',\r
148         },\r
149         updated_at: {\r
150           type: 'datetime',\r
151         }\r
152       }\r
153     },\r
154     SpeechBalloon: 'speech_balloon',\r
155     speech_balloon: {\r
156       class_name: 'SpeechBalloon',\r
157       table_name: 'speech_balloons',\r
158       extend: 'classname', \r
159       attributes: {\r
160         id: {\r
161           type: 'number',\r
162           primary_key: 1,\r
163           rules : {\r
164             number: true,\r
165           }\r
166         },\r
167         panel_id: {\r
168           type: 'number',\r
169           rules : {\r
170             number: true,\r
171           }\r
172         },\r
173         speech_balloon_template_id: {\r
174           type: 'number',\r
175           rules : {\r
176             required: true,\r
177             number: true,\r
178           }\r
179         },\r
180         classname: {\r
181           type: 'text',\r
182           rules : {\r
183             required: true,\r
184           }\r
185         },\r
186         z: {\r
187           type: 'number',\r
188           rules : {\r
189             required: true,\r
190             number: true,\r
191             min: 1,\r
192           }\r
193         },\r
194         t: {\r
195           type: 'number',\r
196           rules : {\r
197             required: true,\r
198             number: true,\r
199             min: 0,\r
200           }\r
201         },\r
202         settings: {\r
203           type: 'text',\r
204           rules : {\r
205           }\r
206         },\r
207         caption: {\r
208           type: 'text',\r
209           rules : {\r
210           }\r
211         },\r
212         created_at: {\r
213           type: 'datetime',\r
214         },\r
215         updated_at: {\r
216           type: 'datetime',\r
217         }\r
218       }\r
219     }, \r
220     Balloon: 'balloon',\r
221     balloon: {\r
222       class_name: 'Balloon',\r
223       table_name: 'balloons',\r
224       attributes: {\r
225         id: {\r
226           type: 'number',\r
227           primary_key: 1,\r
228           rules : {\r
229             number: true,\r
230           }\r
231         },\r
232         speech_balloon_id: {\r
233           type: 'number',\r
234           rules : {\r
235             number: true,\r
236           }\r
237         },\r
238         system_picture_id: {\r
239           type: 'number',\r
240           rules : {\r
241             required: true,\r
242             number: true,\r
243           }\r
244         },\r
245         x: {\r
246           type: 'number',\r
247           rules : {\r
248             required: true,\r
249             number: true,\r
250           }\r
251         },\r
252         y: {\r
253           type: 'number',\r
254           rules : {\r
255             required: true,\r
256             number: true,\r
257           }\r
258         },\r
259         width: {\r
260           type: 'number',\r
261           rules : {\r
262             required: true,\r
263             number: true,\r
264             min: 1,\r
265           }\r
266         },\r
267         height: {\r
268           type: 'number',\r
269           rules : {\r
270             required: true,\r
271             number: true,\r
272             min: 1,\r
273           }\r
274         },\r
275         r: {\r
276           type: 'number',\r
277           rules : {\r
278             required: true,\r
279             number: true,\r
280           }\r
281         },\r
282         settings: {\r
283           type: 'text',\r
284           rules : {\r
285           }\r
286         },\r
287         created_at: {\r
288           type: 'datetime',\r
289         },\r
290         updated_at: {\r
291           type: 'datetime',\r
292         }\r
293       }\r
294     },\r
295     Speech: 'speech',\r
296     speech: {\r
297       class_name: 'Speech',\r
298       table_name: 'speeches',\r
299       attributes: {\r
300         id: {\r
301           type: 'number',\r
302           primary_key: 1,\r
303           rules : {\r
304             number: true,\r
305           }\r
306         },\r
307         speech_balloon_id: {\r
308           type: 'number',\r
309           rules : {\r
310             number: true,\r
311           }\r
312         },\r
313         writing_format_id: {\r
314           type: 'number',\r
315           rules : {\r
316             required: true,\r
317             number: true,\r
318           }\r
319         },\r
320         content: {\r
321           type: 'text',\r
322           rules : {\r
323           }\r
324         },\r
325         font_size: {\r
326           type: 'float',\r
327           rules : {\r
328             required: true,\r
329             number: true,\r
330             min: 0,\r
331           }\r
332         },\r
333         text_align: {\r
334           type: 'number',\r
335           rules : {\r
336             required: true,\r
337             number: true,\r
338             range: [0, 3],\r
339           }\r
340         },\r
341         fore_color: {\r
342           type: 'number',\r
343           rules : {\r
344             required: true,\r
345             number: true,\r
346             range: [0, 0xffffff],\r
347           }\r
348         },\r
349         x: {\r
350           type: 'number',\r
351           rules : {\r
352             required: true,\r
353             number: true,\r
354           }\r
355         },\r
356         y: {\r
357           type: 'number',\r
358           rules : {\r
359             required: true,\r
360             number: true,\r
361           }\r
362         },\r
363         width: {\r
364           type: 'number',\r
365           rules : {\r
366             required: true,\r
367             number: true,\r
368             min: 1,\r
369           }\r
370         },\r
371         height: {\r
372           type: 'number',\r
373           rules : {\r
374             required: true,\r
375             number: true,\r
376             min: 1,\r
377           }\r
378         },\r
379         quotes: {\r
380           type: 'text',\r
381           rules : {\r
382           }\r
383         },\r
384         settings: {\r
385           type: 'text',\r
386           rules : {\r
387           }\r
388         },\r
389         created_at: {\r
390           type: 'datetime',\r
391         },\r
392         updated_at: {\r
393           type: 'datetime',\r
394         }\r
395       }\r
396     },\r
397     GroundPicture: 'ground_picture',\r
398     ground_picture: {\r
399       class_name: 'GroundPicture',\r
400       table_name: 'ground_pictures',\r
401       attributes: {\r
402         id: {\r
403           type: 'number',\r
404           primary_key: 1,\r
405           rules : {\r
406             number: true,\r
407           }\r
408         },\r
409         panel_id: {\r
410           type: 'number',\r
411           rules : {\r
412             number: true,\r
413           }\r
414         },\r
415         picture_id: {\r
416           type: 'number',\r
417           rules : {\r
418             required: true,\r
419             number: true,\r
420           }\r
421         },\r
422         caption: {\r
423           type: 'text',\r
424           rules : {\r
425           }\r
426         },\r
427         repeat: {\r
428           type: 'number',\r
429           rules : {\r
430             required: true,\r
431             number: true,\r
432             range: [0, 3],\r
433           }\r
434         },\r
435         x: {\r
436           type: 'number',\r
437           rules : {\r
438             required: true,\r
439             number: true,\r
440           }\r
441         },\r
442         y: {\r
443           type: 'number',\r
444           rules : {\r
445             required: true,\r
446             number: true,\r
447           }\r
448         },\r
449         z: {\r
450           type: 'number',\r
451           rules : {\r
452             required: true,\r
453             number: true,\r
454             min: 1,\r
455           }\r
456         },\r
457         t: {\r
458           type: 'number',\r
459           rules : {\r
460             required: true,\r
461             number: true,\r
462             min: 0,\r
463           }\r
464         },\r
465         created_at: {\r
466           type: 'datetime',\r
467         },\r
468         updated_at: {\r
469           type: 'datetime',\r
470         }\r
471       }\r
472     },\r
473     GroundColor: 'ground_color',\r
474     ground_color: {\r
475       class_name: 'GroundColor',\r
476       table_name: 'ground_colors',\r
477       attributes: {\r
478         id: {\r
479           type: 'number',\r
480           primary_key: 1,\r
481           rules : {\r
482             number: true,\r
483           }\r
484         },\r
485         panel_id: {\r
486           type: 'number',\r
487           rules : {\r
488             number: true,\r
489           }\r
490         },\r
491         caption: {\r
492           type: 'text',\r
493           rules : {\r
494           }\r
495         },\r
496         code: {\r
497           type: 'number',\r
498           rules : {\r
499             required: true,\r
500             number: true,\r
501             range: [0, 0xffffff],\r
502           }\r
503         },\r
504         orientation: {\r
505           type: 'number',\r
506           rules : {\r
507             required: true,\r
508             number: true,\r
509             range: [0, 1],\r
510           }\r
511         },\r
512         xy: {\r
513           type: 'number',\r
514           rules : {\r
515             number: true,\r
516           }\r
517         },\r
518         wh: {\r
519           type: 'number',\r
520           rules : {\r
521             number: true,\r
522           }\r
523         },\r
524         z: {\r
525           type: 'number',\r
526           rules : {\r
527             required: true,\r
528             number: true,\r
529             min: 1,\r
530           }\r
531         },\r
532         t: {\r
533           type: 'number',\r
534           rules : {\r
535             required: true,\r
536             number: true,\r
537             min: 0,\r
538           }\r
539         },\r
540         created_at: {\r
541           type: 'datetime',\r
542         },\r
543         updated_at: {\r
544           type: 'datetime',\r
545         }\r
546       }\r
547     },\r
548     WritingFormat: 'writing_format',\r
549     writing_format: {\r
550       class_name: 'WritingFormat',\r
551       table_name: 'writing_formats',\r
552       attributes: {\r
553         id: {\r
554           type: 'number',\r
555           primary_key: 1,\r
556           rules : {\r
557             number: true,\r
558           }\r
559         },\r
560         name: {\r
561           type: 'text',\r
562           rules : {\r
563             required: true,\r
564           }\r
565         },\r
566         classname: {\r
567           type: 'text',\r
568           rules : {\r
569             required: true,\r
570           }\r
571         },\r
572         caption: {\r
573           type: 'text',\r
574           rules : {\r
575             required: true,\r
576           }\r
577         },\r
578         system_picture_id: {\r
579           type: 'number',\r
580           rules : {\r
581             required: true,\r
582             number: true,\r
583           }\r
584         },\r
585         settings: {\r
586           type: 'text',\r
587           rules : {\r
588             required: true,\r
589           }\r
590         },\r
591         created_at: {\r
592           type: 'datetime',\r
593         },\r
594         updated_at: {\r
595           type: 'datetime',\r
596         }\r
597       }\r
598     },\r
599 \r
600   },\r
601   elements: [\r
602     {\r
603       name: 'panel_picture',\r
604       path_name: 'panel_pictures', \r
605       parts: []\r
606     },\r
607     {\r
608       name: 'speech_balloon',\r
609       path_name: 'circle_speech_balloon/speech_balloons', \r
610       parts: ['balloon', 'speech']\r
611     },\r
612     {\r
613       name: 'ground_picture',\r
614       path_name: 'ground_pictures', \r
615       parts: []\r
616     },\r
617     {\r
618       name: 'ground_color',\r
619       path_name: 'ground_colors', \r
620       parts: []\r
621     },\r
622   ],\r
623   forms: {\r
624     Panel: 'panel',\r
625     panel: {\r
626       attributes: {\r
627         caption: {\r
628           column: 'caption',\r
629           type: 'text',\r
630           label: {\r
631           },\r
632           options: {\r
633             row_break: true\r
634           }\r
635         },\r
636         width: {\r
637           column: 'width',\r
638           type: 'number',\r
639           label: {\r
640           },\r
641           options: {\r
642             size: 5, \r
643           },\r
644         },\r
645         height: {\r
646           column: 'height',\r
647           type: 'number',\r
648           label: {\r
649           },\r
650           options: {\r
651             size: 5, \r
652             row_break: true\r
653           }, \r
654         },\r
655         border: {\r
656           column: 'border',\r
657           type: 'number',\r
658           label: {\r
659           },\r
660           options: {\r
661             size: 5, \r
662           },\r
663         },\r
664         publish: {\r
665           column: 'publish',\r
666           type: 'select',\r
667           label: {\r
668           },\r
669           options: {\r
670             source: 'magic_number',\r
671             key: 'comic_visible_items',\r
672             size: 5, \r
673             row_break: true\r
674           }\r
675         },\r
676         id: {\r
677           column: 'id',\r
678           type: 'hidden',\r
679           label: {\r
680             type: 'hidden'\r
681           },\r
682           options: {\r
683           }\r
684         },\r
685         author_id: {\r
686           column: 'author_id',\r
687           type: 'hidden',\r
688           label: {\r
689             type: 'hidden'\r
690           },\r
691           options: {\r
692           }\r
693         },\r
694       },\r
695       fields: [\r
696         'caption',\r
697         'width',\r
698         'height',\r
699         'border',\r
700         'publish',\r
701         'id',\r
702         'author_id',\r
703       ]\r
704     },\r
705     PanelPicture: 'panel_picture',\r
706     panel_picture: {\r
707       attributes: {\r
708         caption: {\r
709           column: 'caption',\r
710           type: 'text',\r
711           label: {\r
712           },\r
713           options: {\r
714             row_break: true\r
715           }\r
716         },\r
717         x: {\r
718           column: 'x',\r
719           type: 'number',\r
720           label: {\r
721           },\r
722           options: {\r
723             size: 5, \r
724           }\r
725         },\r
726         y: {\r
727           column: 'y',\r
728           type: 'number',\r
729           label: {\r
730           },\r
731           options: {\r
732             size: 5, \r
733             row_break: true\r
734           }\r
735         },\r
736         width: {\r
737           column: 'width',\r
738           type: 'number',\r
739           label: {\r
740           },\r
741           options: {\r
742             size: 5, \r
743             row_break: true\r
744           },\r
745           helpers: {\r
746             size: {\r
747               path: 'panels/size_helper',\r
748               options: {\r
749                 class: 'panel_picture_width_tool', \r
750               }\r
751             }\r
752           },\r
753         },\r
754         height: {\r
755           column: 'height',\r
756           type: 'number',\r
757           label: {\r
758           },\r
759           options: {\r
760             size: 5, \r
761             row_break: true\r
762           }, \r
763           helpers: {\r
764             size: {\r
765               path: 'panels/size_helper',\r
766               options: {\r
767                 class: 'panel_picture_height_tool', \r
768               }\r
769             }\r
770           },\r
771         },\r
772         link: {\r
773           column: 'link',\r
774           type: 'text',\r
775           label: {\r
776           },\r
777           options: {\r
778             row_break: true\r
779           }\r
780         },\r
781         id: {\r
782           column: 'id',\r
783           type: 'hidden',\r
784           label: {\r
785             type: 'hidden'\r
786           },\r
787           options: {\r
788           }\r
789         },\r
790         panel_id: {\r
791           column: 'panel_id',\r
792           type: 'hidden',\r
793           label: {\r
794             type: 'hidden'\r
795           },\r
796           options: {\r
797           }\r
798         },\r
799         picture_id: {\r
800           column: 'picture_id',\r
801           type: 'hidden',\r
802           label: {\r
803             type: 'hidden'\r
804           },\r
805           options: {\r
806           }\r
807         },\r
808         z: {\r
809           column: 'z',\r
810           type: 'hidden',\r
811           label: {\r
812             type: 'hidden'\r
813           },\r
814           options: {\r
815           }\r
816         },\r
817         t: {\r
818           column: 't',\r
819           type: 'hidden',\r
820           label: {\r
821             type: 'hidden'\r
822           },\r
823           options: {\r
824           }\r
825         },\r
826       },\r
827       fields: [\r
828         'caption',\r
829         'x',\r
830         'y',\r
831         'width',\r
832         'height',\r
833         'link',\r
834         'id',\r
835         'panel_id',\r
836         'picture_id',\r
837         'z',\r
838         't',\r
839       ]\r
840     },\r
841     speech_balloon: {\r
842       attributes: {\r
843         'speech_balloon.id': {\r
844           column: 'id',\r
845           type: 'hidden',\r
846           label: {\r
847             type: 'hidden'\r
848           },\r
849           options: {\r
850           }\r
851         },\r
852         'speech_balloon.panel_id': {\r
853           column: 'panel_id',\r
854           type: 'hidden',\r
855           label: {\r
856             type: 'hidden'\r
857           },\r
858           options: {\r
859           }\r
860         },\r
861         'speech_balloon.speech_balloon_template_id': {\r
862           column: 'speech_balloon_template_id',\r
863           type: 'hidden',\r
864           label: {\r
865             type: 'hidden'\r
866           },\r
867           options: {\r
868           }\r
869         },\r
870         'speech_balloon.caption': {\r
871           column: 'caption',\r
872           type: 'text',\r
873           label: {\r
874           },\r
875           options: {\r
876             row_break: true\r
877           }\r
878         },\r
879         'speech_balloon.z': {\r
880           column: 'z',\r
881           type: 'hidden',\r
882           label: {\r
883             type: 'hidden'\r
884           },\r
885           options: {\r
886           }\r
887         },\r
888         'speech_balloon.t': {\r
889           column: 't',\r
890           type: 'hidden',\r
891           label: {\r
892             type: 'hidden'\r
893           },\r
894           options: {\r
895           }\r
896         },\r
897         'speech_balloon.classname': {\r
898           column: 'classname',\r
899           type: 'hidden',\r
900           label: {\r
901             type: 'hidden'\r
902           },\r
903           options: {\r
904           }\r
905         },\r
906         'speech_balloon.settings': {\r
907           column: 'settings',\r
908           type: 'hidden',\r
909           label: {\r
910             type: 'hidden'\r
911           },\r
912           options: {\r
913           }\r
914         },\r
915         'balloon.id': {\r
916           model: 'balloon',\r
917           part: 'balloon',\r
918           column: 'id',\r
919           type: 'hidden',\r
920           label: {\r
921             type: 'hidden'\r
922           },\r
923           options: {\r
924           }\r
925         },\r
926         'balloon.speech_balloon_id': {\r
927           model: 'balloon',\r
928           part: 'balloon',\r
929           column: 'speech_balloon_id',\r
930           type: 'hidden',\r
931           label: {\r
932             type: 'hidden'\r
933           },\r
934           options: {\r
935           }\r
936         },\r
937         'balloon.system_picture_id': {\r
938           model: 'balloon',\r
939           part: 'balloon',\r
940           column: 'system_picture_id',\r
941           type: 'hidden',\r
942           label: {\r
943             type: 'hidden'\r
944           },\r
945           options: {\r
946           }\r
947         },\r
948         'balloon.r': {\r
949           model: 'balloon',\r
950           part: 'balloon',\r
951           column: 'r',\r
952           type: 'number',\r
953           label: {\r
954           },\r
955           options: {\r
956             size: 5, \r
957             row_break: true\r
958           },\r
959           helpers: {\r
960             tail_angle: {\r
961               path: 'panels/tail_angle_helper',\r
962               options: {\r
963               }\r
964             }\r
965           }\r
966         },\r
967         'balloon.x': {\r
968           model: 'balloon',\r
969           part: 'balloon',\r
970           column: 'x',\r
971           type: 'number',\r
972           label: {\r
973           },\r
974           options: {\r
975             size: 5, \r
976           }\r
977         },\r
978         'balloon.y': {\r
979           model: 'balloon',\r
980           part: 'balloon',\r
981           column: 'y',\r
982           type: 'number',\r
983           label: {\r
984           },\r
985           options: {\r
986             size: 5, \r
987             row_break: true\r
988           }\r
989         },\r
990         'balloon.width': {\r
991           model: 'balloon',\r
992           part: 'balloon',\r
993           column: 'width',\r
994           type: 'number',\r
995           label: {\r
996           },\r
997           options: {\r
998             size: 5, \r
999           }\r
1000         },\r
1001         'balloon.height': {\r
1002           model: 'balloon',\r
1003           part: 'balloon',\r
1004           column: 'height',\r
1005           type: 'number',\r
1006           label: {\r
1007           },\r
1008           options: {\r
1009             size: 5, \r
1010             row_break: true\r
1011           }\r
1012         },\r
1013         'balloon.settings': {\r
1014           model: 'balloon',\r
1015           part: 'balloon',\r
1016           column: 'settings',\r
1017           type: 'hidden',\r
1018           label: {\r
1019             type: 'hidden'\r
1020           },\r
1021           options: {\r
1022           }\r
1023         },\r
1024         'speech.id': {\r
1025           model: 'speech',\r
1026           part: 'speech',\r
1027           column: 'id',\r
1028           type: 'hidden',\r
1029           label: {\r
1030             type: 'hidden'\r
1031           },\r
1032           options: {\r
1033           }\r
1034         },\r
1035         'speech.speech_balloon_id': {\r
1036           model: 'speech',\r
1037           part: 'speech',\r
1038           column: 'speech_balloon_id',\r
1039           type: 'hidden',\r
1040           label: {\r
1041             type: 'hidden'\r
1042           },\r
1043           options: {\r
1044           }\r
1045         },\r
1046         'speech.x': {\r
1047           model: 'speech',\r
1048           part: 'speech',\r
1049           column: 'x',\r
1050           type: 'hidden',\r
1051           label: {\r
1052             type: 'hidden'\r
1053           },\r
1054           options: {\r
1055           }\r
1056         },\r
1057         'speech.y': {\r
1058           model: 'speech',\r
1059           part: 'speech',\r
1060           column: 'y',\r
1061           type: 'hidden',\r
1062           label: {\r
1063             type: 'hidden'\r
1064           },\r
1065           options: {\r
1066           }\r
1067         },\r
1068         'speech.width': {\r
1069           model: 'speech',\r
1070           part: 'speech',\r
1071           column: 'width',\r
1072           type: 'hidden',\r
1073           label: {\r
1074             type: 'hidden'\r
1075           },\r
1076           options: {\r
1077           }\r
1078         },\r
1079         'speech.height': {\r
1080           model: 'speech',\r
1081           part: 'speech',\r
1082           column: 'height',\r
1083           type: 'hidden',\r
1084           label: {\r
1085             type: 'hidden'\r
1086           },\r
1087           options: {\r
1088           }\r
1089         },\r
1090         'speech.writing_format_id': {\r
1091           model: 'speech',\r
1092           part: 'speech',\r
1093           column: 'writing_format_id',\r
1094           type: 'select',\r
1095           label: {\r
1096           },\r
1097           options: {\r
1098             source: 'model',\r
1099             model: 'writing_format',\r
1100             method: 'enable_list',\r
1101             caption: 'caption'\r
1102           }\r
1103         },\r
1104         'speech.font_size': {\r
1105           model: 'speech',\r
1106           part: 'speech',\r
1107           column: 'font_size',\r
1108           type: 'select',\r
1109           label: {\r
1110           },\r
1111           options: {\r
1112             source: 'magic_number',\r
1113             key: 'speech_font_size_items',\r
1114             row_break: true\r
1115           }\r
1116         },\r
1117         'speech.text_align': {\r
1118           model: 'speech',\r
1119           part: 'speech',\r
1120           column: 'text_align',\r
1121           type: 'select',\r
1122           label: {\r
1123           },\r
1124           options: {\r
1125             source: 'magic_number',\r
1126             key: 'speech_text_align_items',\r
1127           }\r
1128         },\r
1129         'speech.quotes': {\r
1130           model: 'speech',\r
1131           part: 'speech',\r
1132           column: 'quotes',\r
1133           type: 'text',\r
1134           label: {\r
1135           },\r
1136           options: {\r
1137             size: 5, \r
1138           }\r
1139         },\r
1140         'speech.content': {\r
1141           model: 'speech',\r
1142           part: 'speech',\r
1143           column: 'content',\r
1144           type: 'text_area',\r
1145           label: {\r
1146             row_break: true\r
1147           },\r
1148           options: {\r
1149             size: '45x5', \r
1150           }\r
1151         },\r
1152         'speech.fore_color': {\r
1153           model: 'speech',\r
1154           part: 'speech',\r
1155           column: 'fore_color',\r
1156           type: 'hidden',\r
1157           label: {\r
1158             row_break: true\r
1159           },\r
1160           options: {\r
1161           },\r
1162           helpers: {\r
1163             color: {\r
1164               path: 'panels/color_helper',\r
1165               options: {\r
1166               },\r
1167               wrapper: 'speech-fore_color-wrap'\r
1168             }\r
1169           }\r
1170         },\r
1171         'speech.settings': {\r
1172           model: 'speech',\r
1173           part: 'speech',\r
1174           column: 'settings',\r
1175           type: 'hidden',\r
1176           label: {\r
1177             type: 'hidden'\r
1178           },\r
1179           options: {\r
1180           }\r
1181         },\r
1182       },\r
1183     },\r
1184     CircleSpeechBalloon: 'circle_speech_balloon',\r
1185     circle_speech_balloon: {\r
1186       base: 'speech_balloon',\r
1187       attributes: {\r
1188       },\r
1189       fields: [\r
1190           'speech_balloon.caption',\r
1191           'balloon.r',\r
1192           'balloon.x',\r
1193           'balloon.y',\r
1194           'balloon.width',\r
1195           'balloon.height',\r
1196           'balloon.id',\r
1197           'balloon.speech_balloon_id',\r
1198           'balloon.system_picture_id',\r
1199           'balloon.settings',\r
1200           'speech.writing_format_id',\r
1201           'speech.font_size',\r
1202           'speech.text_align',\r
1203           'speech.quotes',\r
1204           'speech.content',\r
1205           'speech.fore_color',\r
1206           'speech.id',\r
1207           'speech.speech_balloon_id',\r
1208           'speech.x',\r
1209           'speech.y',\r
1210           'speech.width',\r
1211           'speech.height',\r
1212           'speech.settings',\r
1213           'speech_balloon.id',\r
1214           'speech_balloon.panel_id',\r
1215           'speech_balloon.speech_balloon_template_id',\r
1216           'speech_balloon.classname',\r
1217           'speech_balloon.z',\r
1218           'speech_balloon.t',\r
1219           'speech_balloon.settings',\r
1220       ]\r
1221     },\r
1222     PlainSpeechBalloon: 'plain_speech_balloon',\r
1223     plain_speech_balloon: {\r
1224       base: 'speech_balloon',\r
1225       attributes: {\r
1226         'balloon.r': {\r
1227           model: 'balloon',\r
1228           part: 'balloon',\r
1229           column: 'r',\r
1230           type: 'hidden',\r
1231           label: {\r
1232             type: 'hidden'\r
1233           },\r
1234           options: {\r
1235           },\r
1236         },\r
1237       },\r
1238       fields: [\r
1239         'speech_balloon.caption',\r
1240         'balloon.r',\r
1241         'balloon.x',\r
1242         'balloon.y',\r
1243         'balloon.width',\r
1244         'balloon.height',\r
1245         'balloon.id',\r
1246         'balloon.speech_balloon_id',\r
1247         'balloon.system_picture_id',\r
1248         'balloon.settings',\r
1249         'speech.writing_format_id',\r
1250         'speech.font_size',\r
1251         'speech.text_align',\r
1252         'speech.quotes',\r
1253         'speech.content',\r
1254         'speech.fore_color',\r
1255         'speech.id',\r
1256         'speech.speech_balloon_id',\r
1257         'speech.x',\r
1258         'speech.y',\r
1259         'speech.width',\r
1260         'speech.height',\r
1261         'speech.settings',\r
1262         'speech_balloon.id',\r
1263         'speech_balloon.panel_id',\r
1264         'speech_balloon.speech_balloon_template_id',\r
1265         'speech_balloon.classname',\r
1266         'speech_balloon.z',\r
1267         'speech_balloon.t',\r
1268         'speech_balloon.settings',\r
1269       ]\r
1270     },\r
1271     SquareSpeechBalloon: 'square_speech_balloon',\r
1272     square_speech_balloon: {\r
1273       base: 'speech_balloon',\r
1274       attributes: {\r
1275         'balloon.r': {\r
1276           model: 'balloon',\r
1277           part: 'balloon',\r
1278           column: 'r',\r
1279           type: 'hidden',\r
1280           label: {\r
1281             type: 'hidden'\r
1282           },\r
1283           options: {\r
1284           },\r
1285         },\r
1286       },\r
1287       fields: [\r
1288         'speech_balloon.caption',\r
1289         'balloon.r',\r
1290         'balloon.x',\r
1291         'balloon.y',\r
1292         'balloon.width',\r
1293         'balloon.height',\r
1294         'balloon.id',\r
1295         'balloon.speech_balloon_id',\r
1296         'balloon.system_picture_id',\r
1297         'balloon.settings',\r
1298         'speech.writing_format_id',\r
1299         'speech.font_size',\r
1300         'speech.text_align',\r
1301         'speech.quotes',\r
1302         'speech.content',\r
1303         'speech.fore_color',\r
1304         'speech.id',\r
1305         'speech.speech_balloon_id',\r
1306         'speech.x',\r
1307         'speech.y',\r
1308         'speech.width',\r
1309         'speech.height',\r
1310         'speech.settings',\r
1311         'speech_balloon.id',\r
1312         'speech_balloon.panel_id',\r
1313         'speech_balloon.speech_balloon_template_id',\r
1314         'speech_balloon.classname',\r
1315         'speech_balloon.z',\r
1316         'speech_balloon.t',\r
1317         'speech_balloon.settings',\r
1318       ]\r
1319     },\r
1320     GroundPicture: 'ground_picture',\r
1321     ground_picture: {\r
1322       attributes: {\r
1323         id: {\r
1324           column: 'id',\r
1325           type: 'hidden',\r
1326           label: {\r
1327             type: 'hidden'\r
1328           },\r
1329           options: {\r
1330           }\r
1331         },\r
1332         panel_id: {\r
1333           column: 'panel_id',\r
1334           type: 'hidden',\r
1335           label: {\r
1336             type: 'hidden'\r
1337           },\r
1338           options: {\r
1339           }\r
1340         },\r
1341         picture_id: {\r
1342           column: 'picture_id',\r
1343           type: 'hidden',\r
1344           label: {\r
1345             type: 'hidden'\r
1346           },\r
1347           options: {\r
1348           }\r
1349         },\r
1350         caption: {\r
1351           column: 'caption',\r
1352           type: 'text',\r
1353           label: {\r
1354           },\r
1355           options: {\r
1356             row_break: true\r
1357           }\r
1358         },\r
1359         repeat: {\r
1360           column: 'repeat',\r
1361           type: 'select',\r
1362           label: {\r
1363           },\r
1364           options: {\r
1365             source: 'magic_number',\r
1366             key: 'ground_picture_repeat_items',\r
1367             row_break: true\r
1368           }\r
1369         },\r
1370         x: {\r
1371           column: 'x',\r
1372           type: 'number',\r
1373           label: {\r
1374           },\r
1375           options: {\r
1376             size: 5, \r
1377           }\r
1378         },\r
1379         y: {\r
1380           column: 'y',\r
1381           type: 'number',\r
1382           label: {\r
1383           },\r
1384           options: {\r
1385             size: 5, \r
1386             row_break: true\r
1387           }\r
1388         },\r
1389         z: {\r
1390           column: 'z',\r
1391           type: 'hidden',\r
1392           label: {\r
1393             type: 'hidden'\r
1394           },\r
1395           options: {\r
1396           }\r
1397         },\r
1398         t: {\r
1399           column: 't',\r
1400           type: 'hidden',\r
1401           label: {\r
1402             type: 'hidden'\r
1403           },\r
1404           options: {\r
1405           }\r
1406         },\r
1407       },\r
1408       fields: [\r
1409         'caption',\r
1410         'repeat',\r
1411         'x',\r
1412         'y',\r
1413         'z',\r
1414         't',\r
1415         'id',\r
1416         'panel_id',\r
1417         'picture_id',\r
1418       ]\r
1419     },\r
1420     GroundColor: 'ground_color',\r
1421     ground_color: {\r
1422       attributes: {\r
1423         id: {\r
1424           column: 'id',\r
1425           type: 'hidden',\r
1426           label: {\r
1427             type: 'hidden'\r
1428           },\r
1429           options: {\r
1430           }\r
1431         },\r
1432         panel_id: {\r
1433           column: 'panel_id',\r
1434           type: 'hidden',\r
1435           label: {\r
1436             type: 'hidden'\r
1437           },\r
1438           options: {\r
1439           }\r
1440         },\r
1441         caption: {\r
1442           column: 'caption',\r
1443           type: 'text',\r
1444           label: {\r
1445           },\r
1446           options: {\r
1447             row_break: true\r
1448           }\r
1449         },\r
1450         code: {\r
1451           column: 'code',\r
1452           type: 'hidden',\r
1453           label: {\r
1454             row_break: true\r
1455           },\r
1456           options: {\r
1457             row_break: true\r
1458           }\r
1459           helpers: {\r
1460             color: {\r
1461               path: 'panels/color_helper',\r
1462               options: {\r
1463               },\r
1464               wrapper: 'ground_color-code-wrap'\r
1465             }\r
1466           },\r
1467         },\r
1468         orientation: {\r
1469           column: 'orientation',\r
1470           type: 'select',\r
1471           label: {\r
1472           },\r
1473           options: {\r
1474             source: 'magic_number',\r
1475             key: 'ground_color_orientation_items',\r
1476             row_break: true\r
1477           }\r
1478         },\r
1479         xy: {\r
1480           column: 'xy',\r
1481           type: 'number',\r
1482           label: {\r
1483           },\r
1484           options: {\r
1485             size: 5, \r
1486           }\r
1487         },\r
1488         wh: {\r
1489           column: 'wh',\r
1490           type: 'number',\r
1491           label: {\r
1492           },\r
1493           options: {\r
1494             size: 5, \r
1495             row_break: true\r
1496           }\r
1497         },\r
1498         z: {\r
1499           column: 'z',\r
1500           type: 'hidden',\r
1501           label: {\r
1502             type: 'hidden'\r
1503           },\r
1504           options: {\r
1505           }\r
1506         },\r
1507         t: {\r
1508           column: 't',\r
1509           type: 'hidden',\r
1510           label: {\r
1511             type: 'hidden'\r
1512           },\r
1513           options: {\r
1514           }\r
1515         },\r
1516       },\r
1517       fields: [\r
1518         'id',\r
1519         'panel_id',\r
1520         'caption',\r
1521         'code',\r
1522         'orientation',\r
1523         'xy',\r
1524         'wh',\r
1525         'z',\r
1526         't',\r
1527       ]\r
1528     }\r
1529   },\r
1530   locales: {\r
1531     ja: {\r
1532     }\r
1533   },\r
1534 }\r
1535 \r
1536 @repeat_texts = ['repeat', 'repeat-x', 'repeat-y', 'no-repeat']\r
1537 \r
1538 @text_align_texts = ['left', 'left', 'right', 'center']\r
1539 \r