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

muliboard width problem

Status
Not open for further replies.
Level 5
Joined
Mar 19, 2010
Messages
106
hi, Im making a new map and in my triggers im making a multibord that show all the ressources of all players (gold,lumber,food...) I have done all the triggers but for the multiboard width it didn't show all the text I wanted to show in the multiboard, ... can I have a tutorial that show how to make the width ?
... and I don't want the tutorial like all about multiboard because I already used it and It didn't show how to make the width, thanks
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
This would set the width of all items to 3%, if your multiboard has 3 columns and 3 rows.

  • For each (Integer A) from 1 to 3, do (Actions)
    • Loop - Actions
      • For each (Integer B) from 1 to 3, do (Actions)
        • Loop - Actions
          • Multiboard - Set the width for (Last created multiboard) item in column (Integer A), row (Integer B) to 3.00% of the total screen width
 
Level 5
Joined
Mar 19, 2010
Messages
106
This would set the width of all items to 3%, if your multiboard has 3 columns and 3 rows.

  • For each (Integer A) from 1 to 3, do (Actions)
    • Loop - Actions
      • For each (Integer B) from 1 to 3, do (Actions)
        • Loop - Actions
          • Multiboard - Set the width for (Last created multiboard) item in column (Integer A), row (Integer B) to 3.00% of the total screen width

In my trigger I have 3 colunms and 5 rows... (
  • Multiboard - Create a multiboard with 3 columns and 5 rows, titled Ressources
)
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
So change his code appropiatly.

The problem you must watch out for when using GUI multiboard opperations is htting the oplimit. A lot of multiboard GUI actions perform an O(n) itteration through every element in a multiboard eventhough they could look up the element directly.

Do remember that you can not create multiboards at map initialization. Doing so results in their width being messed up.
 
Status
Not open for further replies.
Top