<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://cegui.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hkroger</id>
		<title>CEGUI Wiki - Crazy Eddie's GUI System (Open Source) - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://cegui.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Hkroger"/>
		<link rel="alternate" type="text/html" href="http://cegui.org/wiki/Special:Contributions/Hkroger"/>
		<updated>2026-05-18T22:45:31Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.24.1</generator>

	<entry>
		<id>http://cegui.org/wiki/index.php?title=Talk:Writing_CEGUI_scripts&amp;diff=1990</id>
		<title>Talk:Writing CEGUI scripts</title>
		<link rel="alternate" type="text/html" href="http://cegui.org/wiki/index.php?title=Talk:Writing_CEGUI_scripts&amp;diff=1990"/>
				<updated>2006-03-01T19:52:55Z</updated>
		
		<summary type="html">&lt;p&gt;Hkroger: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Great article! I'd also like to share that you can use tolua.cast() to cast a window to a more specific class so you can access those specific functions.&lt;br /&gt;
&lt;br /&gt;
eg.&lt;br /&gt;
&lt;br /&gt;
  function slider_ValueChanged(event)&lt;br /&gt;
    local we = CEGUI.toWindowEventArgs(event);&lt;br /&gt;
    local slider = tolua.cast(we.window, &amp;quot;CEGUI::Slider&amp;quot;);&lt;br /&gt;
    -- do stuff with a real slider&lt;br /&gt;
    local value = slider:getCurrentValue();&lt;br /&gt;
    -- ...&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
There is a problem in the examples:&lt;br /&gt;
&lt;br /&gt;
This does not work:&lt;br /&gt;
bar:setSize( CEGUI.Size(1,0.1) );&lt;br /&gt;
&lt;br /&gt;
But this does:&lt;br /&gt;
bar:setSize( CEGUI.Size:new(1,0.1) );&lt;br /&gt;
--[[User:Hkroger|Hkroger]] 11:52, 1 March 2006 (PST)&lt;/div&gt;</summary>
		<author><name>Hkroger</name></author>	</entry>

	</feed>