mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-25 10:16:11 +00:00
Pimp out context menu
Add emby user image if exists
This commit is contained in:
parent
89fe64d019
commit
85e776707a
2 changed files with 14 additions and 1 deletions
|
@ -8,7 +8,7 @@ import os
|
||||||
import xbmcgui
|
import xbmcgui
|
||||||
import xbmcaddon
|
import xbmcaddon
|
||||||
|
|
||||||
from utils import language as lang
|
from utils import window, language as lang
|
||||||
|
|
||||||
##################################################################################################
|
##################################################################################################
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ ACTION_BACK = 92
|
||||||
ACTION_SELECT_ITEM = 7
|
ACTION_SELECT_ITEM = 7
|
||||||
ACTION_MOUSE_LEFT_CLICK = 100
|
ACTION_MOUSE_LEFT_CLICK = 100
|
||||||
LIST = 155
|
LIST = 155
|
||||||
|
USER_IMAGE = 150
|
||||||
|
|
||||||
##################################################################################################
|
##################################################################################################
|
||||||
|
|
||||||
|
@ -46,6 +47,9 @@ class ContextMenu(xbmcgui.WindowXMLDialog):
|
||||||
|
|
||||||
def onInit(self):
|
def onInit(self):
|
||||||
|
|
||||||
|
if window('EmbyUserImage'):
|
||||||
|
self.getControl(USER_IMAGE).setImage(window('EmbyUserImage'))
|
||||||
|
|
||||||
height = 479 + (len(self._options) * 55)
|
height = 479 + (len(self._options) * 55)
|
||||||
log.info("options: %s", self._options)
|
log.info("options: %s", self._options)
|
||||||
self.list_ = self.getControl(LIST)
|
self.list_ = self.getControl(LIST)
|
||||||
|
|
|
@ -30,6 +30,15 @@
|
||||||
<left>370</left>
|
<left>370</left>
|
||||||
</control>
|
</control>
|
||||||
|
|
||||||
|
<control type="image" id="150">
|
||||||
|
<description>User image</description>
|
||||||
|
<texture diffuse="user_image.png"></texture>
|
||||||
|
<aspectratio>keep</aspectratio>
|
||||||
|
<height>44</height>
|
||||||
|
<top>14</top>
|
||||||
|
<left>261</left>
|
||||||
|
</control>
|
||||||
|
|
||||||
<control type="image">
|
<control type="image">
|
||||||
<description>separator</description>
|
<description>separator</description>
|
||||||
<width>100%</width>
|
<width>100%</width>
|
||||||
|
|
Loading…
Reference in a new issue