Codechange: remove (unused) tooltip from function to set matrix dimensions

This commit is contained in:
Rubidium
2025-01-03 11:50:04 +01:00
committed by rubidium42
parent 3ecd1187ba
commit c972a9ae1f
4 changed files with 13 additions and 3 deletions

View File

@@ -1174,6 +1174,16 @@ void NWidgetCore::SetSpriteTip(SpriteID sprite, StringID tool_tip)
this->SetToolTip(tool_tip);
}
/**
* Set the matrix dimension.
* @param columns The number of columns in the matrix (0 for autoscaling).
* @param rows The number of rows in the matrix (0 for autoscaling).
*/
void NWidgetCore::SetMatrixDimension(uint8_t columns, uint8_t rows)
{
this->widget_data = static_cast<uint32_t>((rows << MAT_ROW_START) | (columns << MAT_COL_START));
}
/**
* Set the text style of the nested widget.
* @param colour TextColour to use.