View Single Post
  #71  
Old 04-29-2012, 01:26 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Dashes in the playerlist should be like this, but in pretty:
PHP Code:
  temp.dashLength = PlayerList_List.profile.gettextwidth("-");
  
temp.listWidth  = PlayerList_Window.width;
  
temp.dHelper    = "--------------------------------";
  
  for (
temp.r: PlayerList_List.rows)
    if (
r.sortvalue == 0) {
      
temp.n = shared.replacetext(r.gettext(), "-", "");
      
temp.n = shared.replacetext(temp.n, " ", "");
      
      
temp.w = temp.listWidth - PlayerList_List.profile.gettextwidth(temp.n) - 24;
      
temp.c = int(temp.w / temp.dashLength / 2) - 1;
      
temp.c = (temp.c < 0 ? 0 : temp.c);
      
      
r.settext(temp.dHelper.substring(0, temp.c) SPC temp.n SPC temp.dHelper.substring(0, temp.c));
    } 
Was just a really quick code snippet. Outcome isn't even that bad:
Reply With Quote