mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-19 13:00:11 -07:00
Replaces text chevron with Font Awesome icon (#2687)
This commit is contained in:
parent
08828da9fc
commit
92fa54c3f9
1 changed files with 3 additions and 1 deletions
|
@ -93,7 +93,9 @@ namespace GameMenuBar {
|
||||||
|
|
||||||
std::string GetWindowButtonText(const char* text, bool menuOpen) {
|
std::string GetWindowButtonText(const char* text, bool menuOpen) {
|
||||||
char buttonText[100] = "";
|
char buttonText[100] = "";
|
||||||
if(menuOpen) { strcat(buttonText,"> "); }
|
if (menuOpen) {
|
||||||
|
strcat(buttonText, ICON_FA_CHEVRON_RIGHT " ");
|
||||||
|
}
|
||||||
strcat(buttonText, text);
|
strcat(buttonText, text);
|
||||||
if (!menuOpen) { strcat(buttonText, " "); }
|
if (!menuOpen) { strcat(buttonText, " "); }
|
||||||
return buttonText;
|
return buttonText;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue