Pimp out context menu

Add emby user image if exists
This commit is contained in:
angelblue05 2016-09-17 07:02:35 -05:00
parent 89fe64d019
commit 85e776707a
2 changed files with 14 additions and 1 deletions

View file

@ -8,7 +8,7 @@ import os
import xbmcgui
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_MOUSE_LEFT_CLICK = 100
LIST = 155
USER_IMAGE = 150
##################################################################################################
@ -46,6 +47,9 @@ class ContextMenu(xbmcgui.WindowXMLDialog):
def onInit(self):
if window('EmbyUserImage'):
self.getControl(USER_IMAGE).setImage(window('EmbyUserImage'))
height = 479 + (len(self._options) * 55)
log.info("options: %s", self._options)
self.list_ = self.getControl(LIST)

View file

@ -30,6 +30,15 @@
<left>370</left>
</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">
<description>separator</description>
<width>100%</width>