HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

What's is wrong here? (multiboard)

11-19-2008, 09:01 AM#1
fX_
see latest post for unresolved problem
11-19-2008, 02:03 PM#2
Ammorth
a width of 1 is the entire screen (100%). A width of 0.01 is 1% of the screen. A width of 0.25 is 25% of the screen.

Since the first column has a width of 100%, there is no room for the other columns.
11-19-2008, 11:44 PM#3
Zandose
OT: I thought multiboards couldn't become that large. Did blizzard change that?
11-20-2008, 01:01 AM#4
fX_
This is it, now:

The other columns do not get displayed and the values in the first column are all wrong, still.
Attached Images
File type: jpguntitled.JPG (207.1 KB)
11-20-2008, 01:10 AM#5
Ammorth
Up your column count to at least 8.
11-20-2008, 04:06 AM#6
Jazradel
Try adding
Collapse JASS:
call ShowMultiboard(multiboard, false)
call  ShowMultiboard(multiboard, true)
Or whatever commands toggle it on/off.
11-23-2008, 04:20 AM#7
fX_
New problem:

When I enable this, disable it, then re-enable it, row 12 (index 11) shows up blank. How to fix?

Collapse JASS:
   public method EnableManual takes boolean on returns nothing
        local multiboarditem MBI
        
        set .boolManual = on
        if on then
            call MultiboardSetRowCount(.mb, 15)

            set MBI = MultiboardGetItem(.mb, 10, 0)
            call MultiboardSetItemStyle(MBI, false, false)
            call MultiboardSetItemWidth(MBI, 0.25)

            set MBI = MultiboardGetItem(.mb, 11, 0)
            call MultiboardSetItemStyle(MBI, true, true)
            call MultiboardSetItemWidth(MBI, 0.09)
            call MultiboardSetItemValue(MBI, "Manual - Page ")
            call MultiboardSetItemIcon(MBI, "ReplaceableTextures\\WorldEditUI\\Actions-Quest.blp")

            set MBI = MultiboardGetItem(.mb, 11, 1)
            call MultiboardSetItemStyle(MBI, true, false)
            call MultiboardSetItemWidth(MBI, 0.09)

            set MBI = MultiboardGetItem(.mb, 12, 0)
            call MultiboardSetItemStyle(MBI, false, false)
            call MultiboardSetItemWidth(MBI, 0.02)
            
            set MBI = MultiboardGetItem(.mb, 12, 1)
            call MultiboardSetItemStyle(MBI, true, false)
            call MultiboardSetItemWidth(MBI, 0.25)

            set MBI = MultiboardGetItem(.mb, 13, 0)
            call MultiboardSetItemStyle(MBI, false, false)
            call MultiboardSetItemWidth(MBI, 0.02)
            
            set MBI = MultiboardGetItem(.mb, 13, 1)
            call MultiboardSetItemStyle(MBI, true, false)
            call MultiboardSetItemWidth(MBI, 0.25)

            set MBI = MultiboardGetItem(.mb, 14, 0)
            call MultiboardSetItemStyle(MBI, false, false)
            call MultiboardSetItemWidth(MBI, 0.02)

            set MBI = MultiboardGetItem(.mb, 14, 1)
            call MultiboardSetItemStyle(MBI, true, false)
            call MultiboardSetItemWidth(MBI, 0.25)
        else
            call MultiboardSetRowCount(.mb, 10)
        endif

        set MBI = null
    endmethod
Attached Images
File type: jpgpic.JPG (38.3 KB)
11-23-2008, 07:27 AM#8
Ammorth
Its a bug that can only be fixed by re-creating the multiboard.

http://www.wc3campaigns.net/showpost...4&postcount=30
11-23-2008, 07:39 AM#9
fX_
Ammorth, I am yet able to add text BELOW line 11, but by another function. Explain?
11-23-2008, 08:24 AM#10
Ammorth
You can only use MultiboardSetRowCount() / MultiboardSetColumnCount() once per multiboard. Trying to use it again will result in errors with setting texts on the multiboard.