Jass documentation Database

JASS Documentation Database REFORGED


Results for the query "MultiboardSetItemWidthBJ" as a "function"

The search keyword must be a single word (no spaces).

Function MultiboardSetItemWidthBJ

Line: 6318
Location: blizzard.j
Constant? no
Type: function
Arguments: multiboard mb, integer col, integer row, real width
Returns: nothing

Preview

Extra spaces may have been removed from the original file to show the function in a comfortable way.
  1. function MultiboardSetItemWidthBJ takes multiboard mb, integer col, integer row, real width returns nothing
  2.     local integer curRow = 0
  3.     local integer curCol = 0
  4.     local integer numRows = MultiboardGetRowCount(mb)
  5.     local integer numCols = MultiboardGetColumnCount(mb)
  6.     local multiboarditem mbitem = null
  7.  
  8.     // Loop over rows, using 1-based index
  9.     loop
  10.         set curRow = curRow + 1
  11.         exitwhen curRow > numRows
  12.  
  13.         // Apply setting to the requested row, or all rows (if row is 0)
  14.         if (row == 0 or row == curRow) then
  15.             // Loop over columns, using 1-based index
  16.             set curCol = 0
  17.             loop
  18.                 set curCol = curCol + 1
  19.                 exitwhen curCol > numCols
  20.  
  21.                 // Apply setting to the requested column, or all columns (if col is 0)
  22.                 if (col == 0 or col == curCol) then
  23.                     set mbitem = MultiboardGetItem(mb, curRow - 1, curCol - 1)
  24.                     call MultiboardSetItemWidth(mbitem, width/100.0)
  25.                     call MultiboardReleaseItem(mbitem)
  26.                 endif
  27.             endloop
  28.         endif
  29.     endloop
  30. endfunction
"Uh-oh, my Tinker bell." Hmmm... there's no info about this keyword... be the first one in contribute with the keyword MultiboardSetItemWidthBJ. You must be logged into the site in order to give us a hand in keeping updated the information. If you don't have an account, you can create one here.
Page loaded in 0.0753 seconds.
Vivir aprendiendo.co - A place for learning stuff, in Spanish   Chaos Realm - The world of Game modders and wc3 addicts   Diplo, a gaming community   Power of Corruption, an altered melee featuring Naga and Demon. Play it now!!!   WC3JASS.com - The JASS Vault + vJASS and Zinc   Jetcraft - A Starcraft II mod   WormTastic Clan (wTc)   Warcraft RESOURCES Reforged: Modelos, mapas, proyectos y mas...