Home   Help Search Login Register  

Author Topic: Dialog prob  (Read 857 times)

0 Members and 2 Guests are viewing this topic.

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Dialog prob
« on: 07 Jan 2005, 20:55:35 »
Our ECL MP Template has a WeaponDialog,it let the players choose weapons\ammo in the beginning and during respawn in a game.

If the respawntime is 30 seconds,a timerscript is working and displays the countdown,when counter reaches 0 the respawnbutton is enabled and U can respawn.

We found a problem during countdown when a player hits ENTER on the keyboard.Then the dialog closes and is messed up whole game.It looks like ENTER causes CloseDialog 102 where [102 =(Respawn idc)],alltho this button is disabled with ctrlenable [102, false].

The ENTER key is attached in OFP to "perform action"    (client setting)

DisableUserinput false is no option,we need to select ammo\weapons.

Does anybody has an idea how I could fix this problem?

Thx
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

bored_onion

  • Guest
Re:Dialog prob
« Reply #1 on: 07 Jan 2005, 21:05:39 »
try making default=false in the class of the various bits of your dialog. that prevents enter doing stuff i think.

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:Dialog prob
« Reply #2 on: 08 Jan 2005, 15:07:39 »
Do U mean disable all buttons?

Or what line should I edit?
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

bored_onion

  • Guest
Re:Dialog prob
« Reply #3 on: 08 Jan 2005, 16:59:14 »
when you are editing the parent class of the button (i think) put in a line which reads

Code: [Select]
default=false

and that prevents stuff happening when you press the enter key
ill double check that though

EDIT: double checked in a tutorial and it should work
« Last Edit: 08 Jan 2005, 17:01:43 by bored_onion »

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:Dialog prob
« Reply #4 on: 08 Jan 2005, 17:42:19 »
Ow the line "default = false " was already in the "RscButton class :(

Probably something else is causing problems :@

But thanks for the help m8 :)

http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)

bored_onion

  • Guest
Re:Dialog prob
« Reply #5 on: 08 Jan 2005, 20:50:59 »
dang, then maybe check that when you did the class for the actual button and not just the parent that you didnt set it back to true or something. that is my last idea.

AK-Chester

  • Guest
Re:Dialog prob
« Reply #6 on: 09 Jan 2005, 04:03:32 »
A dummy button (placed somewhere outside the screen and with no action attached) with the line "default = true;" might do the trick (?).

Offline Platoon Patton

  • Members
  • *
  • "Barbecue" CreateVehicle getpos LLama
Re:Dialog prob
« Reply #7 on: 09 Jan 2005, 14:42:49 »
Caramba it works!!

I created RscButton2 class with default = true.

I added an extra button without any function,and the ENTER key is now assigned to this button  :) (You still can change it with the arrow keys)

Anyway,prob fixed,thx alot for the help Bored_Onion\AK_Chester!

I wish I could show the Smiley with the two beer cans :(
http://www.platoon-clan.com/ We always wellcome dedicated OFP players :)

http://www.european-combat-league.com/index.php To play with us in the best OFP league ;)