view clients/pychan_demo/gui/dynamic.xml @ 150:6e7d228def30

Lazy loading for animations. Uses a Resource-Pointer class that behaves like a pointer to an IResource, but only loads the resource on demand. There's a slight change of API, which is already adapted to in the XML loaders. If you use Animation.addFrame directly, either adapt to the change or wait a few hours for a backwards compatibility solution.
author phoku@33b003aa-7bff-0310-803a-e67f0ece8222
date Sat, 11 Oct 2008 12:03:59 +0000
parents 674bb162d93f
children
line wrap: on
line source

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