# Set Leaderboard Column Width

Grammar — Set width of column column in board|Leaderboard to width (% of the screen)
FlagsNative | Action

Sets the width of a leaderboard column.

# Arguments

  • int<preset::Board> — Board
  • int — Column
  • fixed — Width

Returns — void

native void BoardSetColumnWidth(
	int inBoard,
	int inCol,
	fixed inWidth,
);

Category: Leaderboard / Format

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:1192

    BoardSetState(gv_artifactBoard, PlayerGroupAll(), c_boardStateShowHeader, true);
    BoardSetState(gv_artifactBoard, PlayerGroupAll(), c_boardStateShowTitle, false);
    BoardSetColumnWidth(gv_artifactBoard, 1, 25.0);
    BoardItemSetAlignment(gv_artifactBoard, 1, 1, c_alignCenter);
    BoardItemSetAlignment(gv_artifactBoard, 1, 2, c_alignCenter);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1055

    BoardCreate(2, 2, StringExternal("Param/Value/5A8FB6AE"), Color(100.00, 100.00, 100.00));
    gv_leaderboard = BoardLastCreated();
    BoardSetColumnWidth(BoardLastCreated(), 1, 15.0);
    BoardSetColumnWidth(BoardLastCreated(), 2, 5.0);
    BoardMinimizeShow(BoardLastCreated(), PlayerGroupAll(), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1056

    gv_leaderboard = BoardLastCreated();
    BoardSetColumnWidth(BoardLastCreated(), 1, 15.0);
    BoardSetColumnWidth(BoardLastCreated(), 2, 5.0);
    BoardMinimizeShow(BoardLastCreated(), PlayerGroupAll(), false);
    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1110

    BoardCreate(2, 2, StringExternal("Param/Value/E5825392"), Color(100.00, 100.00, 100.00));
    gv_leaderboard = BoardLastCreated();
    BoardSetColumnWidth(BoardLastCreated(), 1, 20.0);
    BoardSetColumnWidth(BoardLastCreated(), 2, 4.0);
    BoardMinimizeShow(BoardLastCreated(), PlayerGroupAll(), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:1111

    gv_leaderboard = BoardLastCreated();
    BoardSetColumnWidth(BoardLastCreated(), 1, 20.0);
    BoardSetColumnWidth(BoardLastCreated(), 2, 4.0);
    BoardMinimizeShow(BoardLastCreated(), PlayerGroupAll(), false);
    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2mapMapScript.galaxy:1192

    BoardSetState(gv_artifactBoard, PlayerGroupAll(), c_boardStateShowHeader, true);
    BoardSetState(gv_artifactBoard, PlayerGroupAll(), c_boardStateShowTitle, false);
    BoardSetColumnWidth(gv_artifactBoard, 1, 25.0);
    BoardItemSetAlignment(gv_artifactBoard, 1, 1, c_alignCenter);
    BoardItemSetAlignment(gv_artifactBoard, 1, 2, c_alignCenter);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:1055

    BoardCreate(2, 2, StringExternal("Param/Value/5A8FB6AE"), Color(100.00, 100.00, 100.00));
    gv_leaderboard = BoardLastCreated();
    BoardSetColumnWidth(BoardLastCreated(), 1, 15.0);
    BoardSetColumnWidth(BoardLastCreated(), 2, 5.0);
    BoardMinimizeShow(BoardLastCreated(), PlayerGroupAll(), false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:1056

    gv_leaderboard = BoardLastCreated();
    BoardSetColumnWidth(BoardLastCreated(), 1, 15.0);
    BoardSetColumnWidth(BoardLastCreated(), 2, 5.0);
    BoardMinimizeShow(BoardLastCreated(), PlayerGroupAll(), false);
    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:1110

    BoardCreate(2, 2, StringExternal("Param/Value/E5825392"), Color(100.00, 100.00, 100.00));
    gv_leaderboard = BoardLastCreated();
    BoardSetColumnWidth(BoardLastCreated(), 1, 20.0);
    BoardSetColumnWidth(BoardLastCreated(), 2, 4.0);
    BoardMinimizeShow(BoardLastCreated(), PlayerGroupAll(), false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2mapMapScript.galaxy:1111

    gv_leaderboard = BoardLastCreated();
    BoardSetColumnWidth(BoardLastCreated(), 1, 20.0);
    BoardSetColumnWidth(BoardLastCreated(), 2, 4.0);
    BoardMinimizeShow(BoardLastCreated(), PlayerGroupAll(), false);
    BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowTitle, false);