Kodi Community Forum
Mod Initialize Window method not responding - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Mod Initialize Window method not responding (/showthread.php?tid=316345)



Initialize Window method not responding - RoberWHite - 2017-06-12

Hello,

I'm new to Kodi so please don't judge me too hard Big Grin
I'm trying to make custom Favourites for kodi, so I need to make few Windows and Dialogs.
So I created Custom_[window_name].xml file, created C++ class in xmbc/dialogs directory , add it to make files and CMakefiles.
Then add the C++ class to GUIWindowManager with Add method. Also assigned key for the Custom_windowname.xml files ID (1195).

When I start Kodi and press the key the window appears as it should, and the window manager initialize the class.

The problem is that the C++ class don't activate OnInitWindow method when I press the key for window activation. It does not show any Log messages from my class OnInitWindow method.

P.S. I have inherited CGUIDIALOG and passed window ID and the file name of XML file to the constructor.

Where is the problem I cannot understand why it doesn't call the method on window Initialization?


RE: Initialize Window method not responding - Hitcher - 2017-06-14

I don't understand why you're touching core to just add a custom window?