Jump to content
The Dark Mod Forums

trigger_guiOverlay


Springheel

Recommended Posts

When I try to use one of these, I get an error that it cannot be spawned because idTrigger_GuiOverlay is an unknown class or something to that effect. Is this trigger not usable in TDM or am I just doing it wrong?

 

I was hoping to use it to trigger full-screen ROQ videos in game.

Link to comment
Share on other sites

Since it is possible to add/remove GUI overlays (like when you are under water), I think it would be possible to get this working. But I don't think we have anyone who could actually implement it...

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Can a script call up a gui, either an overlay like D3's PDA, our readables, or a menugui that's fullscreen.*

Then you're just calling the script with your trigger, and it does all the work.

(For that matter, you could look up how the PDA overlay is called up in Doom3, then use that model.)

 

* I saw this on id's site: "menugui - bool- false: This gui is full screen (use on desktop window)", then you can play the cinematic right in it.

 

Edit: BTW, I also believe with menugui, you could coattail on a gui entity already in-game that you know you can activate (like a readable you proxy-frob in a script? other in-game guis we can have?), then add "menugui" and set to True so it will be full screen, even if it's sitting in a blueroom, and you play the cinematic full screen in it as usual. I wonder if that would work. Or since a readable is already an overlay, maybe changing its size & playing a full-screen cinematic on it is enough by itself.

What do you see when you turn out the light? I can't tell you but I know that it's mine.

Link to comment
Share on other sites

list of gui's from tdm_event.script

 

// Gets the default inventory overlay for the player. All other

// entities will return an invalid value.

scriptEvent float getInventoryOverlay();

 

// Creates a GUI overlay. (must be used on the player)

scriptEvent float createOverlay( string guiFile, float layer );

 

// Destroys a GUI overlay. (must be used on the player)

scriptEvent void destroyOverlay( float handle );

 

// Loads a new file into an existing GUI.

scriptEvent void setGui( float handle, string guiFile );

 

// Returns the file currently loaded by a GUI.

scriptEvent string getGui( float handle );

 

// Sets a GUI parameter.

scriptEvent void setGuiString( float handle, string key, string val );

 

// Returns a GUI parameter.

scriptEvent string getGuiString( float handle, string key );

 

// Sets a GUI parameter.

scriptEvent void setGuiFloat( float handle, string key, float val );

 

// Returns a GUI parameter.

scriptEvent float getGuiFloat( float handle, string key );

 

// Sets a GUI parameter.

scriptEvent void setGuiInt( float handle, string key, float val );

 

// Returns a GUI parameter.

scriptEvent float getGuiInt( float handle, string key );

 

// This is a kludge. It is equivelant to: setGuiString( handle, key, src.getKey(srcKey) )

// However, it's used to bypass the 127 char size limit on script strings.

scriptEvent void setGuiStringFromKey( float handle, string key, entity src, string srcKey );

 

// Calls a named event in a GUI.

scriptEvent void callGui( float handle, string namedEvent );

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • nbohr1more

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 3 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 7 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...