HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Calling Minimize Function

02-23-2004, 05:59 AM#1
Ghost_81st
What would a Event Function look like for Minimizing a Multiboard?
Which Should use for that?

MultiboardMinimizeBJ
MultiboardMinimize

What I am looking for is Hiding multiboard 1 when you minimize and showing multiboard 2 and then when you minimize that you would hide multiboard 2 and show multiboard 1
02-23-2004, 08:15 AM#2
Cubasis
Sadly

There is no Multiboard-related event in common.j at all.

So you have to use a periodic timer where you check if the multiboard is minimized using the following action:

native IsMultiboardMinimized takes multiboard lb returns boolean


Just have it run every 0.1 second or sumtin.

Cubasis
02-23-2004, 08:18 AM#3
Ghost_81st
I can see both of those functions when I look at the JASS editor I downloaded from wc3********...if the only way to do it is via boolean I might as well just let the player hit esc to change multiboards
02-23-2004, 09:50 AM#4
Cubasis
Erhm?

Why? This method works just as well. It actually will likely work better than actually having the event (if you use periodics like 0.05). As Events often have a 0.25 seconds lag-time before it starts running its actiosn while periodics don't.

And do you know how fast 0.05 seconds run? As fast as it takes you to click the button on that minimize-button.

So...erhm....what's the problem?

Cubasis
02-23-2004, 11:17 AM#5
AIAndy
@Ghost_81st: The functions you quoted are used to minimize a multiboard by trigger, not to detect someone minimizing a multiboard.
02-23-2004, 07:52 PM#6
Ghost_81st
Quote:
Originally posted by AIAndy
@Ghost_81st: The functions you quoted are used to minimize a multiboard by trigger, not to detect someone minimizing a multiboard.


-Thanks,
Thats all I wanted to know.. I am not a JASS rocket scientist so I did't know it wasnt a function to detect minimizing.