From 5d8781d532415d0b7d0cc227db6078231e378e9b Mon Sep 17 00:00:00 2001 From: theDeadMan Date: Sun, 6 Jun 2021 15:37:31 +0100 Subject: [PATCH] music fullscreen rework --- 1080i/Includes_hubMenu.xml | 122 +++++++++++++++- 1080i/Includes_variables.xml | 2 +- 1080i/custom_musicFullscreenDisabler.xml | 2 +- 1080i/custom_musicPlayerFullscreen.xml | 174 +---------------------- shortcuts/musicsubmenu.DATA.xml | 2 +- 5 files changed, 128 insertions(+), 174 deletions(-) diff --git a/1080i/Includes_hubMenu.xml b/1080i/Includes_hubMenu.xml index 80cc9b3..7bc789b 100644 --- a/1080i/Includes_hubMenu.xml +++ b/1080i/Includes_hubMenu.xml @@ -51,14 +51,130 @@ - + + + + 0 + row-5-begin + + + player.playing + control.hasfocus(5115) + 0 + 0 + col-5-begin + 1-col + stretch + colors/white.png + + + + player.playing + 72 + 0 + col-5-begin + 2-row + 0 + Control.SetFocus(9001) + 9999 + control.setfocus(9876) + horizontal + + + 0 + 0 + 1-col + 2-row + center + center + symbol + textActive + + + + control.hasfocus(5115) + 0 + 0 + 1-col + 2-row + center + center + symbol + highlight + + + + + + 3 + 3 + 66 + 66 + stretch + colors/white.png + highlight + + + 0 + 0 + 1-col + 2-row + center + center + symbol + textActive + + + + + + + Previous + + + PlayerControl(previous) + + + Stop + + + PlayerControl(stop) + Dialog.Close(1103) + + + Player.Playing | player.forwarding | player.rewinding + Play/Pause + + + PlayerControl(play) + + + Player.Paused + Pause + + + PlayerControl(play) + + + Next Chapter + + + PlayerControl(next) + + + + + + + conditional 0 row-5-begin col-5-begin 832 vertical activateWindow(contextmenu) - 9999 + 9999 + 9876 + control.setfocus(5115) activateWindow(home) @@ -97,7 +213,7 @@ skinshortcuts-group-gamesubmenu skinshortcuts-group-picturessubmenu - skinshortcuts-group-musicsubmenu + skinshortcuts-group-musicsubmenu skinshortcuts-group-videosubmenu diff --git a/1080i/Includes_variables.xml b/1080i/Includes_variables.xml index 6cf158c..342bc9e 100644 --- a/1080i/Includes_variables.xml +++ b/1080i/Includes_variables.xml @@ -103,7 +103,7 @@ - + diff --git a/1080i/custom_musicFullscreenDisabler.xml b/1080i/custom_musicFullscreenDisabler.xml index 0b9ea3a..0ea49ad 100644 --- a/1080i/custom_musicFullscreenDisabler.xml +++ b/1080i/custom_musicFullscreenDisabler.xml @@ -1,6 +1,6 @@ - Dialog.Close(all) + action(back) Window.IsActive(1103) + !player.playing + !player.paused diff --git a/1080i/custom_musicPlayerFullscreen.xml b/1080i/custom_musicPlayerFullscreen.xml index aa201d2..42596ee 100644 --- a/1080i/custom_musicPlayerFullscreen.xml +++ b/1080i/custom_musicPlayerFullscreen.xml @@ -1,5 +1,5 @@ - + 9876 control.setfocus(9999) @@ -130,170 +130,6 @@ 99000000 - - - 738 - - -96 - 0 - fullscreenWidth - 5-row - colors/black.png - 88ffffff - stretch - - - - -48 - 6 - 7-col - 2-row - 0 - 8002 - Control.SetFocus(9876) - horizontal - - - 0 - 0 - 1-col - 2-row - center - center - symbol - textActive - - - - - - 0 - 0 - 1-col - 69 - stretch - colors/white.png - highlight - - - 0 - 0 - 1-col - 2-row - center - center - symbol - textActive - - - - - - - Playlist - - - activateWindow(musicplaylist) - - - Previous - - - PlayerControl(previous) - - - Stop - - - PlayerControl(stop) - Dialog.Close(1103) - - - Player.Playing | player.forwarding | player.rewinding - Play/Pause - - - PlayerControl(play) - - - Player.Paused - Pause - - - PlayerControl(play) - - - Next Chapter - - - PlayerControl(next) - - - - - - 23-col - 6 - 20-col - 2-row - horizontal - Control.SetFocus(9876) - Control.SetFocus(8001,4) - - - 0 - 0 - 1-col - 2-row - center - center - symbol - textActive - - - - - - 0 - 0 - 1-col - 69 - stretch - colors/white.png - highlight - - - 0 - 0 - 1-col - 2-row - center - center - symbol - textActive - - - - - - - Visualisation - - - - activateWindow(musicOSD) - - - Visualisation.HasPresets - Visualisation Settings - - - - Addon.Default.OpenSettings(xbmc.player.musicviz) - - - - @@ -302,10 +138,12 @@ -100 1-col 1-col - control.setfocus(8001) - control.setfocus(8001) - control.setfocus(8001) + control.setfocus(9000) + control.setfocus(9000) + control.setfocus(9000) + + hubMenu DebugGrid diff --git a/shortcuts/musicsubmenu.DATA.xml b/shortcuts/musicsubmenu.DATA.xml index 5d81568..5879709 100644 --- a/shortcuts/musicsubmenu.DATA.xml +++ b/shortcuts/musicsubmenu.DATA.xml @@ -1,7 +1,7 @@ - Player.HasMedia + Player.HasMedia + !window.isactive(1103) 10005 DefaultAddon.png