Author Topic: input box procedures/functions  (Read 570 times)

0 Members and 1 Guest are viewing this topic.

Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
input box procedures/functions
« on: January 18, 2008, 01:52:30 pm »
if this not suggested yet...

Procedure MsgBox(ID: byte; OnYes, OnNo: variant);

makes a msg box on players screen (in the ok/cancel format)

Function InpBox(ID: byte; InBox: string): string;

possibly where Result:=players input in the box (InBox is what is in the box when it pops up)



windows only, kids ;)
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline rhide

  • Major
  • *
  • Posts: 60
  • Coffee-addict
    • Vrastar-Hai soldat clan
Re: input box procedures/functions
« Reply #1 on: January 18, 2008, 03:02:24 pm »
No way I would want that! First of all I can't really see any reason, and secondly I wouldnt want my gaming experience ruined by yesno dialogs appearing in the middle of the screen.

However, it would be very neat to be able to show a F11/F12 box with contents of your own choise, and not only kick/ban/mapvotes.
Warning! Division by zero seriously injures yourself and the people in your surroundings.

Proud member of Vrastar-Hai:
http://www.guldheden.com/~erga050/vrastar-hai

Offline Kavukamari

  • Camper
  • ***
  • Posts: 435
  • 3.14159265358979, mmm... pi
Re: input box procedures/functions
« Reply #2 on: January 18, 2008, 07:00:31 pm »
they would be for "are you sure you want to ***" or stuff like using a command /quit makes a box that asks you if ur sure (like the one that asks if you want to be forwarded to other serv)
"Be mindful of fame, show a mighty courage, watch against foes. Nor shalt thou lack what thou desirest, if with thy life thou hast comest out from that heroic task."

Offline ghg

  • Camper
  • ***
  • Posts: 411
  • Village Idiot
Re: input box procedures/functions
« Reply #3 on: January 27, 2008, 09:24:39 am »
Not possible to script in Soldat server I expect.
-=Gradius wuz you=-