MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / setColumns

Method setColumns

src/Interface/TextList.cpp:358–369  ·  view source on GitHub ↗

* Changes the columns that the list contains. * While rows can be unlimited, columns need to be specified * since they can have various widths for lining up the text. * @param cols Number of columns. * @param ... Width of each column. */

Source from the content-addressed store, hash-verified

356 * @param ... Width of each column.
357 */
358void TextList::setColumns(int cols, ...)
359{
360 va_list args;
361 va_start(args, cols);
362
363 for (int i = 0; i < cols; ++i)
364 {
365 _columns.push_back(va_arg(args, int));
366 }
367
368 va_end(args);
369}
370
371/**
372 * Replaces a certain amount of colors in the palette of all

Callers 15

DebriefingStateMethod · 0.80
CannotReequipStateMethod · 0.80
PromotionsStateMethod · 0.80
ResearchStateMethod · 0.80
TransfersStateMethod · 0.80
NewResearchListStateMethod · 0.80
TransferBaseStateMethod · 0.80
CraftSoldiersStateMethod · 0.80
MonthlyCostsStateMethod · 0.80
ManufactureStateMethod · 0.80
SoldiersStateMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestStateMethod · 0.64