Shape Editor Node Filter
by Andy J Edmonds · 02/27/2012 (2:55 pm) · 2 comments
This is a simple addition to the shape editor that adds a filter box to the Node Editor GUI. I grew tired of trying to remember which mountnode was which when looking at models in the shape editor and having to dig through the node tree to find them, particularly models with a load of mountnodes, so I added this just to save a bit of time.
All the changes are in tools\shapeEditor\gui\shapeEdPropWindow.ed.gui so open that up now.
Scroll down until you find the 'Node Editor' section (line 573 for me). We will first add two new controls - a GuiTextEditCtrl for the filter text and a GuiBitmapButtonCtrl for the 'clear filter' button:
Directly after the first GuiBitmapBorderCtrl (in the Node Editor section), add the following:
Finally, we just need to change the position and extent of the GuiScrollCtrl below the new controls:
...You can now find nodes with ease!
All the changes are in tools\shapeEditor\gui\shapeEdPropWindow.ed.gui so open that up now.
Scroll down until you find the 'Node Editor' section (line 573 for me). We will first add two new controls - a GuiTextEditCtrl for the filter text and a GuiBitmapButtonCtrl for the 'clear filter' button:
Directly after the first GuiBitmapBorderCtrl (in the Node Editor section), add the following:
new GuiTextEditCtrl(NodeTreeFilter) {
position = "2 4";
extent = "175 18";
profile = "GuiTextEditProfile";
horizSizing = "width";
vertSizing = "bottom";
class = "GuiTreeViewFilterText";
treeView = ShapeEdNodeTreeView;
};
new GuiBitmapButtonCtrl() {
bitmap = "tools/gui/images/clear-icon";
groupNum = "-1";
buttonType = "PushButton";
useMouseEvents = "0";
isContainer = "0";
Profile = "GuiDefaultProfile";
HorizSizing = "left";
VertSizing = "bottom";
position = "180 5";
Extent = "17 17";
MinExtent = "8 2";
canSave = "1";
Visible = "1";
tooltipprofile = "GuiToolTipProfile";
hovertime = "1000";
canSaveDynamicFields = "0";
class = "GuiTreeViewFilterClearButton";
textCtrl = NodeTreeFilter;
};Finally, we just need to change the position and extent of the GuiScrollCtrl below the new controls:
Position = "0 32"; Extent = "202 256";
...You can now find nodes with ease!
About the author
Formed in 2005, EiKON Games is an indie games development project based in the UK working on the tactical first person shooter "Epoch: Incursion". See the Join Us or Contact Us pages at http://www.eikon-games.com/
#2
thanks.
i will also try this in some other places of gui editor
02/27/2012 (6:46 pm)
for my small monitor i always have to face same problem(+ more).thanks.
i will also try this in some other places of gui editor

Associate Steve Acaster
[YorkshireRifles.com]