Quote:
Originally Posted by Gunderak
PHP Code:
function onSelectRow() {
for (temp.pl: findNearestPlayers(mousex, mousey)) {
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(mousex, mousey)[0];
//if the player is not near the click, return...
if (vectordist({mousex, mousey, 0}, {pl.x + 1.5, pl.y + 2, 0}) > 2)
return;
Quote:
Originally Posted by Gunderak
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.