From 95a1dd985ffbc7bf597db88e047e7007d42d23f8 Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Thu, 14 May 2020 09:57:07 +0200 Subject: [PATCH] Fix ChannelSetting e InfoWindow --- platformcode/xbmc_info_window.py | 29 +- resources/language/English/strings.po | 2 +- resources/language/Italian/strings.po | 4 +- .../skins/Default/720p/ChannelSettings.xml | 2 +- resources/skins/Default/720p/InfoWindow.xml | 281 +++++++++--------- 5 files changed, 169 insertions(+), 149 deletions(-) diff --git a/platformcode/xbmc_info_window.py b/platformcode/xbmc_info_window.py index 07c689fc..1fb9c859 100644 --- a/platformcode/xbmc_info_window.py +++ b/platformcode/xbmc_info_window.py @@ -226,14 +226,12 @@ class InfoWindow(xbmcgui.WindowXMLDialog): self.getControl(100014).setLabel(config.get_localized_string(60384)) self.getControl(100015).setLabel(self.result.get("temporada_nombre", "N/A")) self.getControl(100016).setLabel(config.get_localized_string(60385)) - self.getControl(100017).setLabel(self.result.get("season", "N/A") + " de " + - self.result.get("seasons", "N/A")) + self.getControl(100017).setLabel(self.result.get("season", "N/A") + " de " + self.result.get("seasons", "N/A")) if self.result.get("episode"): self.getControl(100014).setLabel(config.get_localized_string(60377)) self.getControl(100015).setLabel(self.result.get("episode_title", "N/A")) self.getControl(100018).setLabel(config.get_localized_string(60386)) - self.getControl(100019).setLabel(self.result.get("episode", "N/A") + " de " + - self.result.get("episodes", "N/A")) + self.getControl(100019).setLabel(self.result.get("episode", "N/A") + " de " + self.result.get("episodes", "N/A")) self.getControl(100020).setLabel(config.get_localized_string(60387)) self.getControl(100021).setLabel(self.result.get("date", "N/A")) @@ -287,10 +285,10 @@ class InfoWindow(xbmcgui.WindowXMLDialog): logger.info("action=" + repr(action.getId())) action = action.getId() - # Obtenemos el foco + # Find Focus focus = self.getFocusId() - # Accion 1: Flecha izquierda + # Left if action == 1: if focus == ID_BUTTON_OK: @@ -298,26 +296,26 @@ class InfoWindow(xbmcgui.WindowXMLDialog): elif focus == ID_BUTTON_CANCEL: if self.indexList + 1 != len(self.listData): - # vamos al botón Siguiente + # Next self.setFocus(self.getControl(ID_BUTTON_NEXT)) elif self.indexList > 0: - # vamos al botón Anterior ya que Siguiente no está activo (estamos al final de la lista) + # Previous self.setFocus(self.getControl(ID_BUTTON_PREVIOUS)) elif focus == ID_BUTTON_NEXT: if self.indexList > 0: - # vamos al botón Anterior + # Next self.setFocus(self.getControl(ID_BUTTON_PREVIOUS)) - # Accion 2: Flecha derecha + # Right elif action == 2: if focus == ID_BUTTON_PREVIOUS: if self.indexList + 1 != len(self.listData): - # vamos al botón Siguiente + # Next self.setFocus(self.getControl(ID_BUTTON_NEXT)) else: - # vamos al botón Cancelar ya que Siguiente no está activo (estamos al final de la lista) + # Cancel self.setFocus(self.getControl(ID_BUTTON_CANCEL)) elif focus == ID_BUTTON_NEXT: @@ -326,6 +324,13 @@ class InfoWindow(xbmcgui.WindowXMLDialog): elif focus == ID_BUTTON_CANCEL: self.setFocus(self.getControl(ID_BUTTON_OK)) + # Up + elif action == 3: + self.setFocus(self.getControl(ID_BUTTON_CLOSE)) + + # Down + elif action == 4: + self.setFocus(self.getControl(ID_BUTTON_OK)) # Pulsa ESC o Atrás, simula click en boton cancelar if action in [10, 92]: self.onClick(ID_BUTTON_CANCEL) diff --git a/resources/language/English/strings.po b/resources/language/English/strings.po index 893654b7..bc8b591e 100644 --- a/resources/language/English/strings.po +++ b/resources/language/English/strings.po @@ -1385,7 +1385,7 @@ msgid "Find %s possible matches" msgstr "" msgctxt "#60298" -msgid "[%s]: Select the correct TV show" +msgid "%s - Select the correct TV show" msgstr "" msgctxt "#60299" diff --git a/resources/language/Italian/strings.po b/resources/language/Italian/strings.po index eaa91b99..918b46f4 100644 --- a/resources/language/Italian/strings.po +++ b/resources/language/Italian/strings.po @@ -1384,8 +1384,8 @@ msgid "Find %s possible matches" msgstr "Trovate %s possibili corrispondenze" msgctxt "#60298" -msgid "[%s]: Select the correct TV show" -msgstr "[%s]: Seleziona la serie TV corretta" +msgid "%s - Select the correct TV show" +msgstr "%s - Seleziona la serie TV corretta" msgctxt "#60299" msgid "Not found in the language '%s'" diff --git a/resources/skins/Default/720p/ChannelSettings.xml b/resources/skins/Default/720p/ChannelSettings.xml index e36f5ee2..e1e5c565 100644 --- a/resources/skins/Default/720p/ChannelSettings.xml +++ b/resources/skins/Default/720p/ChannelSettings.xml @@ -19,7 +19,7 @@ 100% 100% - Shortcut/white.png + Shortcut/white.png diff --git a/resources/skins/Default/720p/InfoWindow.xml b/resources/skins/Default/720p/InfoWindow.xml index 6998dad6..5c10d776 100644 --- a/resources/skins/Default/720p/InfoWindow.xml +++ b/resources/skins/Default/720p/InfoWindow.xml @@ -1,98 +1,113 @@ - false + false + + + + + + + + - 50 - 28 - 1179 - 663 + 0 + 0 + 100% + 100% - 1179 - 663 - Shortcut/dialog-bg-solid.png + 100% + 100% + Shortcut/white.png - + + + 0 + 0 + 100% + 100% + + 33FFFFFF + + - 15 - 0 + 20 + 0 34 - 1179 - font12_title - 0xFFFFFFFF - + 100% + font30_title + FFFFFFFF center center + - 1120 - 25 - 20 - 20 - Controls/DialogCloseButton-focus.png - Controls/DialogCloseButton.png + 30 + 25 + 30 + 30 + Controls/DialogCloseButton-focus.png + Controls/DialogCloseButton-focus.png - - 0 - 0 - 1179 - 663 + + + 30 + 110 + 349 + 500 - 33FFFFFF + + + + + + + + - - 809 - 110 - 310 - 444 - - - - 100 - 60 + + + 100 + 60 40 100 font10 - 0xFFFFFFFF + FFFFFFFF black - posx - posy + left + top - 100 - 200 + 100 + 200 40 365 font10 | true - 0xFFFFFFFF + FFFFFFFF black - posx - posy + left + top - 120 - 60 + 125 + 60 40 100 font10 0xFFFFFFFF black - posx - posy + left + top - 120 - 200 + 125 + 200 40 365 font10 @@ -100,25 +115,25 @@ true 0xFFFFFFFF black - posx - posy + left + top - 140 - 60 + 150 + 60 40 100 font10 0xFFFFFFFF black - posx - posy + left + top - 140 - 200 + 150 + 200 40 365 font10 @@ -126,25 +141,25 @@ true 0xFFFFFFFF black - posx - posy + left + top - 160 - 60 + 175 + 60 40 100 font10 0xFFFFFFFF black - posx - posy + left + top - 160 - 200 + 175 + 200 40 365 font10 @@ -152,25 +167,25 @@ true 0xFFFFFFFF black - posx - posy + left + top - 180 - 60 + 200 + 60 40 100 font10 0xFFFFFFFF black - posx - posy + left + top - 180 - 200 + 200 + 200 40 365 font10 @@ -178,25 +193,25 @@ true 0xFFFFFFFF black - posx - posy + left + top - 200 - 60 + 225 + 60 40 100 font10 0xFFFFFFFF black - posx - posy + left + top - 200 - 200 + 225 + 200 40 365 font10 @@ -204,25 +219,25 @@ true 0xFFFFFFFF black - posx - posy + left + top - 220 - 60 + 250 + 60 40 100 font10 0xFFFFFFFF black - posx - posy + left + top - 220 - 200 + 250 + 200 40 365 font10 @@ -230,25 +245,25 @@ true 0xFFFFFFFF black - posx - posy + left + top - 240 - 60 + 275 + 60 40 100 font10 0xFFFFFFFF black - posx - posy + left + top - 240 - 200 + 275 + 200 40 365 font10 @@ -256,25 +271,25 @@ true 0xFFFFFFFF black - posx - posy + left + top - 260 - 60 + 300 + 60 40 505 font10 0xFFFFFFFF black - posx - posy + left + top - 260 - 200 + 300 + 200 294 500 font10 @@ -283,71 +298,71 @@ true true justify - posy + top - 600 - 40 + 60 + 40 760 30 - 0 - 0 + 0 + 0 200 50 110 - Controls/KeyboardKey.png - Controls/KeyboardKeyNF.png + Shortcut/white.png + Shortcut/white.png center center - 0 - 210 + 0 + 210 200 50 110 - Controls/KeyboardKey.png - Controls/KeyboardKeyNF.png + Shortcut/white.png + Shortcut/white.png center center - 0 - 420 + 0 + 420 200 50 110 - Controls/KeyboardKey.png - Controls/KeyboardKeyNF.png + Shortcut/white.png + Shortcut/white.png center center - 0 - 640 + 0 + 640 200 50 110 - Controls/KeyboardKey.png - Controls/KeyboardKeyNF.png + Shortcut/white.png + Shortcut/white.png center center - 10 - 1080 + 10 + 1080 30 110 font10 - 0xFFFFFFFF + FFFFFFFF black right center