BorderLine Posted October 5, 2012 Share Posted October 5, 2012 Hi, i have a quiestion. Anyone know how make the rows more high?? this rows If someone know the line or where i can make this. I have the last scoreboard. Link to comment
Alexs Posted October 5, 2012 Share Posted October 5, 2012 If you talk about the name row, i dont know, but the added row's have an argument in the function. Link to comment
HunT Posted October 6, 2012 Share Posted October 6, 2012 Replace This : -- String 1138 -- Player/team click local y = topY+s(5) if (serverInfo.server or serverInfo.players) and showServerInfo then y = y+dxGetFontHeight( fontscale(serverInfoFont, scoreboardScale), serverInfoFont ) end if (serverInfo.gamemode or serverInfo.map) and showGamemodeInfo then y = y+dxGetFontHeight( fontscale(serverInfoFont, scoreboardScale), serverInfoFont ) end y = y+s(3) y = y+s(5)+dxGetFontHeight( fontscale(columnFont, scoreboardScale), columnFont ) if cY >= y and cX then local index = firstVisibleIndex local maxPerWindow = getMaxPerWindow() local topX, topY = (sX/2)-(calculateWidth()/2), (sY/2)-(calculateHeight()/2) local width = calculateWidth() while ( index < firstVisibleIndex+maxPerWindow and scoreboardContent[index] ) do local element = scoreboardContent[index]["__SCOREBOARDELEMENT__"] local font = iif( element and isElement( element ) and getElementType( element ) == "team", teamHeaderFont, contentFont ) if cX >= topX+s(5) and cX <= topX+width-s(5) and cY >= y and cY <= y+dxGetFontHeight( fontscale(font, scoreboardScale), font ) then local selected = (not selectedRows[element]) == true local triggered = triggerEvent( "onClientPlayerScoreboardClick", element, selected, cX, cY ) if triggered then selectedRows[element] = not selectedRows[element] end end y = y + dxGetFontHeight( fontscale(font, scoreboardScale), font ) index = index + 1 end end end end Whit This : -- Player/team click local y = topY+s(5) if showGamemodeInfo and showServerInfo then y = y+dxGetFontHeight( fontscale(serverInfoFont, scoreboardScale), serverInfoFont ) end if showGamemodeInfo or showServerInfo then y = y+dxGetFontHeight( fontscale(serverInfoFont, scoreboardScale), serverInfoFont ) end y = y+s(3) y = y+s(5)+dxGetFontHeight( fontscale(columnFont, scoreboardScale), columnFont ) if cY >= y and cX then local index = firstVisibleIndex local maxPerWindow = getMaxPerWindow() local topX, topY = (sX/2)-(calculateWidth()/2), (sY/2)-(calculateHeight()/2) local width = calculateWidth() while ( index < firstVisibleIndex+maxPerWindow and scoreboardContent[index] ) do local element = scoreboardContent[index]["__SCOREBOARDELEMENT__"] if element and isElement( element ) and getElementType( element ) == "team" then if cX >= topX+s(5) and cX <= topX+width-s(5) and cY >= y and cY <= y+dxGetFontHeight( fontscale(teamHeaderFont, scoreboardScale), teamHeaderFont ) then selectedRows[element] = not selectedRows[element] local selected = selectedRows[element] == true triggerEvent( "onClientPlayerScoreboardClick", element, selected, cX, cY ) end y = y + dxGetFontHeight( fontscale(teamHeaderFont, scoreboardScale), teamHeaderFont ) else if cX >= topX+s(5) and cX <= topX+width-s(5) and cY >= y and cY <= y+30 then selectedRows[element] = not selectedRows[element] local selected = selectedRows[element] == true triggerEvent( "onClientPlayerScoreboardClick", element, selected, cX, cY ) end y = y + 30 end index = index + 1 end end end end DON'T Forget . . .delete every time the client file cache. Edit - Delete Cache - Refresh Link to comment
BorderLine Posted October 7, 2012 Author Share Posted October 7, 2012 still with same high and i did all what you say.. edit-delete and refresh Link to comment
BorderLine Posted October 7, 2012 Author Share Posted October 7, 2012 sorry for double post, but hunterix. the version of scoreboard can be the problem? i have the last scoreboarsd and your vcode dont wrong, still same high Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now