annotate demos/pychan_demo/gui/poc_guianimation.xml @ 697:ecaa4d98f05f tip

Abstracted the GUI code and refactored the GUIChan-specific code into its own module. * Most of the GUIChan code has been refactored into its own gui/guichan module. However, references to the GuiFont class still persist in the Engine and GuiManager code and these will need further refactoring. * GuiManager is now an abstract base class which specific implementations (e.g. GUIChan) should subclass. * The GUIChan GUI code is now a concrete implementation of GuiManager, most of which is in the new GuiChanGuiManager class. * The GUI code in the Console class has been refactored out of the Console and into the GUIChan module as its own GuiChanConsoleWidget class. The rest of the Console class related to executing commands was left largely unchanged. * Existing client code may need to downcast the GuiManager pointer received from FIFE::Engine::getGuiManager() to GuiChanGuiManager, since not all functionality is represented in the GuiManager abstract base class. Python client code can use the new GuiChanGuiManager.castTo static method for this purpose.
author M. George Hansen <technopolitica@gmail.com>
date Sat, 18 Jun 2011 00:28:40 -1000
parents 427150724fe1
children
rev   line source
600
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
1 <Window title="Proof-of-concept: Gui animations" size="300,415" min_size="300,415" max_size="300,415">
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
2 <VBox>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
3 <HBox>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
4 <Button name="example_move" text="Move it!"/>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
5 <Button name="example_color" text="Tint it!" />
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
6 <Button name="example_resize" text="Crush it!" />
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
7 <Button name="example_all" text="All together now..." />
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
8 </HBox>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
9
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
10 <HBox>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
11 <Label text="Timer delay" />
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
12 <Slider name="delay" scale_start="0" scale_end="50" size="100,10" min_size="100,10" max_size="100,10"/>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
13 <Label name="delay_label" />
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
14 </HBox>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
15 </VBox>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
16
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
17 <Container name="move_wrapper" size="200,105" min_size="200,105" max_size="200,105">
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
18 <Icon name="move" image="gui/icons/pychan_logo.png"/>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
19 </Container>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
20
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
21 <Container name="color_wrapper" size="200,105" min_size="200,105" max_size="200,105">
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
22 <HBox>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
23 <VBox name="color" size="100,100" min_size="100,100" max_size="100,100" base_color="255,255,255,100">
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
24 </VBox>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
25 <HBox padding="0" size="100,100" min_size="100,100" max_size="100,100">
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
26 <VBox padding="0" size="33,99" max_size="33,99" min_size="33,99">
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
27 <Label text=" " name="color_1_1" background_color="130,130,0" size="33,33" min_size="33,33" max_size="33,33"/>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
28 <Label text=" " name="color_1_2" background_color="130,130,0" size="33,33" min_size="33,33" max_size="33,33"/>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
29 <Label text=" " name="color_1_3" background_color="130,130,0" size="33,33" min_size="33,33" max_size="33,33"/>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
30 </VBox>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
31 <VBox padding="0">
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
32 <Label text=" " name="color_2_1" background_color="130,130,0" size="33,33" min_size="33,33" max_size="33,33"/>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
33 <Label text=" " name="color_2_2" background_color="130,130,0" size="33,33" min_size="33,33" max_size="33,33"/>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
34 <Label text=" " name="color_2_3" background_color="130,130,0" size="33,33" min_size="33,33" max_size="33,33"/>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
35 </VBox>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
36 <VBox padding="0">
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
37 <Label text=" " name="color_3_1" background_color="130,130,0" size="33,33" min_size="33,33" max_size="33,33"/>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
38 <Label text=" " name="color_3_2" background_color="130,130,0" size="33,33" min_size="33,33" max_size="33,33"/>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
39 <Label text=" " name="color_3_3" background_color="130,130,0" size="33,33" min_size="33,33" max_size="33,33"/>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
40 </VBox>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
41 </HBox>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
42 </HBox>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
43 </Container>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
44
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
45 <Container name="resize_wrapper" size="200,105" min_size="200,105" max_size="200,105">
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
46 <VBox name="resize" size="100,100" min_size="100,100" max_size="100,100" base_color="255,255,255,100">
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
47 </VBox>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
48 </Container>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
49
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
50 <Button name="closeButton" text="Close"/>
427150724fe1 - added new pychan demo: gui animations
chewie@33b003aa-7bff-0310-803a-e67f0ece8222
parents:
diff changeset
51 </Window>