<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[GMan's Mods & Stuff — Custom Gui skin]]></title>
		<link>https://gprogs.com/viewtopic.php?id=430</link>
		<atom:link href="https://gprogs.com/extern.php?action=feed&amp;tid=430&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Custom Gui skin.]]></description>
		<lastBuildDate>Sat, 18 Dec 2010 11:06:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Custom Gui skin]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=1645#p1645</link>
			<description><![CDATA[<p>It would be nice to be able to extend the IGuiSkin-Type like in C/++ so that you can erase all default draw methods by own ones which also include images.<br />I know that it won&#039;t be easy to make this possible and could also be bad for the performance but it would give the wrapper more useful options. So I really hope that you&#039;ll implement it <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> .</p>]]></description>
			<author><![CDATA[null@example.com (Lobby)]]></author>
			<pubDate>Sat, 18 Dec 2010 11:06:25 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=1645#p1645</guid>
		</item>
		<item>
			<title><![CDATA[Re: Custom Gui skin]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=1643#p1643</link>
			<description><![CDATA[<p>Thanks GMan but I may be sending you on a wild goose chase. I&#039;ve seen lots of examples of custom GUI&#039;s, thing is, they seem to require additional modules that aren&#039;t part of the Irrlicht core. I&#039;d just presumed <img src="https://gprogs.com/img/smilies/sad.png" width="15" height="15" alt="sad" />.</p><p>The examples of custom GUI&#039;s seem to run off someones additional code contributions from a couple of years ago. It may be doable with the current core, but it&#039;s so hard trying to find good information. I&#039;ve even read of the admin&#039;s on the Irrlicht forums talking about adding this stuff and including animated sprites to the mix. It&#039;s doubly confusing that there are indeed animated sprite controls for the GUI within the current core, along with LoadGUI / SaveGui etc. But when you try to find good info you end up back at the custom code sections from a couple of years ago. It may be that the code was integrated into the core, but if it was, I can&#039;t seem to find helpfull information on how to implement it.</p><p>I&#039;ve even been through code from other languages that have Irrlicht implementations, they use a different set of naming conventions for core routines which is adding even more confusion to the mix.</p><p>I only wanted to save some time by using the Irrlicht GUI (it&#039;s pretty fast and simple to use). I think I&#039;ll write my own GUI instead, I really only need buttons and sliders, it&#039;ll probably be faster for me in the end <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>If it&#039;s any help to anyone changing the &#039;basic&#039; built in GUI here&#039;s some simple code...</p><p>Changing the default GUI to another &#039;in built&#039; GUI look.<br />------------------------------------------------------------------<br />Local newskin:IGUISkin = env.createSkin(EGST_BURNING_SKIN) &#039; Can also be EGST_WINDOWS_METALLIC&nbsp; |or| EGST_WINDOWS_CLASSIC<br />env.setSkin(newskin)<br />newskin.drop</p><p>You can also save a GUI with...<br />------------------------------------------------------------------</p><p>env.saveGUI(&quot;MyGuiTest.txt&quot;, Null)</p><p>and load it back with...<br />------------------------------------------------------------------<br />env.loadGUI(&quot;MyGuiTest.txt&quot;, Null)</p><p>Although it should be said, the GUI loading and saving doesn&#039;t seem to include any reference to graphics / sprites etc. It&#039;s just a simple xml file. It may be that as I haven&#039;t added graphics to the mix, they&#039;re just not part of the output.</p><p>Here&#039;s an example output file from &#039;SaveGUI&#039;... (it&#039;s the GUI created by the &#039;EGST_BURNING_SKIN&#039; example above)<br />------------------------------------------------------------------</p><p>&lt;?xml version=&quot;1.0&quot;?&gt;<br />&lt;irr_gui&gt;</p><p>&nbsp; &nbsp; &lt;attributes&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;enum name=&quot;Skin&quot; value=&quot;burning&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;3DDarkShadow&quot; value=&quot;60767982&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;3DShadow&quot; value=&quot;50e4e8f1&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;3DFace&quot; value=&quot;c0cbd2d9&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;3DHighlight&quot; value=&quot;40c7ccdc&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;3DLight&quot; value=&quot;802e313a&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;ActiveBorder&quot; value=&quot;80404040&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;ActiveCaption&quot; value=&quot;ffd0d0d0&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;AppWorkspace&quot; value=&quot;c0646464&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;ButtonText&quot; value=&quot;d0161616&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;GrayText&quot; value=&quot;3c141414&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;Highlight&quot; value=&quot;6c606060&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;HighlightText&quot; value=&quot;d0e0e0e0&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;InactiveBorder&quot; value=&quot;f0a5a5a5&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;InactiveCaption&quot; value=&quot;ffd2d2d2&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;ToolTip&quot; value=&quot;f00f2033&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;ToolTipBackground&quot; value=&quot;c0cbd2d9&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;ScrollBar&quot; value=&quot;f0e0e0e0&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;Window&quot; value=&quot;f0f0f0f0&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;WindowSymbol&quot; value=&quot;d0161616&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;Icon&quot; value=&quot;d0161616&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;color name=&quot;IconHighlight&quot; value=&quot;d0606060&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;ScrollBarSize&quot; value=&quot;14&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;MenuHeight&quot; value=&quot;48&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;WindowButtonWidth&quot; value=&quot;15&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;CheckBoxWidth&quot; value=&quot;18&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;MessageBoxWidth&quot; value=&quot;500&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;MessageBoxHeight&quot; value=&quot;200&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;ButtonWidth&quot; value=&quot;80&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;ButtonHeight&quot; value=&quot;30&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;TextDistanceX&quot; value=&quot;3&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;TextDistanceY&quot; value=&quot;2&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;TitleBarTextX&quot; value=&quot;3&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;TitleBarTextY&quot; value=&quot;2&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;MessageBoxGapSpace&quot; value=&quot;15&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;MessageBoxMinTextWidth&quot; value=&quot;0&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;MessageBoxMaxTextWidth&quot; value=&quot;500&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;MessageBoxMinTextHeight&quot; value=&quot;0&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;MessageBoxMaxTextHeight&quot; value=&quot;99999&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;string name=&quot;MessageBoxOkay&quot; value=&quot;OK&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;string name=&quot;MessageBoxCancel&quot; value=&quot;Cancel&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;string name=&quot;MessageBoxYes&quot; value=&quot;Yes&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;string name=&quot;MessageBoxNo&quot; value=&quot;No&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;string name=&quot;WindowButtonClose&quot; value=&quot;Close&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;string name=&quot;WindowButtonMaximize&quot; value=&quot;Maximize&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;string name=&quot;WindowButtonMinimize&quot; value=&quot;Minimize&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;string name=&quot;WindowButtonRestore&quot; value=&quot;Restore&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;windowMaximize&quot; value=&quot;225&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;windowRestore&quot; value=&quot;226&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;windowClose&quot; value=&quot;227&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;windowMinimize&quot; value=&quot;228&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;windowResize&quot; value=&quot;242&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;cursorUp&quot; value=&quot;229&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;cursorDown&quot; value=&quot;230&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;cursorLeft&quot; value=&quot;231&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;cursorRight&quot; value=&quot;232&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;menuMore&quot; value=&quot;232&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;checkBoxChecked&quot; value=&quot;233&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;dropDown&quot; value=&quot;234&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;smallCursorUp&quot; value=&quot;235&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;smallCursorDown&quot; value=&quot;236&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;radioButtonChecked&quot; value=&quot;237&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;moreLeft&quot; value=&quot;238&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;moreRight&quot; value=&quot;239&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;moreUp&quot; value=&quot;240&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;moreDown&quot; value=&quot;241&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;expand&quot; value=&quot;243&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;collapse&quot; value=&quot;244&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;file&quot; value=&quot;245&quot; /&gt;<br />&nbsp; &nbsp; &nbsp; &nbsp; &lt;int name=&quot;directory&quot; value=&quot;246&quot; /&gt;<br />&nbsp; &nbsp; &lt;/attributes&gt;</p><p>&lt;/irr_gui&gt;</p>]]></description>
			<author><![CDATA[null@example.com (T-Light)]]></author>
			<pubDate>Tue, 14 Dec 2010 15:30:13 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=1643#p1643</guid>
		</item>
		<item>
			<title><![CDATA[Re: Custom Gui skin]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=1640#p1640</link>
			<description><![CDATA[<p>greetings <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; unfortunately im not sure as i have never attempted to skin.&nbsp; best bet is to search the Irrlicht forums for an example.&nbsp; if you find one i should be able to help you convert/decipher if needed.</p>]]></description>
			<author><![CDATA[null@example.com (gman)]]></author>
			<pubDate>Tue, 14 Dec 2010 12:17:30 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=1640#p1640</guid>
		</item>
		<item>
			<title><![CDATA[Custom Gui skin]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=1639#p1639</link>
			<description><![CDATA[<p>Hello.</p><p>Is it possible to create a custom GUI skin with the latest GMan Irrlicht mod (1.71+)?</p><p>If so, how?</p><p>Thanks.</p><p>ps&nbsp; (I already have the custom guiskin.cfg and the associated graphics files).</p>]]></description>
			<author><![CDATA[null@example.com (T-Light)]]></author>
			<pubDate>Sun, 12 Dec 2010 16:29:40 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=1639#p1639</guid>
		</item>
	</channel>
</rss>
