OSDN Git Service

separate manifest
[pettanr/pettanr.git] / lib / editor / panel_dock / board / scenario.rb
1 module Editor
2   module EditorModule
3     module DockModule
4       class ScenarioBoard < Board
5         attr_accessor :element
6         
7         def initialize parent, index, name, element
8           super parent, index, name
9           @element = element
10         end
11         
12       end
13       
14       module TabModule
15         class ScenarioBoardLabel < BoardLabel
16           def template_file_name
17             'board_label'
18           end
19           
20           def face_template_name
21             self.element.path_name + '/element_face'
22           end
23           
24         end
25         
26         class ScenarioBoardBody < BoardBody
27           attr_accessor :bucket
28           
29           def initialize parent
30             super
31             @bucket = ScenarioBucket.new self, self.board.element
32           end
33           
34           def template_name
35             @bucket.template_name
36           end
37           
38           def template_options
39             @bucket.template_options
40           end
41           
42         end
43         
44       end
45     end
46   end
47 end