View Single Post
  #2  
Old 09-09-2011, 06:09 PM
0PiX0 0PiX0 is offline
Coder
0PiX0's Avatar
Join Date: Jan 2011
Posts: 130
0PiX0 is a jewel in the rough0PiX0 is a jewel in the rough
Quote:
Originally Posted by Gunderak View Post
PHP Code:
function onSelectRow() {
  for (
temp.plfindNearestPlayers(mousexmousey)) {
    
temp.selected Right_Click_List.getSelectedText();
    
GraalControl.makeFirstResponder(true);
    if (
temp.selected == "Profile") {
      
findPlayer(temp.pl).showprofile();
    }
    
Right_Click_List.hide();
    
Right_Click_Scroll.hide();
  }

You are looping through the entire array of what findnearestplayers returns, but you could just read the first player in the array.
PHP Code:
//set to nearest player to mousex, mousey
temp.pl findnearestplayers(mousexmousey)[0];
//if the player is not near the click, return...
if (vectordist({mousexmousey0}, {pl.1.5pl.20}) > 2)
  return; 
Quote:
Originally Posted by Gunderak View Post
also is there a way to make the scroll grey without making the text grey?
PHP Code:
with (GuiScrollCtrl) {
  
useownprofile true;
  
profile.bitmap "myscrollbitmap.png";

The default guiblue scroll bitmap is guiblue_scroll.png.

So, you can just edit it to create your own.
__________________

Last edited by 0PiX0; 09-09-2011 at 06:23 PM..
Reply With Quote