2010-09-06, 15:12
Hello there,
i want to mod the behavior of a single voice of the main menu (shutdown section). I have an imac and i want that one voice of the shutdown menu put my display to sleep. I've choose the hibernate voice (in the night skin) because the hibernation isn't supported by mac.
I've navigated through my XBMC.app until i've find the XML files that make the skin work. I've edited the home.xml file and i can read this code:
What i want to know is which function i've to write in the onclick section to put my display to sleep.
Anyone can help me? It would be intresting to find also a reference about the XBMC's api, can you link me a site?
thank you
i want to mod the behavior of a single voice of the main menu (shutdown section). I have an imac and i want that one voice of the shutdown menu put my display to sleep. I've choose the hibernate voice (in the night skin) because the hibernation isn't supported by mac.
I've navigated through my XBMC.app until i've find the XML files that make the skin work. I've edited the home.xml file and i can read this code:
Code:
<control type="button" id="90187"> <include>ButtonHomeSubCommonValues</include>
<label>13010</label>
<onclick>Hibernate()</onclick>
</control>
Anyone can help me? It would be intresting to find also a reference about the XBMC's api, can you link me a site?
thank you