• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Multiboard help (top space and font size in Reforget)

Status
Not open for further replies.
Level 4
Joined
Apr 20, 2023
Messages
43
33b650889d10a8221d9383785733e83.png



1. i hide the game UI (hide), and when i create multiboard ,its have a space in top, i want to agline with top. can someone tell me how to fix? here is my hide ui script

Code:
    BlzFrameSetAllPoints(BlzGetOriginFrame(ORIGIN_FRAME_WORLD_FRAME,0),BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI,0))
    -- BlzHideOriginFrames(true)
    -- BlzFrameSetVisible(BlzGetFrameByName("ConsoleUIBackdrop",0), false)
    BlzFrameSetSize(BlzGetFrameByName("ConsoleUIBackdrop", 0), 0, 0.0001)

     local f = BlzFrameGetChild(BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0), 5)
    BlzFrameSetVisible( f, false )
    -- BlzFrameSetSize(f, 0, 0.0001)

    ------------------------------------------------------
    BlzFrameSetAbsPoint(BlzGetFrameByName("ConsoleUI", 0), FRAMEPOINT_TOPLEFT, 0.0, 0.67)
    BlzFrameSetSize(BlzGetFrameByName("ResourceBarFrame", 0), 0, 0.0001)
    BlzFrameSetSize(BlzGetFrameByName("UpperButtonBarFrame", 0), 0, 0.0001)

2. In regorget version(1.32) how to change the multiboard font size?
 
,its have a space in top, i want to agline with top. can someone tell me how to fix?
This places the Multiboard to the top. Needs to be done after you created & showed the multiboard.
Lua:
BlzFrameSetAbsPoint(BlzGetFrameByName("Multiboard", 0), FRAMEPOINT_TOPRIGHT, 0.8, 0.6)
 
Level 4
Joined
Apr 20, 2023
Messages
43
This places the Multiboard to the top. Needs to be done after you created & showed the multiboard.
Lua:
BlzFrameSetAbsPoint(BlzGetFrameByName("Multiboard", 0), FRAMEPOINT_TOPRIGHT, 0.8, 0.6)
many thanks! i will try it later
do you know how to change the multiboard font size in reforget version?
 
Level 4
Joined
Apr 20, 2023
Messages
43
This places the Multiboard to the top. Needs to be done after you created & showed the multiboard.
Lua:
BlzFrameSetAbsPoint(BlzGetFrameByName("Multiboard", 0), FRAMEPOINT_TOPRIGHT, 0.8, 0.6)
it worked! thank you very much. another question (resize multiboard value size)can you help me?
 
There is a file that has all the font Sizes you could for yourself make a Allow Local Files clone and increase the FontSize war3.w3mod\_locales\xxxxx\ui\miscui.txt
LeaderBoard=0.010 // leader board text
make LeaderBoard bigger like LeaderBoard=0.015

In map script one could scale the Multiboard content. Although this will not increase the size of the multiboard box and one also needs to place it further left.
Lua:
BlzFrameSetScale(BlzGetFrameByName("MultiboardListContainer", 0), 1.2)
Hence one would also need to increase the size of the content box:
Lua:
BlzFrameSetSize(BlzGetFrameByName("MultiboardBackdrop", 0), BlzFrameGetWidth(BlzGetFrameByName("MultiboardListContainer", 0)), BlzFrameGetHeight(BlzGetFrameByName("MultiboardListContainer", 0)))

In case one cares the multiboard.fdf, the blueprint for the multiboard-frame.

Code:
// -- INCLUDE FILES ---------------------------------------------------------
IncludeFile "UI\FrameDef\UI\EscMenuTemplates.fdf",
// -- LOCAL TEMPLATES -------------------------------------------------------
// -- FRAMES ----------------------------------------------------------------
Frame "FRAME" "Multiboard" {
    Height  0.024,
    Width   0.024,
    Frame "GLUETEXTBUTTON" "MultiboardMinimizeButton" {
        SetAllPoints,
        ControlBackdrop "ButtonBackdropTemplate",
        Frame "BACKDROP" "ButtonBackdropTemplate" {
            DecorateFileNames,
            BackdropBackground          "MultiboardMinimizeButtonEnabled",
            BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
            BackdropCornerSize          0.0125,
            BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
            BackdropEdgeFile            "MultiboardBorder",
        }
        ControlPushedBackdrop "ButtonPushedBackdropTemplate",
        Frame "BACKDROP" "ButtonPushedBackdropTemplate" {
            DecorateFileNames,
            BackdropBackground          "MultiboardMinimizeButtonPushed",
            BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
            BackdropCornerSize          0.0125,
            BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
            BackdropEdgeFile            "MultiboardBorder",
        }
        ControlDisabledBackdrop "ButtonDisabledBackdropTemplate",
        Frame "BACKDROP" "ButtonDisabledBackdropTemplate" {
            DecorateFileNames,
            BackdropBackground          "EscMenuButtonBackground",
            BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
            BackdropCornerSize          0.0125,
            BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
            BackdropEdgeFile            "MultiboardBorder",
        }
        ControlDisabledPushedBackdrop "ButtonDisabledPushedBackdropTemplate",
        Frame "BACKDROP" "ButtonDisabledPushedBackdropTemplate" {
            DecorateFileNames,
            BackdropBackground          "MultiboardMinimizeButtonDisabled",
            BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
            BackdropCornerSize          0.0125,
            BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
            BackdropEdgeFile            "MultiboardBorder",
        }
    }
    Frame "BACKDROP" "MultiboardTitleBackdrop" {
        Width  0.2f,
        //Height 0.011f,
        SetPoint TOPRIGHT,      "MultiboardMinimizeButton", TOPLEFT,    0.0057, 0.0,
        SetPoint BOTTOMRIGHT,   "MultiboardMinimizeButton", BOTTOMLEFT, 0.0057, 0.0,
        UseActiveContext,
        SetAllPoints,
        DecorateFileNames,
        BackdropTileBackground,
        BackdropBackground          "MultiboardBackground",
        BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
        BackdropCornerSize          0.0125,
        BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
        BackdropEdgeFile            "MultiboardBorder",
        BackdropBlendAll,
    }
    Frame "TEXT" "MultiboardTitle" INHERITS "EscMenuLabelTextTemplate" {
        UseActiveContext,
        SetPoint TOPLEFT,       "MultiboardTitleBackdrop", TOPLEFT,      0.0, 0.0,
        SetPoint BOTTOMRIGHT,   "MultiboardTitleBackdrop", BOTTOMRIGHT,  0.0, 0.0,
        FrameFont "MasterFont", 0.011, "",
        FontJustificationH JUSTIFYCENTER,
    }
    Frame "BACKDROP" "MultiboardBackdrop" {
        UseActiveContext,
        SetPoint TOPRIGHT,  "MultiboardMinimizeButton", BOTTOMRIGHT, 0.0, 0.0057,
        SetPoint TOPLEFT,   "MultiboardTitleBackdrop",  BOTTOMLEFT,  0.0, 0.0057,
        DecorateFileNames,
        BackdropTileBackground,
        BackdropBackground          "MultiboardBackground",
        BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
        BackdropCornerSize          0.0125,
        BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
        BackdropEdgeFile            "MultiboardBorder",
        BackdropBlendAll,
    }
    Frame "FRAME" "MultiboardListContainer" {
        UseActiveContext,
        SetPoint TOPLEFT,       "MultiboardBackdrop",  TOPLEFT,          0.001f, -0.0048,
        SetPoint BOTTOMRIGHT,   "MultiboardBackdrop",  BOTTOMRIGHT,     -0.001f,  0.001,
    }
}
 
Level 4
Joined
Apr 20, 2023
Messages
43
There is a file that has all the font Sizes you could for yourself make a Allow Local Files clone and increase the FontSize war3.w3mod\_locales\xxxxx\ui\miscui.txt
LeaderBoard=0.010 // leader board text
make LeaderBoard bigger like LeaderBoard=0.015

In map script one could scale the Multiboard content. Although this will not increase the size of the multiboard box and one also needs to place it further left.
Lua:
BlzFrameSetScale(BlzGetFrameByName("MultiboardListContainer", 0), 1.2)
Hence one would also need to increase the size of the content box:
Lua:
BlzFrameSetSize(BlzGetFrameByName("MultiboardBackdrop", 0), BlzFrameGetWidth(BlzGetFrameByName("MultiboardListContainer", 0)), BlzFrameGetHeight(BlzGetFrameByName("MultiboardListContainer", 0)))

In case one cares the multiboard.fdf, the blueprint for the multiboard-frame.

Code:
// -- INCLUDE FILES ---------------------------------------------------------
IncludeFile "UI\FrameDef\UI\EscMenuTemplates.fdf",
// -- LOCAL TEMPLATES -------------------------------------------------------
// -- FRAMES ----------------------------------------------------------------
Frame "FRAME" "Multiboard" {
    Height  0.024,
    Width   0.024,
    Frame "GLUETEXTBUTTON" "MultiboardMinimizeButton" {
        SetAllPoints,
        ControlBackdrop "ButtonBackdropTemplate",
        Frame "BACKDROP" "ButtonBackdropTemplate" {
            DecorateFileNames,
            BackdropBackground          "MultiboardMinimizeButtonEnabled",
            BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
            BackdropCornerSize          0.0125,
            BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
            BackdropEdgeFile            "MultiboardBorder",
        }
        ControlPushedBackdrop "ButtonPushedBackdropTemplate",
        Frame "BACKDROP" "ButtonPushedBackdropTemplate" {
            DecorateFileNames,
            BackdropBackground          "MultiboardMinimizeButtonPushed",
            BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
            BackdropCornerSize          0.0125,
            BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
            BackdropEdgeFile            "MultiboardBorder",
        }
        ControlDisabledBackdrop "ButtonDisabledBackdropTemplate",
        Frame "BACKDROP" "ButtonDisabledBackdropTemplate" {
            DecorateFileNames,
            BackdropBackground          "EscMenuButtonBackground",
            BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
            BackdropCornerSize          0.0125,
            BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
            BackdropEdgeFile            "MultiboardBorder",
        }
        ControlDisabledPushedBackdrop "ButtonDisabledPushedBackdropTemplate",
        Frame "BACKDROP" "ButtonDisabledPushedBackdropTemplate" {
            DecorateFileNames,
            BackdropBackground          "MultiboardMinimizeButtonDisabled",
            BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
            BackdropCornerSize          0.0125,
            BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
            BackdropEdgeFile            "MultiboardBorder",
        }
    }
    Frame "BACKDROP" "MultiboardTitleBackdrop" {
        Width  0.2f,
        //Height 0.011f,
        SetPoint TOPRIGHT,      "MultiboardMinimizeButton", TOPLEFT,    0.0057, 0.0,
        SetPoint BOTTOMRIGHT,   "MultiboardMinimizeButton", BOTTOMLEFT, 0.0057, 0.0,
        UseActiveContext,
        SetAllPoints,
        DecorateFileNames,
        BackdropTileBackground,
        BackdropBackground          "MultiboardBackground",
        BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
        BackdropCornerSize          0.0125,
        BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
        BackdropEdgeFile            "MultiboardBorder",
        BackdropBlendAll,
    }
    Frame "TEXT" "MultiboardTitle" INHERITS "EscMenuLabelTextTemplate" {
        UseActiveContext,
        SetPoint TOPLEFT,       "MultiboardTitleBackdrop", TOPLEFT,      0.0, 0.0,
        SetPoint BOTTOMRIGHT,   "MultiboardTitleBackdrop", BOTTOMRIGHT,  0.0, 0.0,
        FrameFont "MasterFont", 0.011, "",
        FontJustificationH JUSTIFYCENTER,
    }
    Frame "BACKDROP" "MultiboardBackdrop" {
        UseActiveContext,
        SetPoint TOPRIGHT,  "MultiboardMinimizeButton", BOTTOMRIGHT, 0.0, 0.0057,
        SetPoint TOPLEFT,   "MultiboardTitleBackdrop",  BOTTOMLEFT,  0.0, 0.0057,
        DecorateFileNames,
        BackdropTileBackground,
        BackdropBackground          "MultiboardBackground",
        BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
        BackdropCornerSize          0.0125,
        BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
        BackdropEdgeFile            "MultiboardBorder",
        BackdropBlendAll,
    }
    Frame "FRAME" "MultiboardListContainer" {
        UseActiveContext,
        SetPoint TOPLEFT,       "MultiboardBackdrop",  TOPLEFT,          0.001f, -0.0048,
        SetPoint BOTTOMRIGHT,   "MultiboardBackdrop",  BOTTOMRIGHT,     -0.001f,  0.001,
    }
}
IMG20230501160153.jpg

i download it and why can not find miscui. txt?
@Tasyen
 
Level 4
Joined
Apr 20, 2023
Messages
43
There is a file that has all the font Sizes you could for yourself make a Allow Local Files clone and increase the FontSize war3.w3mod\_locales\xxxxx\ui\miscui.txt
LeaderBoard=0.010 // leader board text
make LeaderBoard bigger like LeaderBoard=0.015

In map script one could scale the Multiboard content. Although this will not increase the size of the multiboard box and one also needs to place it further left.
Lua:
BlzFrameSetScale(BlzGetFrameByName("MultiboardListContainer", 0), 1.2)
Hence one would also need to increase the size of the content box:
Lua:
BlzFrameSetSize(BlzGetFrameByName("MultiboardBackdrop", 0), BlzFrameGetWidth(BlzGetFrameByName("MultiboardListContainer", 0)), BlzFrameGetHeight(BlzGetFrameByName("MultiboardListContainer", 0)))

In case one cares the multiboard.fdf, the blueprint for the multiboard-frame.

Code:
// -- INCLUDE FILES ---------------------------------------------------------
IncludeFile "UI\FrameDef\UI\EscMenuTemplates.fdf",
// -- LOCAL TEMPLATES -------------------------------------------------------
// -- FRAMES ----------------------------------------------------------------
Frame "FRAME" "Multiboard" {
    Height  0.024,
    Width   0.024,
    Frame "GLUETEXTBUTTON" "MultiboardMinimizeButton" {
        SetAllPoints,
        ControlBackdrop "ButtonBackdropTemplate",
        Frame "BACKDROP" "ButtonBackdropTemplate" {
            DecorateFileNames,
            BackdropBackground          "MultiboardMinimizeButtonEnabled",
            BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
            BackdropCornerSize          0.0125,
            BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
            BackdropEdgeFile            "MultiboardBorder",
        }
        ControlPushedBackdrop "ButtonPushedBackdropTemplate",
        Frame "BACKDROP" "ButtonPushedBackdropTemplate" {
            DecorateFileNames,
            BackdropBackground          "MultiboardMinimizeButtonPushed",
            BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
            BackdropCornerSize          0.0125,
            BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
            BackdropEdgeFile            "MultiboardBorder",
        }
        ControlDisabledBackdrop "ButtonDisabledBackdropTemplate",
        Frame "BACKDROP" "ButtonDisabledBackdropTemplate" {
            DecorateFileNames,
            BackdropBackground          "EscMenuButtonBackground",
            BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
            BackdropCornerSize          0.0125,
            BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
            BackdropEdgeFile            "MultiboardBorder",
        }
        ControlDisabledPushedBackdrop "ButtonDisabledPushedBackdropTemplate",
        Frame "BACKDROP" "ButtonDisabledPushedBackdropTemplate" {
            DecorateFileNames,
            BackdropBackground          "MultiboardMinimizeButtonDisabled",
            BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
            BackdropCornerSize          0.0125,
            BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
            BackdropEdgeFile            "MultiboardBorder",
        }
    }
    Frame "BACKDROP" "MultiboardTitleBackdrop" {
        Width  0.2f,
        //Height 0.011f,
        SetPoint TOPRIGHT,      "MultiboardMinimizeButton", TOPLEFT,    0.0057, 0.0,
        SetPoint BOTTOMRIGHT,   "MultiboardMinimizeButton", BOTTOMLEFT, 0.0057, 0.0,
        UseActiveContext,
        SetAllPoints,
        DecorateFileNames,
        BackdropTileBackground,
        BackdropBackground          "MultiboardBackground",
        BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
        BackdropCornerSize          0.0125,
        BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
        BackdropEdgeFile            "MultiboardBorder",
        BackdropBlendAll,
    }
    Frame "TEXT" "MultiboardTitle" INHERITS "EscMenuLabelTextTemplate" {
        UseActiveContext,
        SetPoint TOPLEFT,       "MultiboardTitleBackdrop", TOPLEFT,      0.0, 0.0,
        SetPoint BOTTOMRIGHT,   "MultiboardTitleBackdrop", BOTTOMRIGHT,  0.0, 0.0,
        FrameFont "MasterFont", 0.011, "",
        FontJustificationH JUSTIFYCENTER,
    }
    Frame "BACKDROP" "MultiboardBackdrop" {
        UseActiveContext,
        SetPoint TOPRIGHT,  "MultiboardMinimizeButton", BOTTOMRIGHT, 0.0, 0.0057,
        SetPoint TOPLEFT,   "MultiboardTitleBackdrop",  BOTTOMLEFT,  0.0, 0.0057,
        DecorateFileNames,
        BackdropTileBackground,
        BackdropBackground          "MultiboardBackground",
        BackdropCornerFlags         "UL|UR|BL|BR|T|L|B|R",
        BackdropCornerSize          0.0125,
        BackdropBackgroundInsets    0.005f 0.005f 0.005f 0.005f,
        BackdropEdgeFile            "MultiboardBorder",
        BackdropBlendAll,
    }
    Frame "FRAME" "MultiboardListContainer" {
        UseActiveContext,
        SetPoint TOPLEFT,       "MultiboardBackdrop",  TOPLEFT,          0.001f, -0.0048,
        SetPoint BOTTOMRIGHT,   "MultiboardBackdrop",  BOTTOMRIGHT,     -0.001f,  0.001,
    }
}
View attachment 432690
i download it and why can not find miscui. txt
@Tasyen
it might be just in war3.w3mod\ui\miscui.txt (could move around depending of your warcraft 3 version).
oh it is small in asian font
LeaderBoard=0.011 // leader board text
LeaderBoard:deDE=0.010
LeaderBoard:koKR,zhCN,zhTW=0.007
my version is 1.32 can you tell me your wc3 version?
 
Level 4
Joined
Apr 20, 2023
Messages
43
war3.w3mod\_locales\xxxxx\ui\miscui.txt is V1.31 & V1.30
war3.w3mod\ui\miscui.txt is current online

War3xlocal.mpq\ui\miscui.txt V1.26
maybe in regorged version can not edit. i use global search by casc to find any keyword . it not found... lol
 
Level 4
Joined
Apr 20, 2023
Messages
43
war3.w3mod\_locales\xxxxx\ui\miscui.txt is V1.31 & V1.30
war3.w3mod\ui\miscui.txt is current online

War3xlocal.mpq\ui\miscui.txt V1.26
in fact. i want make a multiboard to show player game message.(fixed length and scroll by array element). but the font size is too small. lol... if use player chat msg to implement it will cover game ranges , i think player will feel bad.
can you have otherway to avoid it (display in game screen top or buttom and can sesize font solution)?
 
Sounds like you want LogDialog in multiplayer, or some NPC dialog system or some event msg system, not sure.
you said you are in V1.32+, hence one can create all that with custom UI.

One could create a custom Textarea as child of a Multiboard and add text wanted to it. for text scaling one would make a new textarea blueprint in fdf shown in UI: TEXTAREA the scrolling Text Frame

Example needs escmenu templates loaded in
Lua:
local frame = BlzCreateFrame("EscMenuTextAreaTemplate", BlzGetFrameByName("MultiboardListContainer", 0), 0, 0)
BlzFrameSetAlpha(BlzGetFrameByName("MultiboardBackdrop", 0), 0)
BlzFrameSetPoint(frame, FRAMEPOINT_TOPRIGHT, BlzGetFrameByName("MultiboardListContainer", 0), FRAMEPOINT_TOPRIGHT, 0, 0)
BlzFrameSetSize(frame, 0.4, 0.3)
BlzFrameSetText(frame, "my super long Text")
BlzFrameAddText(frame, "myo ther Text")
TextArea = frame

or you could make a custom LogDialog which you show when a custom button is clicked.

you still would need to add the text to the textarea with BlzFrameAddText(frame, "myo ther Text") right when you display the text normaly.
 
Level 4
Joined
Apr 20, 2023
Messages
43
Sounds like you want LogDialog in multiplayer, or some NPC dialog system or some event msg system, not sure.
you said you are in V1.32+, hence one can create all that with custom UI.

One could create a custom Textarea as child of a Multiboard and add text wanted to it. for text scaling one would make a new textarea blueprint in fdf shown in UI: TEXTAREA the scrolling Text Frame

Example needs escmenu templates loaded in
Lua:
local frame = BlzCreateFrame("EscMenuTextAreaTemplate", BlzGetFrameByName("MultiboardListContainer", 0), 0, 0)
BlzFrameSetAlpha(BlzGetFrameByName("MultiboardBackdrop", 0), 0)
BlzFrameSetPoint(frame, FRAMEPOINT_TOPRIGHT, BlzGetFrameByName("MultiboardListContainer", 0), FRAMEPOINT_TOPRIGHT, 0, 0)
BlzFrameSetSize(frame, 0.4, 0.3)
BlzFrameSetText(frame, "my super long Text")
BlzFrameAddText(frame, "myo ther Text")
TextArea = frame

or you could make a custom LogDialog which you show when a custom button is clicked.

you still would need to add the text to the textarea with BlzFrameAddText(frame, "myo ther Text") right when you display the text normaly.
This is very helpful for me. thanks a millons!!! by the way , it support different text color?
 
This is very helpful for me. thanks a millons!!! by the way , it support different text color?
Custom UI supports text color like warcraft 3 tooltip texts. And they can be setuped to have color x on default, But the tooltip textcolor codes is easier.
 
Status
Not open for further replies.
Top