manve1 Posted February 12, 2014 Posted February 12, 2014 Hello, As in long time I haven't asked a question. I have one currently and yes i have looked over the forums for the answer, couldn't find the right one. So my question would be this: As most should know, MTA has a default scoreboard and I am making my own one using Dx Functions, but before I started coding it, I found a problem, which would be; How could I code scrolling up/down on the scoreboard? Naming the functions will do. Looking for tutorials or information? check out: www.simpleask.co.uk
myonlake Posted February 12, 2014 Posted February 12, 2014 There are no "functions" for scrolling. You just have to check when the client scrolls their mouse and then push the table keys forward or backward, so it shows it between a dynamic range that can be changed by scrolling, or by switching resolution. If I helped you, please click the like button on the right Thanks!
manve1 Posted February 12, 2014 Author Posted February 12, 2014 My point is, on the default scoreboard, when you scroll if there is enough players to scroll through, the top one gets removed and then another one is added on the bottom Looking for tutorials or information? check out: www.simpleask.co.uk
Dealman Posted February 12, 2014 Posted February 12, 2014 And he answered. You'll have to use something like onClientKey and/or onClientMouseWheel, check if the key was the mouse wheel(This only applies to onClientKey). Then you'll have to make all sorts of checks if the mouse is hovering above the scoreboard(if you want that) and such things. There are no specific pre-made functions for scrolling DX-based interfaces. For dxscoreboard specific exported functions; read this. If I help you in a thread and you need further assistance, please don't PM me - use the thread you created instead. This way everyone on the forum can take advantage of it.
manve1 Posted February 12, 2014 Author Posted February 12, 2014 Never mind, I was asking for something a bit different, but I figured it out. Looking for tutorials or information? check out: www.simpleask.co.uk
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