Jump to content

Recommended Posts

  • Honorable Member

Reversed From 22.2.7.0

Client part is from 2018 Official Root

Thanks to @ Owsap for informing me.

This is the hidden content, please

This is the hidden content, please

Edited by Mali
  • Metin2 Dev 225
  • Eyes 1
  • Good 33
  • muscle 2
  • Love 6
  • Love 84

 

Link to comment
https://metin2.dev/topic/30532-official-keyframe-event-reversed/
Share on other sites

  • Contributor

ResetFrame:
This is used in the 2018 root to reset animations. It's already implemented in the source, but wasn't included in the module.

 

If anyone needs it:

PythonWindowManagerModule.cpp

PyObject* wndMgrAniResetFrame(PyObject* poSelf, PyObject* poArgs)
{
    UI::CWindow* pWindow;
    if (!PyTuple_GetWindow(poArgs, 0, &pWindow))
        return Py_BuildException();

    if (!pWindow)
        return Py_BuildException();

    ((UI::CAniImageBox*)pWindow)->ResetFrame();

    return Py_BuildNone();
}

{ "ResetFrame",                    wndMgrAniResetFrame,                        METH_VARARGS },

root, ui.py:

# find
class AniImageBox(Window):

# find 
	def SetEndFrameEvent

# add
	def ResetFrame(self):
		wndMgr.ResetFrame(self.hWnd)

 

  • Love 1
  • Honorable Member
2 minutes ago, Amun said:

ResetFrame:
This is used in the 2018 root to reset animations. It's already implemented in the source, but wasn't included in the module.

 

If anyone needs it:

PythonWindowManagerModule.cpp

PyObject* wndMgrAniResetFrame(PyObject* poSelf, PyObject* poArgs)
{
    UI::CWindow* pWindow;
    if (!PyTuple_GetWindow(poArgs, 0, &pWindow))
        return Py_BuildException();

    if (!pWindow)
        return Py_BuildException();

    ((UI::CAniImageBox*)pWindow)->ResetFrame();

    return Py_BuildNone();
}

{ "ResetFrame",                    wndMgrAniResetFrame,                        METH_VARARGS },

root, ui.py:

# find
class AniImageBox(Window):

# find 
	def SetEndFrameEvent

# add
	def ResetFrame(self):
		wndMgr.ResetFrame(self.hWnd)

 

https://metin2.dev/topic/30179-collection-reversed-uiwndmgr-functions/?do=findComment&comment=154337&_rid=14335

 

  • Contributor
7 minutes ago, Mali said:

Ye, lemme read 200 topics real quick to see if you posted it. xD

 

Sorry, that was mean.

I meant: Apologies, my lord, I didn't mean to steal your likes. I shall be spanked at once :kekw:

  • Metin2 Dev 1
  • kekw 4
  • Angry 1

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.