Categories: World Editor, 352 words8 feedbacks • Permalink
The scene browser shows all of the sectors in flarge.
Here's how it works:
A plugin implementing wrappers around all of the (useful) CS interfaces is loaded. It registers interface wrapper factories with an iInterfaceWrapperManager. This manager keeps a hash of scfInterfaceID's mapped to iInterfaceWrapperFactory's.
Another plugin listens for when the map is loaded (which the editor tells it), then creates an EditorObject for all of the sectors in the engine and adds it to the editor's object list.
EditorObject, using SCF metadata, goes through each interface implemented by the object it's wrapping and requests the iInterfaceWrapperFactory for the given interface. If there's no wrapper for that interface, it ignores it. It then instantiates that wrapper and pushes it onto an array. While it's going through, it finds an interface wrapper that has a name attribute, and stores that for future reference, when something wants to call Get/SetName. It does the same thing for a parent attribute. It also figures out the type (instance, factory, or unknown) and stores that.
After adding an object to the object list, the scene browser panel will get an Object Added event, and it will put the given object into the tree, using EditorObject to get the name and parent (for the hierarchy).
I haven't implemented putting the objects into the correct hierarchy in the Scene Browser panel yet, nor have I implemented object name editing or re-parenting via dragging. Also, scene browser should have a way of showing an icon and grouping (or sorting) the different objects.
Right now, I've only implemented an interface wrapper around iObject, since that provides the name for every engine object. But eventually, I'll need wrappers for every useful object, since I will need to know their properties for the property editor.
This was partly just a proof-of-concept right now. There are a few functions that could have a better place at the moment.
Add the rest of objects from engine on map load (other than sectors)
Clean up some of the nasty parts
Respect object hierarchy in scene browser
Implement name editing in scene browser
2013-04-13 @ 05:00I love this website very much, It_s a rattling good spot to examine and receive info.
_What is a panel Several the actual unwilling, selected from your unfit, to
accomplish the unwanted._ by simply Richard Harkness.
2013-04-28 @ 10:53What's up, this weekend is good in support of me, for the reason that this moment i am reading this fantastic informative post here at my residence.
2013-05-21 @ 17:17Ich kaum verlassen Bemerkungen , aber nach dem Lesen ein paar
der Kommentare hier iceeey Blog - Scene Browser Anfänge .
Ich eigentlich noch ein paar Fragen für Sie, wenn es Ihnen nichts ausmacht .
Is it just me oder haben einige dieser Bemerkungen erscheinen wie sie von hirntot Menschen übrig?
:-P Und wenn Sie auf zusätzliche soziale Websites Entsendung sind , möchte ich dir folgen.
Könnten Sie eine Liste der vollständigen URLs Ihrer öffentlichen Seiten wie Ihre Facebook-Seite , Twitter-Feed , oder LinkedIn-Profil ?
2013-06-07 @ 17:40It's a shame you don't have a donate button! I'd definitely donate to this superb blog! I suppose for now i'll settle
for bookmarking and adding your RSS feed to my Google account.
I look forward to brand new updates and will talk about this website with my Facebook group.
2013-07-06 @ 08:50Horoscope elisabeth tessier 2010 mon signe astrologique japonais
2013-08-20 @ 09:51Astrologie tessier horoscope gratuit scorpion 2012
2013-08-23 @ 17:51Chritine haas horoscope de la semaine vierge
2013-08-27 @ 17:30Horoscope du jour gratuit 2011 tarot des druides gratuit
Comments are not allowed from anonymous visitors.