Link Editor Navigator buttons

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

Link Editor Navigator buttons // Scriptorium

1  2  |  

Post by trueBlue // Oct 3, 2006, 10:56am

trueBlue
Total Posts: 1761
pic
Any ideas on how to make the Link Editor Navigator:
http://forums1.caligari.com/truespace/showpost.php?p=16095&postcount=1 (http://forums1.caligari.com/truespace/showpost.php?p=16095&postcount=1)
embedded into the LE Title bar, like the MainMenu is in Model?

Post by stan // Oct 3, 2006, 11:02am

stan
Total Posts: 1240
pic
hi trueBlue,..that would be handy..I have tried by copying what is used but there must be a WinId number or something like that..also why won't other icons stay in the encapsulator toolbar..

great to have a code forum..:banana:

Post by Norm // Oct 6, 2006, 6:00am

Norm
Total Posts: 862
pic
Well I would say that it depends how deep into the scenario you wish to go.

Have you checked out the Link Editor when you visit up a few levels to Windows Manager Space?


I have not visited this area to much myself.

Post by trueBlue // Oct 6, 2006, 7:20am

trueBlue
Total Posts: 1761
pic
Yes I have and have discovered that it is very dyanamic. I see the frame for the scene. I see the toolbars that are created for Model and Player. I see the toolbar created for the stack. But I do not see anything for the Link Editor. The LE2Node I assume is the settings for the Artist tab. My understanding of the WinID and GUID is ZERO. I suspect that settings within a frame window is key here. I also suspect that the Frame Window is the toolbar's container thus eliminating the handle of the toolbar.
I have also studied the init.js and reset.js files.

Post by Norm // Oct 6, 2006, 9:32am

Norm
Total Posts: 862
pic
Further up in the chain I see: System/Scripts/Commands/Naviagation Tools node, which does some building.

Might be of some help in figuring this out.

Post by trueBlue // Oct 6, 2006, 1:54pm

trueBlue
Total Posts: 1761
pic
Yes I have seen those scripts as well. What is a Shelf? The Navigation Tools script does not make much since to me. At first glance you would think that this is for the Model side but there is a Physics Move Tool. Running this script creates an error.

Post by stan // Oct 6, 2006, 6:11pm

stan
Total Posts: 1240
pic
in windows manager space
on the file help toolbar node
name ; TBbase.MainMenu
prototype; templates.MainMenu
that seems to be the key

Post by trueBlue // Oct 6, 2006, 6:27pm

trueBlue
Total Posts: 1761
pic
Stan I believe that is for Loading from Prototype and Reset toolbar.
Check out the Toolbar that is in Player in the title bar. Notice there is no Reset, now look at it's toolbar node in Windows Manager Space, there is no Name nor Prototype.
IsImportant creates the X for close.

Post by stan // Oct 6, 2006, 7:12pm

stan
Total Posts: 1240
pic
in windows manager space
on the file help toolbar node
name ; TBbase.MainMenu
prototype; templates.MainMenu

that seems to be the part to create the toolbar from a template;;

then on the Frame Window node that encapsulates it..
there is
aspectGUID ; {D2AB7FC9-E561-4232-8E8A-35D73D1B020E}
winID ; {55976884-B3CB-4E46-A03A-B296D6D90ED0}
Def2D ; {485B725E-A69D-4AD5-A876-B3BBA72D2C0A}

I think we need to identify the WinID of the LE window....maybe the aspectGUID remains the same not sure, I think Def2D tells it to exist in 2D

also for this LE shortcut navigator we need to have an argument if the script editor is open, to close it, and not create another window.. there is a disabled 1 [on script editor node] other value 0?. maybe that would close it
would need the RA seeker as part of the code to find the node

also a way to swap WinID when you have a second LE window open..
or do we need a template to create all LE windows so the toolbar would be exclusive to it's own window


we have this for toolbars, it may help. it maybe aspectGUID
HRESULT SetGuid (file:///E:/devguide/DataObjects/structIRd3DToolbarParams.html#a0) ( GUID guid)
HRESULT GetGuid (file:///E:/devguide/DataObjects/structIRd3DToolbarParams.html#a1) ([out] GUID *pGuid)

there is this
Set Frame Owner Frame Command version 1.0
Sets owner window for window. Owned window will be allways over owner window. If owned window is toolbar then this toolbar is visible only when owner window is active or owner window is docked to window which also docks active window.[I] (Roman Rückschloss, Caligari Corp.)
NamesDescriptionDefaultTypeFlags
TargetWindow target identification - possible values :<br><ul><li>WinID - must be in '{WinID}'</li><li>Full name to window</li><li>Windows handle - must be in '[handle]', for hexadecimal use '0x' as prefix for handle</li></ul>---stringINPUT,
SourceWindow source identification - possible values :<br><ul><li>WinID - must be in '{WinID}'</li><li>Full name to window</li><li>Windows handle - must be in '[handle]', for hexadecimal use '0x' as prefix for handle</li></ul>---stringINPUT,
WindowsManager.SetFrameOwnerFrame(str, str);

Post by trueBlue // Oct 6, 2006, 7:38pm

trueBlue
Total Posts: 1761
pic
If it is possible to embed this toolbar into the LE title bar area, then there will be no reason to hide it. Have you noticed that when you open an additional window that all the floating toolbars hide except this one? I have tried several different options to accomplish this with no results. There is also the ui.tstoolbars.xml file, not sure how trueSpace7 uses xml files yet.
Have you tried LE.DefaultPlacement(:cool:) yet? That is a sweet little command that minimizes all nodes and arranges them in the LE. I am going to add that one to the LE Navigator. I use that one alot.

Post by stan // Oct 7, 2006, 5:04am

stan
Total Posts: 1240
pic
trueBlue..it's not about hiding the toolbar but giving it an owner window ..remember the file/help one hides when you change to player..so I think this might be useful..

all the options from the LE droplist are there in the LE class..most I use..except LE properties..don't know what it does:confused:

just noticed for the view toolbar 'frame window' on player side, it has a matching 'owned by' number for the frame window it's in..it's the WinID of that frame window..

Post by trueBlue // Oct 7, 2006, 5:19am

trueBlue
Total Posts: 1761
pic
LE Properties opens the Link Editor "options" in the stack.

Post by stan // Oct 7, 2006, 5:34am

stan
Total Posts: 1240
pic
just noticed for the view toolbar 'frame window' on player side, it has a matching 'owned by' number for the frame window it's in..it's the WinID of that frame window..
trueblue..I got the LE nav shortcut toolbar to appear on LE title bar this way..just now:D but I still need to do something I'm not sure what, ts7 locks up..it's a start :banana:

Post by trueBlue // Oct 7, 2006, 10:09am

trueBlue
Total Posts: 1761
pic
Okay I set OwenedBy to the same as SnappedTo. Now when I open another window it hides just like the other floating toolbars.
Try this in Windows Manager Space, drag and dock the LE Navigator toolbar to different areas and watch how the settings change within the Frame Window node most importantly SnapTo.

Post by stan // Oct 7, 2006, 2:50pm

stan
Total Posts: 1240
pic
trueBlue...I did it..:banana: will post my findings so you can set it up:D

Post by stan // Oct 7, 2006, 3:15pm

stan
Total Posts: 1240
pic
ok..
part 1; so you take the WinID from the LE frame window..[mine is called 'frame window, 6'..transfer that to 'owned by' and 'snapped to'..you can just put the toolbar's frame window into the windows manager space, then it will act like the encapsulate toolbar..mine is frame window, 7
I tried doing it the way the file help toolbars was done by putting the toolbar's frame window in the LE one, but kept getting errors..

part 2; the LEnavToolbar is the toolbar. I made a copy of it put it in '/system/toolbar prototypes '
this may not be nesessary, but I did it anyway..it's called 'LeTools'
filled in these
name TBbase.LeTools
prototype templates.LeTools

now the issue is how to make an installer for it [I think part 1 is all that's needed]

Post by trueBlue // Oct 7, 2006, 6:01pm

trueBlue
Total Posts: 1761
pic
So did you actually embed the LE Navigator into the LE title bar?
Like the Main Menu is in Model?
Where as there is no handle on the left side of the toolbar?
Where is the Link Editor's Frame Window?
I am in Default layout and navigate to Windows Manager Space in the LE. I have only 1 "Frame Window, 3" and inside is a "Toolbar", this is where my Link Editor Navigator is.

Post by stan // Oct 8, 2006, 3:55am

stan
Total Posts: 1240
pic
trueBlue, the toolbar acts like the LE's encapsulate toolbar..it can be moved but stays docked with the LE window. when I minimize the LE window the LEnav toolbar goes with it...I tried for hours to get one to work exactly like the 'file help'[main?] one..I couldn't get that way to work for more that a few seconds at best without a lock up [ctrl alt delete to get out]

yes the path to the LE's Frame Window is harder to find in stock layouts. because my layout is three seperate windows it is very easy to find..when that [row of] tabs window nests the other windows, it maybe many levels deep within one of the Windows Manager Space nodes :confused:

path in default layout;
Windows Manager Space/ Frame Window /Split Docking Place /Frame Window /Split Docking Place /Frame Window /Border Docking Place /Frame Window [LE's WinID in default layout
{A2E0BD53-3DA6-4104-A10F-C9E30BED27F7} ]

Post by Norm // Oct 9, 2006, 8:04am

Norm
Total Posts: 862
pic
I recieved word from developers that "aspect" toolbars; embedded in title bar(s) are hard-coded. There are no proto-types in LE for us to find.


They did admit it was an interesting idea though.

Post by stan // Oct 9, 2006, 9:05am

stan
Total Posts: 1240
pic
thanks Norm..:)

I now have two toolbars docked on LE window..little ones for center selected, arrange, and default placement :rolleyes:

we can still make "owned by" toolbars..so when I minimize the LE, the toolbar follows..also because I use a 3 window layout [three buttons in taskbar] I use the LE on top of the workspace most of the time, click on the workspace or it's button in taskbar the LE window moves behind..now understanding 'owned by', I just made all the toolbars so they will hide when the LE opens on top.:D .that was my only issue before doing it that way, toolbars stayed on top of the LE window..not anymore ..:D

I have tried many times to get custom model or player toolbars to hide when in the other aspect but no luck..guess that was hard coded too..

the only issue I see is these 'owned by' toolbars are layout dependent..not a big issue..

Post by stan // Oct 9, 2006, 9:30am

stan
Total Posts: 1240
pic
here is another attempt to add that file help toolbar to the LE titlebar I just tried ..and it didn't lock up..:rolleyes:

Post by trueBlue // Oct 9, 2006, 12:04pm

trueBlue
Total Posts: 1761
pic
Yes thank you for this confirmation Norm. This explains why I can not get the New File Menu to stay.
@stan: Thanks for sharing the information on OwenedBy.:banana:

Post by stan // Oct 9, 2006, 2:49pm

stan
Total Posts: 1240
pic
trueBlue..your new file help toolbar how do you set it up? add tools to the original by drag and drop in workspace? I didn't try it yet..you might need to add the new icon functions to the toolbar prototypes encapsulator version of the toolbar..'tSFileMenu'..it may work that way and withstand a layout change or shutdown..worth a try..:)

I always backup my .ctx [save state] too..it saves that new state with the new toolbars, all changes in the LE. nice thing about that is if you kept a copy of the original default.ctx you can go back to the original install state..:D

Post by trueBlue // Oct 10, 2006, 3:05pm

trueBlue
Total Posts: 1761
pic
Hello stan: I control drag the buttons to the File/Help menu then remove the original ones. I then save my layout and save state. It seems that they get overwritten somewhere.
So I made a toolbar incorporating the Aspect view and File/Help menu. I also made a installer for it. Man what alot of work this was! To get it to install within the title bar, I had to rework all of the buttons and change them to different panels that included MaxTextHeight to conform to 19. I also added a right click command to the Bridge menu, so you can access the Desktop preference panel. Most likely really only needed in Full view. Anyways as you most likely already know, it is posted on the forum.
On another note I seen a command:
WindowsManager.SetWindowAspectPrototypedToolbar(st r, str, str)
Makes me think that we could somehow make a Title bar toolbar. But I am done trying. It was fun though, and I have learned an awfull lot creating these toolbars. As always thanks for your help!

Post by stan // Oct 10, 2006, 4:24pm

stan
Total Posts: 1240
pic
hi trueBlue,tried your install it put the toolbar in default layout not my custom layout..they always seem path dependent :( not easy to get a universal tool install..

what I suggest is try modifying the file help toolbar not the tstopbar..it is harder to find in the LE in default layout ..it should be somewhere along the path in Windows Manager Space..


in my image I put part of your TB in the file help one..it withstands layout changes, TS shutdowns..[didn't try a pc shutdown yet]
I added the desktop node via the LE ..then when I went to toolbar prototypes encapsulator it had already been written into the prototype of 'tSFileMenu'..:)

this seems to signal the creation of a protype .
name TBbase.MainMenu
prototype templates.MainMenu

if you create your own name like I did ->LeTools
code it on your Rs_MyNametoolbar node in Windows Manager Space. I write the bottom line first..
name TBbase.LeTools
prototype templates.LeTools

then go to toolbar prototypes encapsulator, there should be a new Rs_MyNametoolbar there ..
just noticed how that work the other day..:D .

Post by trueBlue // Oct 10, 2006, 5:18pm

trueBlue
Total Posts: 1761
pic
Hello stan: Humm when I installed this with the installer in Default view within Model, it installs it where the old tSTopBar was. Then I go to all other views, mind you I have not yet saved it yet, it is showing in the title bar in all views. What I have to do then is position it and then save the layout. Each layout needs to be positioned just a little bit.
For some reason when I used the buttons in the File/Help menu they get overwritten and this is after a complete save.
When I first started to create this installer, I could not close the File/Help menu. I even tried adding the X "close" to the toolbar first. All I could do is delete the nodes File and Help, but they would not disapprear. I even tried WindowsManager.UpdateWindowsStructure() but still no results. You are right about creating my own name and prototype and I almost did. I guess I got lazy and frustrated and took the easy way. You are also correct about the RS_toolbars being created by Windows Manager.
I am having some difficulty here when Replacing files in the library after I make some additions to them. The library is creating duplicate files on my hard drive. IE: MyObject(2).RsObj, note the (2) which is not how it is named in the library. The work around is to Delete the file first and then Insert it. Not REPLACE! I spent about 3 hours bringing these corupted files into the LE, then deleting the files in the library, and then re Inserting them. I am fit to be tied!

Post by stan // Oct 11, 2006, 4:36am

stan
Total Posts: 1240
pic
ah excuse me trueBlue..it did install..it took out my customized large toolbar [icons layed out like in ts6.6] down in lower right corner :rolleyes: don't want that to happen..

funny the file/help one overwrites, it doesn't do that to me..it withstands even pc shutdown, with your desktop added to it..
oh you can hide the original file/help toolbar thought..mine has been hidden for months, until I tested your desktop tools in it..same with the small player view toolbar..in Windows Manager Space when you go into the toolbar's Frame window you have the 'toolbar' node..there is a 'hidden' checkbox on it..

it's too bad the paths are so complex in Windows Manager Space using default layout and the others..you would find it so much easier the way mine is setup ..open Windows Manager Space, everything is there..no hunting through docking places :D when windows get nested into other windows etc it too hard to track things down..:confused:
if you would be interested I could setup a psuedo default layout for you to try and post it here, with no docking, then you would have three buttons in taskbar..it has no row of tabs ..

don't know what to say about your library problem, it hasn't ever happen to me..
mine is just starting to get bloated..sure hope they would re-think the way it works..I can't stand this having to import export things ..especially images..they could do the importing behind the scene so we can just use folders to house the image files as image files like before..

Post by stan // Oct 11, 2006, 10:30am

stan
Total Posts: 1240
pic
All I could do is delete the nodes File and Help, but they would not disapprear.
trueBlue, were you just deleting the toolbar in the toolbar prototypes encapsulator?
I think if the toolbar in Windows Manager Space exists or has a name and prototype it will re-create the prototype in the toolbars P. E...

installing your new file/help + viewtools into the Windows Manager Space version of the file/help, should work, it is harder to find the toolbar in default layout though..
since adding your desktop tools to that toolbar, all is still fine..but if I click on reset, it reverts..
if you remove the name and prototype info from the Windows Manager Space version of the file/help toolbar the reset is gone from the 1d 2d popup menu..it seems safe from overwiting., the link to the toolbar PE broken...I imagine the main reset to default content icon would restore it though

it seems only the toolbar itself is hard coded to stay in that titlebar, so we can't transplant it into another titlebar, but it can be modified :D

Post by trueBlue // Oct 13, 2006, 9:57am

trueBlue
Total Posts: 1761
pic
ah excuse me trueBlue..it did install..it took out my customized large toolbar [icons layed out like in ts6.6] down in lower right corner :rolleyes: don't want that to happen..

What is the name of your custom toolbar?


//tsTopBar Loader script
function Execute(params)
{
//This closes the RTSBar_TSAspectBar, 1 in the Windows Manager Space:
WindowsManager.CloseWindow("/Project/Windows Manager Space/ RTS Bar_TSAspectBar, 1");

//This deletes the tSTopBar:
Node.Delete("/Toolbar Prototypes Encapsulator/tSTopBar");

//This loads the new tSTopBar from the library:
Library.CreateDelegate("Objects", "Toolbars", "tSTopBar", "/Toolbar Prototypes Encapsulator");

//This creates the new version loaded from above line:
tSBridge.CreateTSToolbar('TSAspectBar','/tSBridge/tSMainWnd',0,0);

//This hides the X "close" icon on the toolbar:
Node.Value("/Project/Windows Manager Space/ RTS Bar_TSAspectBar, 1/tSTopBar",
"IsImportant") = -1

//This selects the toolbar for the File and Help in Default view:
Node.Select("/Project/Windows Manager Space/Frame Window/Split Docking Place/Frame Window/Split Docking Place/Frame Window, 2/Border Docking Place/Frame Window, 2/Frame Window, 1/Toolbar")

//This hides the above toolbar:
Node.Value(
"/Project/Windows Manager Space/Frame Window/Split Docking Place/Frame Window/Split Docking Place/Frame Window, 2/Border Docking Place/Frame Window, 2/Frame Window, 1/Toolbar",
"Hidden") = -1

//This selects the tsTobBar Loader in the Link Editor:
Node.Select(Space.CurrentScene() + "/tsTopBar Loader");

//This deletes the tsTopBar Loader from the Link Editor:
Node.Delete(Space.CurrentScene() + "/tsTopBar Loader");
}

Post by stan // Oct 13, 2006, 2:38pm

stan
Total Posts: 1240
pic
trueBlue..it's the large icon replacement of that RTSBar_TSAspectBar toolbar so it replaced it..others using that toolbar might have the same issue..
I had even done this // to many of the lines in your script so it wouldn't delete anything..just install the toolbar..

you should be able to setup an altered file help toolbar ..instead of hiding it ,use it for the toolbar
check out how many people downloaded that large icon toolbar.. ..
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn