Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static std::string format_level_string(const int level)
- {
- std::string lvl = std::to_string(level);
- if(level < 1) {
- return "<span color='#969696'>" + lvl + "</span>";
- } else if(level == 1) {
- return lvl;
- } else if(level == 2) {
- return "<b>" + lvl + "</b>";
- } else if(level > 2 ) {
- return"<b><span color='#ffffff'>" + lvl + "</span></b>";
- }
- return lvl;
- }
Advertisement
Add Comment
Please, Sign In to add comment