• 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.

Detect when multiboard is maximized/minimized?

Status
Not open for further replies.
Level 9
Joined
Apr 19, 2011
Messages
447
Hi.

I want to know if there's any way to detect a player maximizing or minimizing a multiboard. Actually, my proyect is for single player, and I will use a multiboard as some kind of "menu". It would be nice if I could pause the game when this multiboard is maximized, and unpause it when it's minimized.
Is it possible?

Regards
 
Level 23
Joined
Apr 16, 2012
Messages
4,041
There is JASS native
JASS:
native IsMultiboardMinimized            takes multiboard lb returns boolean
you can try it
there is GUI equivalent of it as well
if -
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Last created multiboard) is minimized) Equal to True
        • Then - Actions
        • Else - Actions
or you can try
JASS:
native IsMultiboardDisplayed            takes multiboard lb returns boolean
which is
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Last created multiboard) is showing) Equal to True
        • Then - Actions
        • Else - Actions
idk which one will work better tho
Hope it Helps.
 
Status
Not open for further replies.
Top