| 04-11-2007, 04:50 AM | #1 |
Ok. I made a bunch of multiboards, yeah yeah woohoo. Each one has 2 columns and 5-6 rows. The problem is, these multiboards show up miniscule, showing only the first word or few letters of each row! Do I need to add Icon and Textless columns to extend the multiboard, or did I miss a step somewhere? Here's an example of one of my MB's. JASS:function Demon_MB_Actions takes nothing returns nothing set udg_Multiboards[4] = CreateMultiboardBJ( 2, 5, "Hints for Demon" ) call MultiboardSetTitleTextColor( udg_Multiboards[4], 255, 0, 0, 0 ) call MultiboardSetItemIconBJ( udg_Multiboards[4], 0, 0, "ReplaceableTextures\\CommandButtons\\BTNRegeneration.blp" ) call MultiboardSetItemValueBJ( udg_Multiboards[4], 1, 1, "DEMON" ) call MultiboardSetItemValueBJ( udg_Multiboards[4], 2, 1, "The Demon wolf attacks strong but slow, and his spells deal damage in intervals." ) call MultiboardSetItemValueBJ( udg_Multiboards[4], 2, 2, "The text command for Demons is -Demon" ) call MultiboardSetItemValueBJ( udg_Multiboards[4], 2, 3, "The Demon's Chaos Barrier drains mana with each attack taken. Be careful!" ) call MultiboardSetItemValueBJ( udg_Multiboards[4], 2, 4, "You need to eat to keep your food (mana) above 0. Simply be near a corpse and use 'eat'." ) call MultiboardSetItemValueBJ( udg_Multiboards[4], 2, 5, "The Demon wolf can actually manage to fend for himself not too badly." ) endfunction //=========================================================================== function InitTrig_Demon_MB takes nothing returns nothing local trigger t = CreateTrigger() call TriggerRegisterTimerEventSingle( t, 0.03 ) call TriggerAddAction( t, function Demon_MB_Actions ) set t = null endfunction For the second column, the only words that showed up were the The's and the You. any idea how to fix that? |
| 04-11-2007, 04:52 AM | #2 |
Your supposed to set the width percentage... Hold on, give me min, I'll post an example. (I just need to get WE open)Here is an example of what to do: JASS:call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), <Column>, <Row>, <Percentage> ) JASS:call MultiboardSetItemWidthBJ( GetLastCreatedMultiboard(), 1, 7, 8 ) ![]() |
| 04-11-2007, 04:54 AM | #3 |
EDIT: Cool, thanks. What would you recommend for the amount of width for what I've got? (Just take the longest, they'll all fit inside that) |
| 04-11-2007, 05:23 AM | #4 |
Your welcome. If your texts will be that long, I suggest having it like this: JASS:call MultiboardSetItemWidthBJ( udg_Multiboards[4], 0, 0, 3 ) //That will be for the icon area// call MultiboardSetItemWidthBJ( udg_Multiboards[4], 1, 1, 5) //That will be for the "DEMON" text// call MultiboardSetItemWidthBJ( udg_Multiboards[4], 2, 1, 19) //That will be for the "The Demon attacks..." text// call MultiboardSetItemWidthBJ( udg_Multiboards[4], 2, 2, 12) //That will be for the "The text command for Demons..." text// call MultiboardSetItemWidthBJ( udg_Multiboards[4], 2, 3, 16) //That will be for the "Chaos Barrier..." text// call MultiboardSetItemWidthBJ( udg_Multiboards[4], 2, 4, 23) //That will be for the "Eat... keep... food (mana)" text// call MultiboardSetItemWidthBJ( udg_Multiboards[4], 2, 5, 18) //That will be for the last one// I hope this helps! ![]() |
