view clients/pychan_demo/gui/absolute.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

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