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
 
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
 
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
)
 
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.
Back
Top