# Set Leaderboard Item Alignment
Grammar — Set board|Leaderboard item alignment at column column and row row to align|Alignment
Flags —Native
|Action
Sets the alignment of text in a location on a leaderboard.
# Arguments
int
<preset::Board> — Boardint
— Columnint
— Rowint
<preset::AlignmentHorizontal> — Align
Returns — void
native void BoardItemSetAlignment(
int inBoard,
int inCol,
int inRow,
int inAlign,
);
# Related
Category: Leaderboard / Leaderboard Items
- Set Leaderboard Item Text —
void
— BoardItemSetText - Set Leaderboard Item Text Color —
void
— BoardItemSetTextColor - Set Leaderboard Item Sort Order —
void
— BoardItemSetSortValue - Set Leaderboard Item Icon —
void
— BoardItemSetIcon - Set Leaderboard Item Background Color —
void
— BoardItemSetBackgroundColor - Set Leaderboard Item Font Size —
void
— BoardItemSetFontSize - Set Leaderboard Item Alignment —
void
— BoardItemSetAlignment
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:1193
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);
BoardItemSetAlignment(gv_artifactBoard, 1, 3, c_alignCenter);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:1194
BoardSetColumnWidth(gv_artifactBoard, 1, 25.0);
BoardItemSetAlignment(gv_artifactBoard, 1, 1, c_alignCenter);
BoardItemSetAlignment(gv_artifactBoard, 1, 2, c_alignCenter);
BoardItemSetAlignment(gv_artifactBoard, 1, 3, c_alignCenter);
BoardItemSetProgressShow(gv_artifactBoard, 1, 2, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:1195
BoardItemSetAlignment(gv_artifactBoard, 1, 1, c_alignCenter);
BoardItemSetAlignment(gv_artifactBoard, 1, 2, c_alignCenter);
BoardItemSetAlignment(gv_artifactBoard, 1, 3, c_alignCenter);
BoardItemSetProgressShow(gv_artifactBoard, 1, 2, true);
BoardItemSetProgressRange(gv_artifactBoard, 1, 2, 0.0, 1.0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:1193
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);
BoardItemSetAlignment(gv_artifactBoard, 1, 3, c_alignCenter);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:1194
BoardSetColumnWidth(gv_artifactBoard, 1, 25.0);
BoardItemSetAlignment(gv_artifactBoard, 1, 1, c_alignCenter);
BoardItemSetAlignment(gv_artifactBoard, 1, 2, c_alignCenter);
BoardItemSetAlignment(gv_artifactBoard, 1, 3, c_alignCenter);
BoardItemSetProgressShow(gv_artifactBoard, 1, 2, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2map — MapScript.galaxy:1195
BoardItemSetAlignment(gv_artifactBoard, 1, 1, c_alignCenter);
BoardItemSetAlignment(gv_artifactBoard, 1, 2, c_alignCenter);
BoardItemSetAlignment(gv_artifactBoard, 1, 3, c_alignCenter);
BoardItemSetProgressShow(gv_artifactBoard, 1, 2, true);
BoardItemSetProgressRange(gv_artifactBoard, 1, 2, 0.0, 1.0);
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova08.sc2map/MapScript.galaxy:2594
BoardMinimizeShow(BoardLastCreated(), PlayerGroupAll(), false);
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, true);
BoardItemSetAlignment(BoardLastCreated(), 1, c_boardRowHeader, c_alignLeft);
BoardItemSetAlignment(BoardLastCreated(), 1, 1, c_alignLeft);
BoardItemSetFontSize(BoardLastCreated(), 1, c_boardRowHeader, 16);
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova08.sc2map/MapScript.galaxy:2595
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, true);
BoardItemSetAlignment(BoardLastCreated(), 1, c_boardRowHeader, c_alignLeft);
BoardItemSetAlignment(BoardLastCreated(), 1, 1, c_alignLeft);
BoardItemSetFontSize(BoardLastCreated(), 1, c_boardRowHeader, 16);
BoardItemSetFontSize(BoardLastCreated(), 1, 1, 16);
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova08.sc2map — MapScript.galaxy:2594
BoardMinimizeShow(BoardLastCreated(), PlayerGroupAll(), false);
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, true);
BoardItemSetAlignment(BoardLastCreated(), 1, c_boardRowHeader, c_alignLeft);
BoardItemSetAlignment(BoardLastCreated(), 1, 1, c_alignLeft);
BoardItemSetFontSize(BoardLastCreated(), 1, c_boardRowHeader, 16);
mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova08.sc2map — MapScript.galaxy:2595
BoardSetState(BoardLastCreated(), PlayerGroupAll(), c_boardStateShowHeader, true);
BoardItemSetAlignment(BoardLastCreated(), 1, c_boardRowHeader, c_alignLeft);
BoardItemSetAlignment(BoardLastCreated(), 1, 1, c_alignLeft);
BoardItemSetFontSize(BoardLastCreated(), 1, c_boardRowHeader, 16);
BoardItemSetFontSize(BoardLastCreated(), 1, 1, 16);