view demos/pychan_demo/gui/colortester.xml @ 589:d1df6cf5ff23

* Fixed a bug in RenderBackendSDL, the clip area was not properly set. * Renamed the backquad and border commands of the FloatingTextRenderer. * Added the TransparentArea commands to the InstanceRenderer. Note: with addTransparentArea(instance, string, width, height, transparent, front) you can enable an area, that make all instances in this zone and with the same namespace transparent. The string is for the namespace, so you can set one or more namespaces to be transparent. Width and height specifies the size of the area. Transparent defines the intensity of transparency, 255 = invisible. The bool front, enable or disable the z check, so that only instances in front of the source instance could be transparent.
author helios2000@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 13 Aug 2010 16:33:36 +0000
parents db994c01cc9a
children 59c92d10d7bc
line wrap: on
line source

<Window title="Colortester">
	<HBox>
		<VBox min_size="200,300">
			<Label text="Example widgets"/>
			<Slider name="example1" />
			<CheckBox text="Checkbox" name="example2" />
			<Button text="Button" name="example3" />
			<VBox size="150,25" min_size="150,25" max_size="150,25" opaque="1" name="example4"><Label text="VBox" /></VBox>
			<RadioButton name="example5" text="RadioButton" group="radio2"/>
			<ScrollArea min_size="150,25"  horizontal_scrollbar="0" name="example6">
				<TextBox text="ScrollArea" min_size="100,100" />
			</ScrollArea>
			<TextBox text="TextBox" name="example7" />
			<TextField text="TextField" name="example8" />
		</VBox>
		<Spacer />
		<VBox name="Slider_wrapper">
			<VBox name="Base_colors">
				<Label text="Move the sliders to change the base_color attribute"/>
				<HBox>
					<Slider name="base_rslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/>
					<Label text="R" size="25,15" min_size="25,15" max_size="25,15" />
					<Label text="" name="base_rvalue" />
				</HBox>
				<HBox>
					<Slider name="base_gslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/>
					<Label text="G" size="25,15" min_size="25,15" max_size="25,15" />
					<Label text="" name="base_gvalue" />
				</HBox>
				<HBox>
					<Slider name="base_bslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/>
					<Label text="B" size="25,15" min_size="25,15" max_size="25,15" />
					<Label text="" name="base_bvalue" />
				</HBox>
				<HBox>
					<Slider name="base_aslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/>
					<Label text="A" size="25,15" min_size="25,15" max_size="25,15" />
					<Label text="" name="base_avalue" />
				</HBox>
			</VBox>
			<VBox name="Background_colors">
				<Label text="Move the sliders to change the background_color attribute"/>
				<HBox>
					<Slider name="background_rslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/>
					<Label text="R" size="25,15" min_size="25,15" max_size="25,15" />
					<Label text="" name="background_rvalue" />
				</HBox>
				<HBox>
					<Slider name="background_gslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/>
					<Label text="G" size="25,15" min_size="25,15" max_size="25,15" />
					<Label text="" name="background_gvalue" />
				</HBox>
				<HBox>
					<Slider name="background_bslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/>
					<Label text="B" size="25,15" min_size="25,15" max_size="25,15" />
					<Label text="" name="background_bvalue" />
				</HBox>
				<HBox>
					<Slider name="background_aslider" scale_start="0" scale_end="255" size="100,10" min_size="100,10" max_size="100,10"/>
					<Label text="A" size="25,15" min_size="25,15" max_size="25,15" />
					<Label text="" name="background_avalue" />
				</HBox>
			</VBox>
		</VBox>
	</HBox>

	<Button name="closeButton" text="Close"/>
</Window>