Jump to content

(HELP) ani_image delay (login interface)


Recommended Posts

Hi, I'm using several images to create animation for the login but when I open the client it takes around 10s for the animation to appear

 

The code im using https://metin2.download/picture/8W46592p0npUXROf08COoFuJz3u1Sz41/.png

 

Does someone know a better code for this type? im new to this 

 

best regards, Kan

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

what about the fact that those images don't resize?

Code used:

"name" : "bg1","type" : "expanded_image", "x" : 0, "y" : 0,
            "type" : "ani_image",
            "x" : 0,
            "y" : 0,
            "width"  : SCREEN_WIDTH,
            "height" : SCREEN_HEIGHT,
            "x_scale" : float(SCREEN_WIDTH) /1980.0, "y_scale" : float(SCREEN_HEIGHT) /1080.0,
            
            "delay" : 6,
            "images" :
            (

Link to comment
Share on other sites

  • Honorable Member
18 minutes ago, Julio said:

what about the fact that those images don't resize?

Code used:

"name" : "bg1","type" : "expanded_image", "x" : 0, "y" : 0,
            "type" : "ani_image",
            "x" : 0,
            "y" : 0,
            "width"  : SCREEN_WIDTH,
            "height" : SCREEN_HEIGHT,
            "x_scale" : float(SCREEN_WIDTH) /1980.0, "y_scale" : float(SCREEN_HEIGHT) /1080.0,
            
            "delay" : 6,
            "images" :
            (

SetAniImgScale

  • Love 1

 

Link to comment
Share on other sites

23 minutes ago, Mali said:

Thx Mali, I'm pretty new so, you know how it is haha. First of all, I have the source of the game, and the client with its files (pack), the images for the animation were added in locale ( I have never worked inside the source because I'm not a developer, I just design stuff in PS, so, coding is not my thing, but....) From what I understand, those lines have to be added inside the client source then re-compiled in order for the client to take the resize function for the "ani_image" part that is added inside  loginwindow.py. Right? Can you please tell me where inside the source are those ///@@@PythonWindowManagerModule.cpp:    ....... ///@@@PythonWindow.h:......... ###@@@ui.py:...

Thx a lot Mali!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



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