comparison clients/editor/gui/objectedit.xml @ 307:22253b2c9b14

- added LightEdit editor plugin (needs light branch to work; deactivated if lighting renderer is not available) - added animation viewer to ObjectEdit - several bugfixes for ObjectEdit plugin FEATURES: - ObjectEdit - viewing and rotating animated instances (rotations are hardcoded for now, FIFE needs to expose available angles to python in order to make animation rotation work for every client) - LightEdit - test global light values
author chewie@33b003aa-7bff-0310-803a-e67f0ece8222
date Tue, 11 Aug 2009 15:32:54 +0000
parents 51cc05d862f2
children
comparison
equal deleted inserted replaced
306:6177cdf72489 307:22253b2c9b14
1 <Panel title="Object editor" position="10,700"> <!-- size="200,250" min_size="200,250" max_size="200,250" > --> 1 <Panel title="Object editor" position="10,700" min_size="200,250"> <!-- size="200,250" min_size="200,250" max_size="200,250" > -->
2
3 <Label text=" Object" background_color="0,0,0" /> 2 <Label text=" Object" background_color="0,0,0" />
4 <Label text="Namespace:" min_size="85,20"/> 3 <HBox>
5 <Label text="None" name="object_namespace" min_size="30,20"/> 4 <Label text="Namespace:" min_size="85,20"/>
6 5 <Label text="None" name="object_namespace" min_size="30,20"/>
6 </HBox>
7 <HBox> 7 <HBox>
8 <Label text="Object ID:" min_size="85,20"/> 8 <Label text="Object ID:" min_size="85,20"/>
9 <Label text="None" name="object_id" min_size="30,20"/> 9 <Label text="None" name="object_id" min_size="30,20"/>
10 </HBox> 10 </HBox>
11 <HBox> 11 <HBox>
14 14
15 <Label text="Static:" min_size="45,20"/> 15 <Label text="Static:" min_size="45,20"/>
16 <TextBox text="0" name="object_static" min_size="20,20"/> 16 <TextBox text="0" name="object_static" min_size="20,20"/>
17 </HBox> 17 </HBox>
18 18
19 <Button name="change_data" text="Save object"/>
20
21 <Label text=" Selected Instance" background_color="0,0,0" /> 19 <Label text=" Selected Instance" background_color="0,0,0" />
22 20
23 <HBox> 21 <HBox>
24 <Label text="Select Rotation:" min_size="85,20" /> 22 <Label text="Select Rotation:" min_size="85,20" />
25 <DropDown min_size="80,0" name="select_rotations"/>
26 </HBox> 23 </HBox>
24
25 <DropDown min_size="80,0" name="select_rotations"/>
26
27 <VBox>
28 <Label text="Offset:" min_size="45,20"/>
29 <HBox>
30 <Label text="X: " min_size="25,20"/>
31 <TextBox text="0" name="x_offset" size="30,20" min_size="30,20" max_size="30,20" />
32 <Button name="x_offset_up" text="+" max_size="20,20"/>
33 <Button name="x_offset_dn" text="-" max_size="20,20"/>
34 </HBox>
35
36 <HBox>
37 <Label text="Y: " min_size="25,20"/>
38 <TextBox text="0" name="y_offset" size="30,20" min_size="30,20" max_size="30,20"/>
39 <Button name="y_offset_up" text="+" max_size="20,20"/>
40 <Button name="y_offset_dn" text="-" max_size="20,20"/>
41 </HBox>
42 </VBox>
43
44 <Label text="Selected Instance" min_size="85,20" />
27 45
28 <HBox > 46 <HBox >
29 <Label text="Instance ID:" min_size="85,20"/> 47 <Label text="Instance ID:" min_size="85,20"/>
30 <TextBox text="None" name="instance_id" min_size="30,20"/> 48 <TextBox text="None" name="instance_id" min_size="30,20"/>
31 </HBox> 49 </HBox>
32 <HBox > 50 <HBox >
33 <Label text="Instance rot:" min_size="85,20"/> 51 <Label text="Instance rot:" min_size="85,20"/>
34 <TextBox text="0" name="instance_rotation" min_size="30,20" hexpand="1"/> 52 <TextBox text="0" name="instance_rotation" min_size="30,20"/>
35 </HBox> 53 </HBox>
36 54
37 <VBox name="animation_panel_wrapper" max_size="150,50"> 55 <HBox>
56 <Button name="use_data" text="Use"/>
57 </HBox>
58 <Spacer />
59 <Button name="change_data" text="Save rotation"/>
60
61
62 <Label text=" Animation viewer" background_color="0,0,0" />
63 <VBox name="animation_panel_wrapper">
38 <Spacer /> 64 <Spacer />
39 <VBox name="animation_panel"> 65 <VBox name="animation_panel">
40 <Label text="Animation panel" min_size="85,20" /> 66 <Label text="Actions:" min_size="85,20" />
67 <DropDown min_size="80,0" name="select_actions"/>
68
41 <HBox> 69 <HBox>
42 <Button name="anim_start_pos" text="S" max_size="20,20"/> 70 <Button name="anim_start_pos" text="S" max_size="20,20"/>
43 <Button name="anim_left" text="l1" max_size="20,20"/> 71 <Button name="anim_left" text="l1" max_size="20,20"/>
44 <TextBox name="anim_current_frame" text="0" min_size="30,20"/> 72 <TextBox name="anim_current_frame" text="0" min_size="30,20"/>
45 <Button name="anim_right" text="r1" max_size="20,20"/> 73 <Button name="anim_right" text="r1" max_size="20,20"/>
46 <Button name="anim_end_pos" text="E" max_size="20,20"/> 74 <Button name="anim_end_pos" text="E" max_size="20,20"/>
47 </HBox> 75 </HBox>
76 <HBox>
77 <ToggleButton name="anim_playback" text="P" max_size="20,20"/>
78 <CheckBox name="anim_loop" marked="1" text="Loop:"/>
79 </HBox>
80
81 <HBox>
82 <Label text="Rotation: (" min_size="60,20" />
83 <Label name="anim_rotation" text="" min_size="20,20"/>
84 <Label text=")" min_size="10,20" />
85 </HBox>
86
87 <VBox min_size="100,100" size="100,100">
88 <Icon image="gui/icons/add_instance.png" size="200,200" min_size="250,250" name="animTest"/>
89 </VBox>
48 </VBox> 90 </VBox>
49 </VBox> 91 </VBox>
50 92
51 <HBox>
52 <Button name="use_data" text="Use"/>
53 </HBox>
54
55 </Panel> 93 </Panel>