Skip to content

thasave14/Better-Smooth-Dragging

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

Smooth Dragging (HUDConfigScreen)

Smooth dragging for Eric Golde's drag system.

Original drag system created by OrangeMarshall. Modified by Eric Golde to properly work in a client. Edited by Mason#8979 and UghItsIsaac#6037 to smoothen out the dragging. Save14_#7156 Made some changes to simplify the code

How did we manage this?

I was up one night working on the mod dragging for four hours, with Isaac. We had permission from Canelex to use his mods, so we were working on porting some. We took a look at how Canelex made his drag system, he had it inside of the drawScreen method. We moved our drag system inside of the drawScreen method, and then boom. Smooth dragging.

This can be made even smoother believe it or not. Currently, mods are using ints for positioning. Ints are positioned by pixels. If you were to use floats instead of ints for positioning you can achieve an even smoother system. But if you do this I would recommend creating an anchor system, otherwise positioning mods might get hard.

I'm really hoping people take this as a chance to learn and not just skid. There was a quite a lot of time put into this. I learned a few things and so did Isaac. Anyways thats the end of the README. I hope to see many wonderful clients soon!

About

Smooth dragging for Eric Golde's drag system.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%