Jump to content

Official KeyFrame Event [REVERSED]


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 180
  • Eyes 1
  • Good 24
  • Love 5
  • Love 52

 

Link to comment
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
Link to comment
Share on other sites

  • 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

 

Link to comment
Share on other sites

  • 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 3
  • Angry 1
Link to comment
Share on other sites

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.