Also update the following code to put them on the same line & size them
private static CuiLabel CreateTextLineLabel(HelpTab helpTab, float firstLineMargin, float textLineHeight, int textRow,
string textLine)
{
var textLineLabel = new CuiLabel
{
RectTransform =
{
AnchorMin = "0.01 " + (firstLineMargin - textLineHeight * (textRow + 1)),
AnchorMax = "0.85 " + (firstLineMargin - textLineHeight * textRow)
},
Text =
{
Align = helpTab.TextAnchor,
FontSize = helpTab.TextFontSize,
Text = textLine
}
};
return textLineLabel;
}
private static CuiButton CreatePrevPageButton(string mainPanelName, int pageIndex, string hexColor)
{
Color color;
ColorExtensions.TryParseHexString(hexColor, out color);
return new CuiButton
{
Button =
{
Command = string.Format("changepage {0} {1}", pageIndex - 1, mainPanelName),
Color = ColorExtensions.ToRustFormatString(color)
},
RectTransform =
{
AnchorMin = "0.86 0.00",
AnchorMax = "0.97 0.15"
},
Text =
{
Text = _settings.PrevPageText,
FontSize = 28,
Align = TextAnchor.MiddleCenter
}
};
}