Orion Elenzil's Resources
this resource implements a new GuiControl, GuiSingleBitmapButtonCtrl. motivation: it's a pain to make four bitmaps for a single button, especially when prototyping, and often a simple change in color is sufficient to indicate the button's four states.
Author Orion Elenzil Date 06/22/2009 (7:17 pm) Comment 7 comments
a simple function to open up a file system folder window on a given directory example uses openFileSystemFolder("c:"); // does what you would expect openFileSystemFolder("c:/tmp"); // also does what you would expect openFileSystemFolder("common"); // opens the folder "common" in the current working directory. openFileSystemFolder("common/foo.txt"); // does nothing
Author Orion Elenzil Date 06/02/2009 (11:02 pm) Comment 8 comments
torquescript convenience function to test whether a variable is defined or not without printing errors in the log. This allows for optional parameters to torquescript functions.
Author Orion Elenzil Date 05/26/2009 (7:54 pm) Comment 15 comments
a trivial resource to provide a convolution operator of one ColorI with another. convolution is also known as componentwise multiplication.
Author Orion Elenzil Date 05/08/2009 (7:20 pm) Comment 1 comments
a new option on GuiMLTextCtrl to automatically strip out "gamelink:" in URLs which begin with it before passing it to the OnURL() script callback.
Author Orion Elenzil Date 04/29/2009 (6:40 pm) Comment 4 comments
This resource implements lazy loading of bitmap files in GuiBitmapCtrl. In situations where you have very many GuiBitmapCtrls being created at the same time but not all of them are actually in view at the time of creation, if your app stutters during that creation phase, this may alleviate that.
Author Orion Elenzil Date 04/20/2009 (11:37 pm) Comment 2 comments
when doing math, torquescript pleasantly converts large integers to floats, which then get represented as scientific notation, and goodbye, precision. some time ago Peter Simard made some routines to do proper integer arithmetic. i can't find his original code now, because i chose different names for the console functions, and it must have been in a forum post rather than as a resource. so thanks, Peter!
Author Orion Elenzil Date 04/17/2009 (10:20 pm) Comment 14 comments
this resource implements a new torqueScript function, setExecDurationWarnThreshhold(), which will print a warning when any script codeblock takes "a long time" to execute.
Author Orion Elenzil Date 04/17/2009 (10:07 pm) Comment 6 comments
This resource enables you to dynamically turn a particle emitter node on or off. It is networked.
Author Orion Elenzil Date 04/07/2009 (5:18 pm) Comment 8 comments
introduces a new global script variable, $ParticleEmitter::deleteParticlesOnRemove, which when true means that when a ParticleEmitterNode is removed from the scene, any outstanding particles it may have whelped will be deleted on the spot.
Author Orion Elenzil Date 03/24/2009 (2:16 am) Comment 4 comments
extends guiEditCtrl to use the system clipboard for cut/copy/paste operations. and here is another sentence so that the preview is at least 100 characters long.
Author Orion Elenzil Date 03/20/2009 (7:18 pm) Comment 1 comments
Extends & fixes the text-editing functionality in GuiMLTextEditCtrl.
Author Orion Elenzil Date 12/19/2008 (10:12 pm) Comment 5 comments
a simple utility to dump the contents of a SimSet (ergo SimGroups, ergo GuiControls).
Author Orion Elenzil Date 12/17/2008 (3:03 pm) Comment 2 comments
looks already fixed in 1.4+, fixes a bug where Canvas.setContent(new GuiControl()) would crash.
Author Orion Elenzil Date 09/09/2008 (1:16 pm) Comment 0 comments
add setForwardVector(), the counterpart to getForwardVector().
Author Orion Elenzil Date 08/01/2008 (5:26 pm) Comment 3 comments
A tutorial for intermediate C++ TGE programmers who are interested in learning a bit more about rendering objects, creating new object classes, and ghosting.
Author Orion Elenzil Date 07/17/2008 (4:24 pm) Comment 11 comments
the first face drawn by ShapeBase::wireCube() has opposite winding than the other five faces.
Author Orion Elenzil Date 07/07/2008 (4:52 pm) Comment 3 comments
a couple 2D line intersection routines for C and Script.
Author Orion Elenzil Date 07/03/2008 (1:12 pm) Comment 3 comments
networkify the rotating status of Item objects.
Author Orion Elenzil Date 05/27/2008 (4:45 pm) Comment 0 comments
trivial resource to add modulationColor to guiBitmapButtonCtrl.
Author Orion Elenzil Date 05/14/2008 (3:25 pm) Comment 1 comments

