Jump to content

OnClientRender


tosfera

Recommended Posts

Hey guys,

It's been a while since I've been at this section so, hey! I'm currently trying to get a scrollbar on this that won't fit on 1 screen. I know I can use the MMB to scroll and change the indexes of rows, but what if I want to move entire gui's? Just asking for a way of thinking. ^^

Thanking you in advance

Link to comment
I am not sure what your gui looks like, but if moving the gui is a problem. Then you have to calculate the offset.

https://wiki.multitheftauto.com/wiki/GuiGetPosition

I got a GUI drawn with dxDraw functions, but not everything fits onto these small windows. Making them fit will screw up the entire gui. It would be easier if you could create a scrollbar functional. Whenever you scroll down, the elements should change. But I'm not sure how to cut off the elements inside the rectangle and keep track of the actual position of the scrollbar. I think it'll be a huge ehh.. mindcracking thing to actually do.

Link to comment

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...