Mercurial > fife-parpg
changeset 126:674bb162d93f
- moved old directories to new locations
author | chewie@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Wed, 06 Aug 2008 22:28:01 +0000 |
parents | 97d6946bd917 |
children | f98443afed5b |
files | clients/pychan_demo/fonts/samanata.fontdef clients/pychan_demo/fonts/samanata.ttf clients/pychan_demo/gui/absolute.xml clients/pychan_demo/gui/all_widgets.xml clients/pychan_demo/gui/background.png clients/pychan_demo/gui/credits.xml clients/pychan_demo/gui/demoapp.xml clients/pychan_demo/gui/dynamic.xml clients/pychan_demo/gui/loadmap.xml clients/pychan_demo/gui/stripe.png clients/pychan_demo/gui/styling.xml |
diffstat | 11 files changed, 170 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clients/pychan_demo/fonts/samanata.fontdef Wed Aug 06 22:28:01 2008 +0000 @@ -0,0 +1,40 @@ +[Font/samanata_large_pixelated] + +type: truetype +source: content/fonts/samanata.ttf +size: 30 + +antialias: 0 + +color: 255,255,0 + +[Font/samanata_large] + +type: truetype +source: content/fonts/samanata.ttf +size: 20 + +antialias: 1 + +color: 255,255,100 + +[Font/samanata_small_pixelated] + +type: truetype +source: content/fonts/samanata.ttf +size: 8 + +antialias: 0 +row_spacing: 50 +glyph_spacing: 50 + +[Font/samanata_small] + +type: truetype +source: content/fonts/samanata.ttf +size: 10 +color: 255,255,100 + +antialias: 1 +#row_spacing: 50 +#glyph_spacing: 50
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clients/pychan_demo/gui/absolute.xml Wed Aug 06 22:28:01 2008 +0000 @@ -0,0 +1,10 @@ +<Container position="100,100" size="400,200" + base_color="255,0,0" + background_image="gui/backgrounds/stripe.png" + border_size="2"> + <Label text="Absolute values work._" font="samanata_large" position="20,20" foreground_color="128,0,0" /> + <ClickLabel text="__ Baseline ok?" font="samanata_large" position="220,20" max_size="500,20" foreground_color="128,0,0" /> + <Label text="It's tiresome, though." position="20,50" base_color="255,0,0" /> + <Icon image="gui/backgrounds/stripe.png" position="100,100" /> + <Button name="closeButton" text="Ok" position="160,150" base_color="255,0,0" /> +</Container>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clients/pychan_demo/gui/all_widgets.xml Wed Aug 06 22:28:01 2008 +0000 @@ -0,0 +1,49 @@ +<Window title="All Widgets demo."> + <HBox> + <VBox> + <Label text="ScrollArea with ListBox:"/> + <ScrollArea size="200,100"> + <ListBox name="demoList" min_size="100,100" /> + </ScrollArea> + </VBox> + <VBox> + <Label text="ScrollArea with TextBox:"/> + <ScrollArea size="200,100" horizontal_scrollbar="0"> + <TextBox name="demoText" min_size="100,100" /> + </ScrollArea> + </VBox> + </HBox> + <Label text="HBox with Buttons:"/> + <HBox> + <Button text="Button 1"/> + <Button text="Button 2"/> + <Button text="Button 3"/> + <Spacer/> + </HBox> + <Label text="Radiobuttons with different group attributes:"/> + <HBox> + <VBox> + <RadioButton text="Exclusive choice 1" group="radio1"/> + <RadioButton text="Exclusive choice 2" group="radio1"/> + <RadioButton text="Exclusive choice 3" group="radio1"/> + <Spacer/> + </VBox> + <VBox> + <RadioButton text="Exclusive choice 1" group="radio2"/> + <RadioButton text="Exclusive choice 2" group="radio2"/> + <RadioButton text="Exclusive choice 3" group="radio2"/> + <RadioButton text="Exclusive choice 4" group="radio2"/> + </VBox> + </HBox> + <Label text="Some CheckBoxes:"/> + <CheckBox text="Inclusive choice 1"/> + <CheckBox text="Inclusive choice 2"/> + <Label text="Icon and ImageButton:"/> + <Icon image="gui/backgrounds/stripe.png" /> + <ImageButton up_image="gui/backgrounds/stripe.png" text="Click me for a Bug demonstration" /> + <HBox> + <Label text="I'm a ClickLabel[br]Multiline enabled?![br]I do hope so."/> + <Spacer/> + <Button name="okButton" text="OK"/> + </HBox> +</Window>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clients/pychan_demo/gui/credits.xml Wed Aug 06 22:28:01 2008 +0000 @@ -0,0 +1,10 @@ +<Window title="Credits."> + <Label text="These guys contributed to FIFE. Man!" /> + <ScrollArea size="400,400" vertical_scrollbar="0"> + <TextBox name="creditText" filename="../../doc/AUTHORS"/> + </ScrollArea> + <HBox> + <Spacer /> + <Button name="okButton" text="You guys rock!"/> + </HBox> +</Window> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clients/pychan_demo/gui/demoapp.xml Wed Aug 06 22:28:01 2008 +0000 @@ -0,0 +1,25 @@ +<Window title="This is the PyChan demo application."> + <VBox> + <HBox> + <ScrollArea size="200,500"> + <ListBox name="demoList" min_size="100,100" /> + </ScrollArea> + <VBox margins="0,0"> + <Label text=" Select one example from the listbox and press 'Start Example'"/> + <Label text=" You can also execute this script with an Gui XML file as argument."/> + <HBox margins="0,0"> + <Button text="XML code"/> + </HBox> + <ScrollArea size="600,200"> + <TextBox name="xmlSource" filename="gui/all_widgets.xml"/> + </ScrollArea> + <Spacer /> + </VBox> + </HBox> + <HBox> + <ClickLabel name="creditsLink" text="Credits"/> + <Spacer /> + <Button name="closeButton" text="Quit Demo"/> + </HBox> + </VBox> +</Window>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clients/pychan_demo/gui/dynamic.xml Wed Aug 06 22:28:01 2008 +0000 @@ -0,0 +1,13 @@ +<Window title="Dynamic widgets."> + <Label text="ClickLabel text:" /> + <ScrollArea size="200,100" vertical_scrollbar="0"> + <TextBox name="labelText" text="Add some text here."/> + </ScrollArea> + <VBox name="labelBox" min_size="0,100" border_size="1" background_image="gui/backgrounds/background.png" opaque="0"> + </VBox> + <HBox> + <Button name="addButton" text="Add one label!"/> + <Spacer /> + <Button name="okButton" text="Close"/> + </HBox> +</Window>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clients/pychan_demo/gui/loadmap.xml Wed Aug 06 22:28:01 2008 +0000 @@ -0,0 +1,12 @@ +<Window title="Load Map"> + <HBox> + <VBox> + <DropDown name="mapList" min_size="100,0" /> + <Spacer /> + </VBox> + <VBox> + <Button name="okButton" text="Load Map"/> + <Button name="closeButton" text="Cancel"/> + </VBox> + </HBox> +</Window> \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/clients/pychan_demo/gui/styling.xml Wed Aug 06 22:28:01 2008 +0000 @@ -0,0 +1,11 @@ +<Window title="Styling" style="greenzone"> + <Label text="These guys contributed to FIFE. Man!" /> + <ScrollArea size="400,400"> + <ListBox name="styleList"/> + </ScrollArea> + <HBox> + <Spacer /> + <Button name="testStyle" text="Test Style"/> + <Button name="closeButton" text="Close"/> + </HBox> +</Window> \ No newline at end of file