Can you open a webpage from a button/link in Team Arena menu

Locked
bludshot
Posts: 65
Joined: Thu Nov 26, 2009 6:14 am

Can you open a webpage from a button/link in Team Arena menu

Post by bludshot »

I'm working on the (TA) menus for my mod, and I'm wondering if there is a way to have a button that you could click on that when pressed quits (or alt tabs) out of the game and tries to open a url link using your operating system (so in other words, it will open up your default browser and go to that web site).

And I mean without having to code anything new in the mod/game code.

Seems like the answer is probably no, but figured I would ask.
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Can you open a webpage from a button/link in Team Arena menu

Post by ^misantropia^ »

And the answer is indeed 'no'. =)
Pyrite
Posts: 10
Joined: Wed Feb 16, 2000 8:00 am

Re: Can you open a webpage from a button/link in Team Arena menu

Post by Pyrite »

Does the mod/game code have any functions like exec() or system() where you can run a system command/program?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Can you open a webpage from a button/link in Team Arena menu

Post by ^misantropia^ »

Nope. The SDK is designed to run in a sandbox.
Pyrite
Posts: 10
Joined: Wed Feb 16, 2000 8:00 am

Re: Can you open a webpage from a button/link in Team Arena menu

Post by Pyrite »

I bet if he distributes the ioquake3 engine build with his mod, he could add a new client command to do that in ioquake3, and then have the mod/sdk trigger that client command?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Re: Can you open a webpage from a button/link in Team Arena menu

Post by ^misantropia^ »

Yep, but that doesn't satisfy the below requirement. =)
And I mean without having to code anything new in the mod/game code.
Locked