view clients/pychan_demo/gui/demoapp.xml @ 141:5e85737281bc

- some modification to loaders and serializers/xmlmap, now you can set a callback which informs you about finished parts of the maploading process - this can be used to prepare other parts of your client (e. g. load ingame gui) or to show a maploading progress bar USAGE (example): - map = loadMapFile(mapfile, engine, my_callback) - def mycallback(msg, percent): print msg; print percent
author chewie@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 03 Oct 2008 12:14:39 +0000
parents 674bb162d93f
children fe7ff4808529
line wrap: on
line source

<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>