• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Fast Simple Two Questions

Status
Not open for further replies.
Level 9
Joined
Jul 24, 2007
Messages
308
1 - Does this leak?
  • Item - Pick every item in Region 000 <gen> and do (Actions)
    • Loop - Actions
      • Item - Remove (Picked item)
2 - What are the possible actions to make a dialogue name disappears?

a trigger on map initialization
  • Dialog - Change the title of Dialog7 to Choose Game Difficu...
  • Dialog - Change the title of Dialog to Choose Game Mode

a trigger that runs the dialogue when remaking (in-game remake):
  • Dialog - Change the title of Dialog7 to Choose Game Difficu...
  • Dialog - Change the title of Dialog to Choose Game Mode
  • Dialog - Show Dialog7 for Player 1 (Red)
  • //when the dialogue shows on next time, the name is removed! , but buttons still have the same label
 
Level 3
Joined
Dec 22, 2007
Messages
35
That is a global variable region, so it can't leak out of principle since he thinks it's important enough to be kept throughout the entire course of his game.

But yes you're right, the dumb GUI for group function leaks if you do not set that boolean equal to true as stated in that post. That's why JASS is better, GroupEnum FTW ^^
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
Picking units leak because it creates a Unit Group every time you use it, even if the GUI doesn't show it (crappy GUI :S).

The Pick Items however... err... I do not know exacly what it does since I can't look at the real code of EnumItemsInRect, but from a pure guess ill say it doesn't leak.
 
Status
Not open for further replies.
Top