This patch adds three new GUI actions; power off, suspend, hibernate. Without this patch the skinner must use a dialog for the user to select from one of these choices. This patch allows the skinner to create buttons on the main interface and use the <action> tag to specify one of these three choices, thereby bypassing the dialog. The dialog action remains unchanged (action id = 99). Also, there are existing actions for quit (exit MP) (action id = 97) and reboot (action id = 98) - these remain unchanged. The new action id's are:
power off = 991
suspend = 992
hibernate = 993
Each action id presents a yes/no confirmation dialog upon execution.
This patch also adds strings in the strings_en.xml file for the yes/no confirmation dialog (translations will be required for other languages).
This patch affects Action.cs (core.dll) and MediaPortal.cs (MediaPortal.exe).
power off = 991
suspend = 992
hibernate = 993
Each action id presents a yes/no confirmation dialog upon execution.
This patch also adds strings in the strings_en.xml file for the yes/no confirmation dialog (translations will be required for other languages).
This patch affects Action.cs (core.dll) and MediaPortal.cs (MediaPortal.exe).