OSDN Git Service

t#32066:validate_forms
[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         z: {\r
505           type: 'number',\r
506           rules : {\r
507             required: true,\r
508             number: true,\r
509             min: 1,\r
510           }\r
511         },\r
512         t: {\r
513           type: 'number',\r
514           rules : {\r
515             required: true,\r
516             number: true,\r
517             min: 0,\r
518           }\r
519         },\r
520         created_at: {\r
521           type: 'datetime',\r
522         },\r
523         updated_at: {\r
524           type: 'datetime',\r
525         }\r
526       }\r
527     },\r
528     WritingFormat: 'writing_format',\r
529     writing_format: {\r
530       class_name: 'WritingFormat',\r
531       table_name: 'writing_formats',\r
532       attributes: {\r
533         id: {\r
534           type: 'number',\r
535           primary_key: 1,\r
536           rules : {\r
537             number: true,\r
538           }\r
539         },\r
540         name: {\r
541           type: 'text',\r
542           rules : {\r
543             required: true,\r
544           }\r
545         },\r
546         classname: {\r
547           type: 'text',\r
548           rules : {\r
549             required: true,\r
550           }\r
551         },\r
552         caption: {\r
553           type: 'text',\r
554           rules : {\r
555             required: true,\r
556           }\r
557         },\r
558         system_picture_id: {\r
559           type: 'number',\r
560           rules : {\r
561             required: true,\r
562             number: true,\r
563           }\r
564         },\r
565         settings: {\r
566           type: 'text',\r
567           rules : {\r
568             required: true,\r
569           }\r
570         },\r
571         created_at: {\r
572           type: 'datetime',\r
573         },\r
574         updated_at: {\r
575           type: 'datetime',\r
576         }\r
577       }\r
578     },\r
579 \r
580   },\r
581   elements: [\r
582     {\r
583       name: 'panel_picture',\r
584       path_name: 'panel_pictures', \r
585       parts: []\r
586     },\r
587     {\r
588       name: 'speech_balloon',\r
589       path_name: 'circle_speech_balloon/speech_balloons', \r
590       parts: ['balloon', 'speech']\r
591     },\r
592     {\r
593       name: 'ground_picture',\r
594       path_name: 'ground_pictures', \r
595       parts: []\r
596     },\r
597     {\r
598       name: 'ground_color',\r
599       path_name: 'ground_colors', \r
600       parts: []\r
601     },\r
602   ],\r
603   forms: {\r
604     Panel: 'panel',\r
605     panel: {\r
606       attributes: {\r
607         caption: {\r
608           column: 'caption',\r
609           type: 'text',\r
610           label: {\r
611           },\r
612           options: {\r
613             row_break: true\r
614           }\r
615         },\r
616         width: {\r
617           column: 'width',\r
618           type: 'number',\r
619           label: {\r
620           },\r
621           options: {\r
622             size: 5, \r
623           },\r
624         },\r
625         height: {\r
626           column: 'height',\r
627           type: 'number',\r
628           label: {\r
629           },\r
630           options: {\r
631             size: 5, \r
632             row_break: true\r
633           }, \r
634         },\r
635         border: {\r
636           column: 'border',\r
637           type: 'number',\r
638           label: {\r
639           },\r
640           options: {\r
641             size: 5, \r
642           },\r
643         },\r
644         publish: {\r
645           column: 'publish',\r
646           type: 'select',\r
647           label: {\r
648           },\r
649           options: {\r
650             source: 'magic_number',\r
651             key: 'comic_visible_items',\r
652             size: 5, \r
653             row_break: true\r
654           }\r
655         },\r
656         id: {\r
657           column: 'id',\r
658           type: 'hidden',\r
659           label: {\r
660             type: 'hidden'\r
661           },\r
662           options: {\r
663           }\r
664         },\r
665         author_id: {\r
666           column: 'author_id',\r
667           type: 'hidden',\r
668           label: {\r
669             type: 'hidden'\r
670           },\r
671           options: {\r
672           }\r
673         },\r
674       },\r
675       fields: [\r
676         'caption',\r
677         'width',\r
678         'height',\r
679         'border',\r
680         'publish',\r
681         'id',\r
682         'author_id',\r
683       ]\r
684     },\r
685     PanelPicture: 'panel_picture',\r
686     panel_picture: {\r
687       attributes: {\r
688         caption: {\r
689           column: 'caption',\r
690           type: 'text',\r
691           label: {\r
692           },\r
693           options: {\r
694             row_break: true\r
695           }\r
696         },\r
697         x: {\r
698           column: 'x',\r
699           type: 'number',\r
700           label: {\r
701           },\r
702           options: {\r
703             size: 5, \r
704           }\r
705         },\r
706         y: {\r
707           column: 'y',\r
708           type: 'number',\r
709           label: {\r
710           },\r
711           options: {\r
712             size: 5, \r
713             row_break: true\r
714           }\r
715         },\r
716         width: {\r
717           column: 'width',\r
718           type: 'number',\r
719           label: {\r
720           },\r
721           options: {\r
722             size: 5, \r
723             row_break: true\r
724           },\r
725           helpers: {\r
726             size: {\r
727               path: 'panels/size_helper',\r
728               options: {\r
729                 class: 'panel_picture_width_tool', \r
730               }\r
731             }\r
732           },\r
733         },\r
734         height: {\r
735           column: 'height',\r
736           type: 'number',\r
737           label: {\r
738           },\r
739           options: {\r
740             size: 5, \r
741             row_break: true\r
742           }, \r
743           helpers: {\r
744             size: {\r
745               path: 'panels/size_helper',\r
746               options: {\r
747                 class: 'panel_picture_height_tool', \r
748               }\r
749             }\r
750           },\r
751         },\r
752         link: {\r
753           column: 'link',\r
754           type: 'text',\r
755           label: {\r
756           },\r
757           options: {\r
758             row_break: true\r
759           }\r
760         },\r
761         id: {\r
762           column: 'id',\r
763           type: 'hidden',\r
764           label: {\r
765             type: 'hidden'\r
766           },\r
767           options: {\r
768           }\r
769         },\r
770         panel_id: {\r
771           column: 'panel_id',\r
772           type: 'hidden',\r
773           label: {\r
774             type: 'hidden'\r
775           },\r
776           options: {\r
777           }\r
778         },\r
779         picture_id: {\r
780           column: 'picture_id',\r
781           type: 'hidden',\r
782           label: {\r
783             type: 'hidden'\r
784           },\r
785           options: {\r
786           }\r
787         },\r
788         z: {\r
789           column: 'z',\r
790           type: 'hidden',\r
791           label: {\r
792             type: 'hidden'\r
793           },\r
794           options: {\r
795           }\r
796         },\r
797         t: {\r
798           column: 't',\r
799           type: 'hidden',\r
800           label: {\r
801             type: 'hidden'\r
802           },\r
803           options: {\r
804           }\r
805         },\r
806       },\r
807       fields: [\r
808         'caption',\r
809         'x',\r
810         'y',\r
811         'width',\r
812         'height',\r
813         'link',\r
814         'id',\r
815         'panel_id',\r
816         'picture_id',\r
817         'z',\r
818         't',\r
819       ]\r
820     },\r
821     speech_balloon: {\r
822       attributes: {\r
823         'speech_balloon.id': {\r
824           column: 'id',\r
825           type: 'hidden',\r
826           label: {\r
827             type: 'hidden'\r
828           },\r
829           options: {\r
830           }\r
831         },\r
832         'speech_balloon.panel_id': {\r
833           column: 'panel_id',\r
834           type: 'hidden',\r
835           label: {\r
836             type: 'hidden'\r
837           },\r
838           options: {\r
839           }\r
840         },\r
841         'speech_balloon.speech_balloon_template_id': {\r
842           column: 'speech_balloon_template_id',\r
843           type: 'hidden',\r
844           label: {\r
845             type: 'hidden'\r
846           },\r
847           options: {\r
848           }\r
849         },\r
850         'speech_balloon.caption': {\r
851           column: 'caption',\r
852           type: 'text',\r
853           label: {\r
854           },\r
855           options: {\r
856             row_break: true\r
857           }\r
858         },\r
859         'speech_balloon.z': {\r
860           column: 'z',\r
861           type: 'hidden',\r
862           label: {\r
863             type: 'hidden'\r
864           },\r
865           options: {\r
866           }\r
867         },\r
868         'speech_balloon.t': {\r
869           column: 't',\r
870           type: 'hidden',\r
871           label: {\r
872             type: 'hidden'\r
873           },\r
874           options: {\r
875           }\r
876         },\r
877         'speech_balloon.classname': {\r
878           column: 'classname',\r
879           type: 'hidden',\r
880           label: {\r
881             type: 'hidden'\r
882           },\r
883           options: {\r
884           }\r
885         },\r
886         'speech_balloon.settings': {\r
887           column: 'settings',\r
888           type: 'hidden',\r
889           label: {\r
890             type: 'hidden'\r
891           },\r
892           options: {\r
893           }\r
894         },\r
895         'balloon.id': {\r
896           model: 'balloon',\r
897           part: 'balloon',\r
898           column: 'id',\r
899           type: 'hidden',\r
900           label: {\r
901             type: 'hidden'\r
902           },\r
903           options: {\r
904           }\r
905         },\r
906         'balloon.speech_balloon_id': {\r
907           model: 'balloon',\r
908           part: 'balloon',\r
909           column: 'speech_balloon_id',\r
910           type: 'hidden',\r
911           label: {\r
912             type: 'hidden'\r
913           },\r
914           options: {\r
915           }\r
916         },\r
917         'balloon.system_picture_id': {\r
918           model: 'balloon',\r
919           part: 'balloon',\r
920           column: 'system_picture_id',\r
921           type: 'hidden',\r
922           label: {\r
923             type: 'hidden'\r
924           },\r
925           options: {\r
926           }\r
927         },\r
928         'balloon.r': {\r
929           model: 'balloon',\r
930           part: 'balloon',\r
931           column: 'r',\r
932           type: 'number',\r
933           label: {\r
934           },\r
935           options: {\r
936             size: 5, \r
937             row_break: true\r
938           },\r
939           helpers: {\r
940             tail_angle: {\r
941               path: 'panels/tail_angle_helper',\r
942               options: {\r
943               }\r
944             }\r
945           }\r
946         },\r
947         'balloon.x': {\r
948           model: 'balloon',\r
949           part: 'balloon',\r
950           column: 'x',\r
951           type: 'number',\r
952           label: {\r
953           },\r
954           options: {\r
955             size: 5, \r
956           }\r
957         },\r
958         'balloon.y': {\r
959           model: 'balloon',\r
960           part: 'balloon',\r
961           column: 'y',\r
962           type: 'number',\r
963           label: {\r
964           },\r
965           options: {\r
966             size: 5, \r
967             row_break: true\r
968           }\r
969         },\r
970         'balloon.width': {\r
971           model: 'balloon',\r
972           part: 'balloon',\r
973           column: 'width',\r
974           type: 'number',\r
975           label: {\r
976           },\r
977           options: {\r
978             size: 5, \r
979           }\r
980         },\r
981         'balloon.height': {\r
982           model: 'balloon',\r
983           part: 'balloon',\r
984           column: 'height',\r
985           type: 'number',\r
986           label: {\r
987           },\r
988           options: {\r
989             size: 5, \r
990             row_break: true\r
991           }\r
992         },\r
993         'balloon.settings': {\r
994           model: 'balloon',\r
995           part: 'balloon',\r
996           column: 'settings',\r
997           type: 'hidden',\r
998           label: {\r
999             type: 'hidden'\r
1000           },\r
1001           options: {\r
1002           }\r
1003         },\r
1004         'speech.id': {\r
1005           model: 'speech',\r
1006           part: 'speech',\r
1007           column: 'id',\r
1008           type: 'hidden',\r
1009           label: {\r
1010             type: 'hidden'\r
1011           },\r
1012           options: {\r
1013           }\r
1014         },\r
1015         'speech.speech_balloon_id': {\r
1016           model: 'speech',\r
1017           part: 'speech',\r
1018           column: 'speech_balloon_id',\r
1019           type: 'hidden',\r
1020           label: {\r
1021             type: 'hidden'\r
1022           },\r
1023           options: {\r
1024           }\r
1025         },\r
1026         'speech.x': {\r
1027           model: 'speech',\r
1028           part: 'speech',\r
1029           column: 'x',\r
1030           type: 'hidden',\r
1031           label: {\r
1032             type: 'hidden'\r
1033           },\r
1034           options: {\r
1035           }\r
1036         },\r
1037         'speech.y': {\r
1038           model: 'speech',\r
1039           part: 'speech',\r
1040           column: 'y',\r
1041           type: 'hidden',\r
1042           label: {\r
1043             type: 'hidden'\r
1044           },\r
1045           options: {\r
1046           }\r
1047         },\r
1048         'speech.width': {\r
1049           model: 'speech',\r
1050           part: 'speech',\r
1051           column: 'width',\r
1052           type: 'hidden',\r
1053           label: {\r
1054             type: 'hidden'\r
1055           },\r
1056           options: {\r
1057           }\r
1058         },\r
1059         'speech.height': {\r
1060           model: 'speech',\r
1061           part: 'speech',\r
1062           column: 'height',\r
1063           type: 'hidden',\r
1064           label: {\r
1065             type: 'hidden'\r
1066           },\r
1067           options: {\r
1068           }\r
1069         },\r
1070         'speech.writing_format_id': {\r
1071           model: 'speech',\r
1072           part: 'speech',\r
1073           column: 'writing_format_id',\r
1074           type: 'select',\r
1075           label: {\r
1076           },\r
1077           options: {\r
1078             source: 'model',\r
1079             model: 'writing_format',\r
1080             method: 'enable_list',\r
1081             caption: 'caption'\r
1082           }\r
1083         },\r
1084         'speech.font_size': {\r
1085           model: 'speech',\r
1086           part: 'speech',\r
1087           column: 'font_size',\r
1088           type: 'select',\r
1089           label: {\r
1090           },\r
1091           options: {\r
1092             source: 'magic_number',\r
1093             key: 'speech_font_size_items',\r
1094             row_break: true\r
1095           }\r
1096         },\r
1097         'speech.text_align': {\r
1098           model: 'speech',\r
1099           part: 'speech',\r
1100           column: 'text_align',\r
1101           type: 'select',\r
1102           label: {\r
1103           },\r
1104           options: {\r
1105             source: 'magic_number',\r
1106             key: 'speech_text_align_items',\r
1107           }\r
1108         },\r
1109         'speech.quotes': {\r
1110           model: 'speech',\r
1111           part: 'speech',\r
1112           column: 'quotes',\r
1113           type: 'text',\r
1114           label: {\r
1115           },\r
1116           options: {\r
1117             size: 5, \r
1118           }\r
1119         },\r
1120         'speech.content': {\r
1121           model: 'speech',\r
1122           part: 'speech',\r
1123           column: 'content',\r
1124           type: 'text_area',\r
1125           label: {\r
1126             row_break: true\r
1127           },\r
1128           options: {\r
1129             size: '45x5', \r
1130           }\r
1131         },\r
1132         'speech.fore_color': {\r
1133           model: 'speech',\r
1134           part: 'speech',\r
1135           column: 'fore_color',\r
1136           type: 'hidden',\r
1137           label: {\r
1138             row_break: true\r
1139           },\r
1140           options: {\r
1141           },\r
1142           helpers: {\r
1143             color: {\r
1144               path: 'panels/color_helper',\r
1145               options: {\r
1146               },\r
1147               wrapper: 'speech-fore_color-wrap'\r
1148             }\r
1149           }\r
1150         },\r
1151         'speech.settings': {\r
1152           model: 'speech',\r
1153           part: 'speech',\r
1154           column: 'settings',\r
1155           type: 'hidden',\r
1156           label: {\r
1157             type: 'hidden'\r
1158           },\r
1159           options: {\r
1160           }\r
1161         },\r
1162       },\r
1163     },\r
1164     CircleSpeechBalloon: 'circle_speech_balloon',\r
1165     circle_speech_balloon: {\r
1166       base: 'speech_balloon',\r
1167       attributes: {\r
1168       },\r
1169       fields: [\r
1170           'speech_balloon.caption',\r
1171           'balloon.r',\r
1172           'balloon.x',\r
1173           'balloon.y',\r
1174           'balloon.width',\r
1175           'balloon.height',\r
1176           'balloon.id',\r
1177           'balloon.speech_balloon_id',\r
1178           'balloon.system_picture_id',\r
1179           'balloon.settings',\r
1180           'speech.writing_format_id',\r
1181           'speech.font_size',\r
1182           'speech.text_align',\r
1183           'speech.quotes',\r
1184           'speech.content',\r
1185           'speech.fore_color',\r
1186           'speech.id',\r
1187           'speech.speech_balloon_id',\r
1188           'speech.x',\r
1189           'speech.y',\r
1190           'speech.width',\r
1191           'speech.height',\r
1192           'speech.settings',\r
1193           'speech_balloon.id',\r
1194           'speech_balloon.panel_id',\r
1195           'speech_balloon.speech_balloon_template_id',\r
1196           'speech_balloon.classname',\r
1197           'speech_balloon.z',\r
1198           'speech_balloon.t',\r
1199           'speech_balloon.settings',\r
1200       ]\r
1201     },\r
1202     PlainSpeechBalloon: 'plain_speech_balloon',\r
1203     plain_speech_balloon: {\r
1204       base: 'speech_balloon',\r
1205       attributes: {\r
1206         'balloon.r': {\r
1207           model: 'balloon',\r
1208           part: 'balloon',\r
1209           column: 'r',\r
1210           type: 'hidden',\r
1211           label: {\r
1212             type: 'hidden'\r
1213           },\r
1214           options: {\r
1215           },\r
1216         },\r
1217       },\r
1218       fields: [\r
1219         'speech_balloon.caption',\r
1220         'balloon.r',\r
1221         'balloon.x',\r
1222         'balloon.y',\r
1223         'balloon.width',\r
1224         'balloon.height',\r
1225         'balloon.id',\r
1226         'balloon.speech_balloon_id',\r
1227         'balloon.system_picture_id',\r
1228         'balloon.settings',\r
1229         'speech.writing_format_id',\r
1230         'speech.font_size',\r
1231         'speech.text_align',\r
1232         'speech.quotes',\r
1233         'speech.content',\r
1234         'speech.fore_color',\r
1235         'speech.id',\r
1236         'speech.speech_balloon_id',\r
1237         'speech.x',\r
1238         'speech.y',\r
1239         'speech.width',\r
1240         'speech.height',\r
1241         'speech.settings',\r
1242         'speech_balloon.id',\r
1243         'speech_balloon.panel_id',\r
1244         'speech_balloon.speech_balloon_template_id',\r
1245         'speech_balloon.classname',\r
1246         'speech_balloon.z',\r
1247         'speech_balloon.t',\r
1248         'speech_balloon.settings',\r
1249       ]\r
1250     },\r
1251     SquareSpeechBalloon: 'square_speech_balloon',\r
1252     square_speech_balloon: {\r
1253       base: 'speech_balloon',\r
1254       attributes: {\r
1255         'balloon.r': {\r
1256           model: 'balloon',\r
1257           part: 'balloon',\r
1258           column: 'r',\r
1259           type: 'hidden',\r
1260           label: {\r
1261             type: 'hidden'\r
1262           },\r
1263           options: {\r
1264           },\r
1265         },\r
1266       },\r
1267       fields: [\r
1268         'speech_balloon.caption',\r
1269         'balloon.r',\r
1270         'balloon.x',\r
1271         'balloon.y',\r
1272         'balloon.width',\r
1273         'balloon.height',\r
1274         'balloon.id',\r
1275         'balloon.speech_balloon_id',\r
1276         'balloon.system_picture_id',\r
1277         'balloon.settings',\r
1278         'speech.writing_format_id',\r
1279         'speech.font_size',\r
1280         'speech.text_align',\r
1281         'speech.quotes',\r
1282         'speech.content',\r
1283         'speech.fore_color',\r
1284         'speech.id',\r
1285         'speech.speech_balloon_id',\r
1286         'speech.x',\r
1287         'speech.y',\r
1288         'speech.width',\r
1289         'speech.height',\r
1290         'speech.settings',\r
1291         'speech_balloon.id',\r
1292         'speech_balloon.panel_id',\r
1293         'speech_balloon.speech_balloon_template_id',\r
1294         'speech_balloon.classname',\r
1295         'speech_balloon.z',\r
1296         'speech_balloon.t',\r
1297         'speech_balloon.settings',\r
1298       ]\r
1299     },\r
1300     GroundPicture: 'ground_picture',\r
1301     ground_picture: {\r
1302       attributes: {\r
1303         id: {\r
1304           column: 'id',\r
1305           type: 'hidden',\r
1306           label: {\r
1307             type: 'hidden'\r
1308           },\r
1309           options: {\r
1310           }\r
1311         },\r
1312         panel_id: {\r
1313           column: 'panel_id',\r
1314           type: 'hidden',\r
1315           label: {\r
1316             type: 'hidden'\r
1317           },\r
1318           options: {\r
1319           }\r
1320         },\r
1321         picture_id: {\r
1322           column: 'picture_id',\r
1323           type: 'hidden',\r
1324           label: {\r
1325             type: 'hidden'\r
1326           },\r
1327           options: {\r
1328           }\r
1329         },\r
1330         caption: {\r
1331           column: 'caption',\r
1332           type: 'text',\r
1333           label: {\r
1334           },\r
1335           options: {\r
1336             row_break: true\r
1337           }\r
1338         },\r
1339         repeat: {\r
1340           column: 'repeat',\r
1341           type: 'select',\r
1342           label: {\r
1343           },\r
1344           options: {\r
1345             source: 'magic_number',\r
1346             key: 'ground_picture_repeat_items',\r
1347             row_break: true\r
1348           }\r
1349         },\r
1350         x: {\r
1351           column: 'x',\r
1352           type: 'number',\r
1353           label: {\r
1354           },\r
1355           options: {\r
1356             size: 5, \r
1357           }\r
1358         },\r
1359         y: {\r
1360           column: 'y',\r
1361           type: 'number',\r
1362           label: {\r
1363           },\r
1364           options: {\r
1365             size: 5, \r
1366             row_break: true\r
1367           }\r
1368         },\r
1369         z: {\r
1370           column: 'z',\r
1371           type: 'hidden',\r
1372           label: {\r
1373             type: 'hidden'\r
1374           },\r
1375           options: {\r
1376           }\r
1377         },\r
1378         t: {\r
1379           column: 't',\r
1380           type: 'hidden',\r
1381           label: {\r
1382             type: 'hidden'\r
1383           },\r
1384           options: {\r
1385           }\r
1386         },\r
1387       },\r
1388       fields: [\r
1389         'caption',\r
1390         'repeat',\r
1391         'x',\r
1392         'y',\r
1393         'z',\r
1394         't',\r
1395         'id',\r
1396         'panel_id',\r
1397         'picture_id',\r
1398       ]\r
1399     },\r
1400     GroundColor: 'ground_color',\r
1401     ground_color: {\r
1402       attributes: {\r
1403         id: {\r
1404           column: 'id',\r
1405           type: 'hidden',\r
1406           label: {\r
1407             type: 'hidden'\r
1408           },\r
1409           options: {\r
1410           }\r
1411         },\r
1412         panel_id: {\r
1413           column: 'panel_id',\r
1414           type: 'hidden',\r
1415           label: {\r
1416             type: 'hidden'\r
1417           },\r
1418           options: {\r
1419           }\r
1420         },\r
1421         caption: {\r
1422           column: 'caption',\r
1423           type: 'text',\r
1424           label: {\r
1425           },\r
1426           options: {\r
1427             row_break: true\r
1428           }\r
1429         },\r
1430         code: {\r
1431           column: 'code',\r
1432           type: 'hidden',\r
1433           label: {\r
1434             row_break: true\r
1435           },\r
1436           options: {\r
1437             row_break: true\r
1438           }\r
1439           helpers: {\r
1440             color: {\r
1441               path: 'panels/color_helper',\r
1442               options: {\r
1443               },\r
1444               wrapper: 'ground_color-code-wrap'\r
1445             }\r
1446           },\r
1447         },\r
1448         z: {\r
1449           column: 'z',\r
1450           type: 'hidden',\r
1451           label: {\r
1452             type: 'hidden'\r
1453           },\r
1454           options: {\r
1455           }\r
1456         },\r
1457         t: {\r
1458           column: 't',\r
1459           type: 'hidden',\r
1460           label: {\r
1461             type: 'hidden'\r
1462           },\r
1463           options: {\r
1464           }\r
1465         },\r
1466       },\r
1467       fields: [\r
1468         'id',\r
1469         'panel_id',\r
1470         'caption',\r
1471         'code',\r
1472         'z',\r
1473         't',\r
1474       ]\r
1475     }\r
1476   },\r
1477   locales: {\r
1478     ja: {\r
1479     }\r
1480   },\r
1481 }\r
1482 \r
1483 @repeat_texts = ['repeat', 'repeat-x', 'repeat-y', 'no-repeat']\r
1484 \r
1485 @text_align_texts = ['left', 'left', 'right', 'center']\r
1486 \r