Jump to content

Dx Scoreboard - Quick Question


manve1

Recommended Posts

Posted

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.

Posted

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.

Posted

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

Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...