Author Topic: patch: delete hotkey  (Read 804 times)

claymore

  • Guest
patch: delete hotkey
« on: 29 December 2010, 18:56:07 »
This patch adds a delete hotkey. Pressing it causes a dialog to appear asking you to confirm deleting the units you have selected (which could also be your ally's, come to think of it). Also, I removed a comma from the end of game dialog, added a setHp method, and stopped a gui mouse click from registering (and cancelling the current unit selection) when a dialog is present.

Before using, add  "DeleteSelected=Really delete selected units?"  to english.lng  and "DeleteKey=vkDelete"  to glestkeys.ini.

So when would you want to delete your units anyway? Not very often admittedly, but the situation does arise sometimes:

1. Units get trapped occasionally. You can command other units to attack the offending building/units, but that's a hassle.
2. A player might lose all but a handful of units or buildings, and be unable to attack his own units. He's effectively dead, so it would be nice if he could watch the rest of the game unfold with a fully revealed map, like other dead players can.

I know, GAE has this already. I didn't look at their implementation, and I suspect it's probably better. I'm still learning C++...

Titi and softcoder don't like this feature, so I'm posting it here to see if anyone else does. :)
« Last Edit: 29 December 2010, 19:03:26 by claymore »

John.d.h

  • Moderator
  • Airship
  • ********
  • Posts: 3,757
  • I have to go now. My planet needs me.
    • View Profile
Re: patch: delete hotkey
« Reply #1 on: 29 December 2010, 20:17:04 »
Meh.

Gabbe

  • Guest
Re: patch: delete hotkey
« Reply #2 on: 29 December 2010, 21:05:21 »
Useful..?

ElimiNator

  • Airship
  • ********
  • Posts: 3,391
  • The MegaGlest Moder.
    • View Profile
Re: patch: delete hotkey
« Reply #3 on: 29 December 2010, 22:13:05 »
I think it would be good because sometimes your units are in the way and you need to attack them to get through, a delete would be much better.  :)
Get the Vbros': Packs 1, 2, 3, 4, and 5!

Conzar

  • Guest
Re: patch: delete hotkey
« Reply #4 on: 30 December 2010, 02:54:56 »
Reason 2 for delete, can you just gg and leave the game?

I think a delete feature is weird for rts`s.  Kinda reminds me of dungen keeper though...