Jump to content

Recommended Posts

  • Active+ Member

 

This UI animation system was originally released publicly a long time ago, but I decided to revisit and improve it properly.

The main goal was fixing the common animation issues that happen when windows receive rapid Show() / Hide() calls, which usually causes stuck animations, broken scaling states, or inconsistent visibility behavior.

The system was reworked to support smoother state transitions, proper animation interruption handling, and customizable easing styles directly from Python.

 

Improvements

• Fixed animation stuck issues during Show/Hide spam
The animation now correctly resumes from the current scale state instead of breaking or freezing.

• Added customizable easing support
Windows can now use different animation styles through m_animationType.

• Automatic easing inversion support
Hide animations automatically use the opposite easing style through tweeny::InvertEasing(m_animationType) for smoother transitions.

 

This should fix all the trade/safebox/shops/tooltip problems (getting stuck etc..)

 

Python Example

 

 quadraticIn → quadraticOut
bounceIn → bounceOut
elasticIn → elasticOut

 

def LoadWindow(self):
        try:
            pyScrLoader = ui.PythonScriptLoader()
            pyScrLoader.LoadScriptFile(self, "UIScript/ExpandedTaskBar.py")
        except:
            import exception
            exception.Abort("ExpandedTaskBar.LoadWindow.LoadObject")

        self.AnimationType("backOut")

spacer.png

 

Notes

• This is an improved version of an already public system
• The original concept was not created by me
• The fixes, transition handling, easing improvements, and rendering adjustments were implemented by me

 

 

pro tips

For an easy implementation, open all your UIScript files and simply replace:

"float"

with:

"float", "animate"

This will save a lot of time during integration.

 

 

preview

spacer.png

spacer.png

 

This is the hidden content, please

Alternative download links →

This is the hidden content, please

  • Metin2 Dev 31
  • Flame 1
  • Good 6
  • Love 14

I don’t know — I think.

 

Discord

 

Link to comment
https://metin2.dev/topic/34497-window-animation-system-fixed-improved/
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.