Jump to content

OnClientRender


tosfera

Recommended Posts

Posted

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

logo-small.png?v=3 tiny-sapdfr.png

 

If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]

Posted

^bumping this, still looking for someone that'll be able to give me a brief description of the way how to create them haha. ^^

logo-small.png?v=3 tiny-sapdfr.png

 

If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]

  • Moderators
Posted

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

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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

logo-small.png?v=3 tiny-sapdfr.png

 

If you want to contact me directly concerning Advanced-Gaming, please contact me at [email protected]

  • Moderators
Posted

Can you make a screenshot?

Do you want to improve your Lua programming skills and make less mistakes?   Start with Lua Language Server!   🙀

 

  Useful functions  3x 

  Tutorials  4x 

 

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