Mercurial > fife-parpg
changeset 178:7dc59bd3d6b1
Small cleanup in editor directory:
* Moved icons/ and gui/offsetedit.xml into content directory.
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clients/editor/content/gui/offsetedit.xml Fri Jan 30 00:24:50 2009 +0000 @@ -0,0 +1,74 @@ +<Window title="Object editor" position="10,700"> <!-- size="200,250" min_size="200,250" max_size="200,250" > --> + + <Label text="Namespace:" min_size="85,20"/> + <TextBox text="None" name="object_namespace" min_size="30,20"/> + + <HBox> + <Label text="Object ID:" min_size="85,20"/> + <TextBox text="None" name="object_id" min_size="30,20"/> + </HBox> + <HBox> + <Label text="Blocking:" min_size="45,20"/> + <TextBox text="0" name="object_blocking" min_size="20,20"/> + + <Label text="Static:" min_size="45,20"/> + <TextBox text="0" name="object_static" min_size="20,20"/> + </HBox> + + + <HBox> + <Label text="Select Rotation:" min_size="85,20" /> + </HBox> + + <DropDown min_size="80,0" name="select_rotations"/> + + <VBox> + <HBox> + <TextBox text="0" name="x_offset" size="30,20" min_size="30,20" max_size="30,20" /> + <Button name="x_offset_up" text="+" max_size="20,20"/> + <Button name="x_offset_dn" text="-" max_size="20,20"/> + </HBox> + + <HBox> + <TextBox text="0" name="y_offset" size="30,20" min_size="30,20" max_size="30,20"/> + <Button name="y_offset_up" text="+" max_size="20,20"/> + <Button name="y_offset_dn" text="-" max_size="20,20"/> + </HBox> + </VBox> + + <Label text="Selected Instance" min_size="85,20" /> + + <HBox > + <Label text="Instance ID:" min_size="85,20"/> + <TextBox text="None" name="instance_id" min_size="30,20"/> + </HBox> + <HBox > + <Label text="Instance rot:" min_size="85,20"/> + <TextBox text="0" name="instance_rotation" min_size="30,20"/> + </HBox> + + + + <VBox name="animation_panel_wrapper" max_size="150,50"> + <Spacer /> + <VBox name="animation_panel"> + <Label text="Animation panel" min_size="85,20" /> + <HBox> + <Button name="anim_start_pos" text="S" max_size="20,20"/> + <Button name="anim_left" text="l1" max_size="20,20"/> + <TextBox name="anim_current_frame" text="0" min_size="30,20"/> + <Button name="anim_right" text="r1" max_size="20,20"/> + <Button name="anim_end_pos" text="E" max_size="20,20"/> + </HBox> + </VBox> + </VBox> + + <HBox> + <Button name="use_data" text="Use"/> + <Button name="previous_data" text="Previous"/> + <Button name="default_data" text="Default"/> + </HBox> + <Spacer /> + <Button name="change_data" text="Save object"/> + +</Window>
--- a/clients/editor/content/gui/tools.xml Sun Jan 25 20:17:41 2009 +0000 +++ b/clients/editor/content/gui/tools.xml Fri Jan 30 00:24:50 2009 +0000 @@ -1,8 +1,8 @@ <Window title="" titlebar_height="15" margins="0,0"> <VBox padding="0"> - <ToggleButton group="toolbuttons" hover_image="icons/hand.png" up_image="icons/hand.png" down_image="icons/hand.png" name="btnSelect" offset="1,1" helptext="Select cells on layer" /> - <ToggleButton group="toolbuttons" hover_image="icons/select_layer.png" up_image="icons/select_layer.png" down_image="icons/select_layer.png" name="btnMove" offset="1,1" helptext="Moves instances" /> - <ToggleButton group="toolbuttons" hover_image="icons/add_instance.png" up_image="icons/add_instance.png" down_image="icons/add_instance.png" name="btnInsert" offset="1,1" helptext="Adds new instances based on currently selected object" /> - <ToggleButton group="toolbuttons" hover_image="icons/quit.png" up_image="icons/quit.png" down_image="icons/quit.png" name="btnDelete" offset="1,1" helptext="Deletes instances" /> + <ToggleButton group="toolbuttons" hover_image="content/icons/hand.png" up_image="content/icons/hand.png" down_image="content/icons/hand.png" name="btnSelect" offset="1,1" helptext="Select cells on layer" /> + <ToggleButton group="toolbuttons" hover_image="content/icons/select_layer.png" up_image="content/icons/select_layer.png" down_image="content/icons/select_layer.png" name="btnMove" offset="1,1" helptext="Moves instances" /> + <ToggleButton group="toolbuttons" hover_image="content/icons/add_instance.png" up_image="content/icons/add_instance.png" down_image="content/icons/add_instance.png" name="btnInsert" offset="1,1" helptext="Adds new instances based on currently selected object" /> + <ToggleButton group="toolbuttons" hover_image="content/icons/quit.png" up_image="content/icons/quit.png" down_image="content/icons/quit.png" name="btnDelete" offset="1,1" helptext="Deletes instances" /> </VBox> </Window>
--- a/clients/editor/gui/offsetedit.xml Sun Jan 25 20:17:41 2009 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,74 +0,0 @@ -<Window title="Object editor" position="10,700"> <!-- size="200,250" min_size="200,250" max_size="200,250" > --> - - <Label text="Namespace:" min_size="85,20"/> - <TextBox text="None" name="object_namespace" min_size="30,20"/> - - <HBox> - <Label text="Object ID:" min_size="85,20"/> - <TextBox text="None" name="object_id" min_size="30,20"/> - </HBox> - <HBox> - <Label text="Blocking:" min_size="45,20"/> - <TextBox text="0" name="object_blocking" min_size="20,20"/> - - <Label text="Static:" min_size="45,20"/> - <TextBox text="0" name="object_static" min_size="20,20"/> - </HBox> - - - <HBox> - <Label text="Select Rotation:" min_size="85,20" /> - </HBox> - - <DropDown min_size="80,0" name="select_rotations"/> - - <VBox> - <HBox> - <TextBox text="0" name="x_offset" size="30,20" min_size="30,20" max_size="30,20" /> - <Button name="x_offset_up" text="+" max_size="20,20"/> - <Button name="x_offset_dn" text="-" max_size="20,20"/> - </HBox> - - <HBox> - <TextBox text="0" name="y_offset" size="30,20" min_size="30,20" max_size="30,20"/> - <Button name="y_offset_up" text="+" max_size="20,20"/> - <Button name="y_offset_dn" text="-" max_size="20,20"/> - </HBox> - </VBox> - - <Label text="Selected Instance" min_size="85,20" /> - - <HBox > - <Label text="Instance ID:" min_size="85,20"/> - <TextBox text="None" name="instance_id" min_size="30,20"/> - </HBox> - <HBox > - <Label text="Instance rot:" min_size="85,20"/> - <TextBox text="0" name="instance_rotation" min_size="30,20"/> - </HBox> - - - - <VBox name="animation_panel_wrapper" max_size="150,50"> - <Spacer /> - <VBox name="animation_panel"> - <Label text="Animation panel" min_size="85,20" /> - <HBox> - <Button name="anim_start_pos" text="S" max_size="20,20"/> - <Button name="anim_left" text="l1" max_size="20,20"/> - <TextBox name="anim_current_frame" text="0" min_size="30,20"/> - <Button name="anim_right" text="r1" max_size="20,20"/> - <Button name="anim_end_pos" text="E" max_size="20,20"/> - </HBox> - </VBox> - </VBox> - - <HBox> - <Button name="use_data" text="Use"/> - <Button name="previous_data" text="Previous"/> - <Button name="default_data" text="Default"/> - </HBox> - <Spacer /> - <Button name="change_data" text="Save object"/> - -</Window>
--- a/clients/editor/plugins/objectedit.py Sun Jan 25 20:17:41 2009 +0000 +++ b/clients/editor/plugins/objectedit.py Fri Jan 30 00:24:50 2009 +0000 @@ -115,7 +115,7 @@ - creates the gui skeleton by loading the xml file - finds some important childs and saves their widget in the object """ - self.container = pychan.loadXML('gui/offsetedit.xml') + self.container = pychan.loadXML('content/gui/offsetedit.xml') self.container.mapEvents({ 'x_offset_up' : cbwa(self.change_offset_x, 1), 'x_offset_dn' : cbwa(self.change_offset_x, -1),