manve1 Posted February 12, 2014 Share 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. Link to comment
myonlake Posted February 12, 2014 Share 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. Link to comment
manve1 Posted February 12, 2014 Author Share 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 Link to comment
Dealman Posted February 12, 2014 Share 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. Link to comment
manve1 Posted February 12, 2014 Author Share Posted February 12, 2014 Never mind, I was asking for something a bit different, but I figured it out. 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