# Set Leaderboard Column Width
Grammar — Set width of column column in board|Leaderboard to width (% of the screen)
Flags —Native
|Action
Sets the width of a leaderboard column.
# Arguments
int
<preset::Board> — Boardint
— Columnfixed
— Width
Returns — void
native void BoardSetColumnWidth(
int inBoard,
int inCol,
fixed inWidth,
);
# Related
Category: Leaderboard / Format
- Set Leaderboard Sort Column —
void
— BoardSort - Set Leaderboard Groups —
void
— BoardSetGroupCount - Set Leaderboard Group For Row —
void
— BoardRowSetGroup - Set Leaderboard Column Width —
void
— BoardSetColumnWidth - Set Leaderboard Rows —
void
— BoardSetRowCount - Set Leaderboard Columns —
void
— BoardSetColumnCount - Enable/Disable Leaderboard State —
void
— BoardSetState - Show/Hide Leaderboard Minimize Button —
void
— BoardMinimizeShow - Set Leaderboard Minimize Button Color —
void
— BoardMinimizeSetColor - Turn Leaderboard Minimize Button On/Off —
void
— BoardMinimizeEnable - Minimize Leaderboard —
void
— BoardMinimizeSetState
# Examples
campaigns/liberty.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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);