Remove pSecondColumnString

* Use the new columns added to Text instead
* Changed most functions to allow choosing a column
* Removed unneeded SecondColumn specific functions to lessen code duplication
* Lots of formatting changes to Popupbox.cpp, indentation was messed up in majority of the functions
This commit is contained in:
Asdow
2025-04-13 22:26:32 +03:00
parent 865288e622
commit 36a84ffe59
4 changed files with 508 additions and 855 deletions
@@ -180,11 +180,12 @@ void CreateDestroyTownInfoBox( void )
// set highlight color
SetBoxHighLight(ghTownMineBox, FONT_WHITE);
SetBoxSecondColumnForeground( ghTownMineBox, FONT_WHITE );
SetBoxSecondColumnBackground( ghTownMineBox, FONT_BLACK );
SetBoxSecondColumnHighLight( ghTownMineBox, FONT_WHITE );
SetBoxSecondColumnShade( ghTownMineBox, FONT_BLACK );
SetBoxSecondColumnFont( ghTownMineBox, BLOCKFONT2 );
const auto column = 1;
SetBoxColumnForeground( ghTownMineBox, FONT_WHITE, column );
SetBoxColumnBackground( ghTownMineBox, FONT_BLACK, column );
SetBoxColumnHighLight( ghTownMineBox, FONT_WHITE, column );
SetBoxColumnShade( ghTownMineBox, FONT_BLACK, column );
SetBoxColumnFont( ghTownMineBox, BLOCKFONT2, column );
SetBoxSecondColumnMinimumOffset( ghTownMineBox, 20 );
// unhighlighted color