Vultraz

Untitled

Jul 31st, 2016
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. static std::string format_level_string(const int level)
  2. {
  3.     std::string lvl = std::to_string(level);
  4.  
  5.     if(level < 1) {
  6.         return "<span color='#969696'>" + lvl + "</span>";
  7.     } else if(level == 1) {
  8.         return lvl;
  9.     } else if(level == 2) {
  10.         return "<b>" + lvl + "</b>";
  11.     } else if(level > 2 ) {
  12.         return"<b><span color='#ffffff'>" + lvl + "</span></b>";
  13.     }
  14.  
  15.     return lvl;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment