v17 Remove menu option from Home screen - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Skins Support (https://forum.kodi.tv/forumdisplay.php?fid=67) +---- Forum: Estuary (https://forum.kodi.tv/forumdisplay.php?fid=260) +---- Thread: v17 Remove menu option from Home screen (/showthread.php?tid=334842) |
Remove menu option from Home screen - jmgibson1981 - 2018-08-22 Below the Kodi logo on the top left, how can I remove an entire menu from those 3 there?I'd like to eliminate the power menu that holds the power off, suspend, exit and so forth. RE: Remove menu option from Home screen - Paraic - 2018-08-31 The control you are looking for is in the Home.xml file. Search for control "id=700" which is a panel and then the power button control has an id of 804. You could just take out the section between (and including): <include content="IconButton"> <param name="control_id" value="804" /> ... <\include> I haven't tested this but I hope this helps. Note: There are 4 buttons in the control collection, but one is hidden (the fullscreen control) unless media is playing. <control type="grouplist" id="700"> <orientation>horizontal</orientation> <itemgap>0</itemgap> <left>-8</left> <width>350</width> <height>110</height> <top>100</top> <onup>SetFocus(9000)</onup> <onup>PageDown</onup> <onup>PageDown</onup> <ondown>SetFocus(9000)</ondown> <ondown>PageUp</ondown> <ondown>PageUp</ondown> <onright>2000</onright> <align>justify</align> <include content="IconButton"> <param name="control_id" value="804" /> <param name="onclick" value="ActivateWindow(shutdownmenu)" /> <param name="icon" value="icons/power.png" /> <param name="label" value="$LOCALIZE[33060]" /> </include> <include content="IconButton"> <param name="control_id" value="802" /> <param name="onclick" value="ActivateWindow(settings)" /> <param name="icon" value="icons/settings.png" /> <param name="label" value="$LOCALIZE[21417]" /> </include> <include content="IconButton"> <param name="control_id" value="801" /> <param name="onclick" value="ActivateWindow(1107)" /> <param name="icon" value="icons/search.png" /> <param name="label" value="$LOCALIZE[137]" /> </include> <include content="IconButton"> <param name="control_id" value="803" /> <param name="onclick" value="Fullscreen" /> <param name="icon" value="icons/now-playing/fullscreen.png" /> <param name="label" value="$LOCALIZE[31000]" /> <param name="visible" value="Player.HasMedia" /> </include> </control> </control> RE: Remove menu option from Home screen - glypto - 2018-10-11 Hello, what if I want the "power" button to do the "Suspend" action immediately without opening the "Shutdown" menu dialog? Can that be done? RE: Remove menu option from Home screen - ontap - 2018-10-11 What exactly do you mean by "suspend action " ? If you edit this line <param name="onclick" value="ActivateWindow(shutdownmenu)" /> to this <param name="onclick" value="Suspend()" /> it will give you a black screen for a few seconds , but I can't see what that achieves and also how are you intending to exit kodi without a power button ? RE: Remove menu option from Home screen - glypto - 2018-10-11 When you press/click the "Power" button, menu is opened with options: - Exit -Shutdown -Suspend -... (these may not be the exact menu options, I do not have kodi with me so cannot check) What I want to do is to skip the menu and go directly to one of those options (e.g. Suspend). RE: Remove menu option from Home screen - the_other_guy - 2018-10-13 Hibernate() may work better as it is a better way <!---IconButton--> <include content="IconButton"> <param name="control_id" value="804" /> <param name="onclick" value="Hibernate()" /> <param name="icon" value="icons/power.png" /> <param name="label" value="$LOCALIZE[33060]" /> </include> |