Bridge Commander Central

BC Forums => BC Scripting => Topic started by: Billz on August 24, 2006, 01:02:19 PM

Title: Turn Off Character Menus
Post by: Billz on August 24, 2006, 01:02:19 PM
Is there a way how I can stop character menus from appearing when I talk to the bridge crew? Its for a film project Im doing but I dont want the menus to appear in the final product.
Title: Turn Off Character Menus
Post by: MLeo on August 24, 2006, 01:22:56 PM
Put this in a script in scripts and import it when in QB (or mission) through the console:

Code: [Select]
lNames = ["Tactical", "Helm", "XO", "Science", "Engineer"]
pBridge = App.g_kSetManager.GetSet("bridge")
for name in lNames:
  App.CharacterClass_Cast(pBridge.GetObject(name)).GetMenu().SetNotVisible()
Title: Turn Off Character Menus
Post by: Billz on August 24, 2006, 01:39:02 PM
So just type that In notepad, save it and put in the scripts file then type it again in the QB console?
Title: Turn Off Character Menus
Post by: MLeo on August 24, 2006, 02:07:46 PM
If you saved it as: "MenuHiding.py" then you need to type in the console: "import MenuHiding" (no "")
Title: Turn Off Character Menus
Post by: Billz on August 24, 2006, 02:38:39 PM
Quote from: MLeo
If you saved it as: "MenuHiding.py" then you need to type in the console: "import MenuHiding" (no "")


It didnt work. I saved it as MenuHiding.py, put it in the scripts folder, typed in import MenuHiding in the console in a Quickbattle match but the character menus didnt dissapear.
Title: Turn Off Character Menus
Post by: MLeo on August 24, 2006, 02:40:28 PM
No errors or anything?

Ok, I suppose the game uses that SetNotVisible.:P

Give me a moment and I'll research it for a minute or 2.


[EDIT] It is possible, but it might take a little bit longer. :(
Title: Turn Off Character Menus
Post by: Billz on August 24, 2006, 04:48:05 PM
Quote from: MLeo
No errors or anything?

Ok, I suppose the game uses that SetNotVisible.:P

Give me a moment and I'll research it for a minute or 2.


[EDIT] It is possible, but it might take a little bit longer. :(


Okay cool. Thanks for taking the time to help out.
Title: Turn Off Character Menus
Post by: BCDS on August 24, 2006, 06:51:05 PM
Strange
Title: Turn Off Character Menus
Post by: MLeo on August 24, 2006, 06:56:19 PM
Quote from: BCDS
Strange

What is?
Title: Turn Off Character Menus
Post by: Revan999 on August 24, 2006, 07:05:11 PM
Have any of you tryed turing "Character Tool Tips" off in the opinions under general ?
Title: Turn Off Character Menus
Post by: MLeo on August 24, 2006, 07:14:06 PM
Quote from: Revan999
Have any of you tryed turing "Character Tool Tips" off in the opinions under general ?

Those are the ones when you "hover" with the mouse over a character.
Title: Turn Off Character Menus
Post by: Billz on August 25, 2006, 08:46:54 AM
Hey Mleo. Hows it going with this request I made?
Title: Turn Off Character Menus
Post by: MLeo on August 25, 2006, 08:56:05 AM
I haven't been able to work on it since last night (you know, some people need to sleep from time to time :P).

I'll see what I can do today.
Title: Turn Off Character Menus
Post by: Billz on August 25, 2006, 09:32:37 AM
Quote from: MLeo
I haven't been able to work on it since last night (you know, some people need to sleep from time to time :P).

I'll see what I can do today.


Ok cool.
Title: Turn Off Character Menus
Post by: MLeo on August 27, 2006, 03:01:40 PM
Partial success.

If you use the F keys then the menu's won't appear
But if you use the mouse they will.

Another problem is that the camera won't pan around when you use the F keys.:(


Maybe you can use this, and maybe someone else can fix it for any other functionality.

I fear my time may be too limited to continue work on this.
I hope you can use it.

You can start the script when you see the crew by importing HideMenus in the console.
Title: Turn Off Character Menus
Post by: Billz on August 28, 2006, 08:04:27 AM
Quote from: MLeo
Partial success.

If you use the F keys then the menu's won't appear
But if you use the mouse they will.

Another problem is that the camera won't pan around when you use the F keys.:(


Maybe you can use this, and maybe someone else can fix it for any other functionality.

I fear my time may be too limited to continue work on this.
I hope you can use it.

You can start the script when you see the crew by importing HideMenus in the console.


Thanks Mleo. I'll give it a try tonight. Incase you were interested, my 'BC video project' is going to be my own full BC version of the famous 'All Your Base Are Belong To Us' flash music video. You may have heard it. This script will be very helpful. Dont worry, i'll put your name in the credit sequence for the script.