fairbird
On the interface.py file I changed some lines here (list1) - sizes and positions:
def iniMenu(self):
if len(self.matches) > 0:
res = []
gList = []
self["list1"].l.setItemHeight(175)
self["list1"].l.setFont(0, gFont('Regular', 36))
for i in range(0, len(self.matches)):
match = self.matches[i][0]
match_date = self.matches[i][1]
compet = self.matches[i][2]
team1 = self.matches[i][3]
team2 = self.matches[i][4]
flagTeam1 = resolveFilename(SCOPE_PLUGINS, "Extensions/FootOnSat/assets/flags/{}.png".format(team1))
flagTeam2 = resolveFilename(SCOPE_PLUGINS, "Extensions/FootOnSat/assets/flags/{}.png".format(team2))
banner = FootOnSat.setCompet(compet.lower())
match_date = self.getTime(match_date)
if not fileExists(flagTeam1):
flagTeam1 = resolveFilename(SCOPE_PLUGINS, "Extensions/FootOnSat/assets/flags/default.png")
if not fileExists(flagTeam2):
flagTeam2 = resolveFilename(SCOPE_PLUGINS, "Extensions/FootOnSat/assets/flags/default.png")
if self.checkIfexist(match):
notif = resolveFilename(SCOPE_PLUGINS, "Extensions/FootOnSat/assets/icon/notif_on.png")
else:
notif = resolveFilename(SCOPE_PLUGINS, "Extensions/FootOnSat/assets/icon/notif_off.png")
res.append(MultiContentEntryText())
res.append(MultiContentEntryPixmapAlphaBlend(pos=(420, 69), size=(40, 30), png=loadPNG(flagTeam1)))
res.append(MultiContentEntryPixmapAlphaBlend(pos=(1190, 69), size=(40, 30), png=loadPNG(flagTeam2)))
try:
res.append(MultiContentEntryPixmapAlphaTest(pos=(65, 6), size=(320, 163), png=loadPNG(banner), flags=BT_SCALE))
except TypeError:
res.append(MultiContentEntryPixmapAlphaTest(pos=(65, 6), size=(320, 163), png=loadPNG(banner)))
res.append(MultiContentEntryPixmapAlphaBlend(pos=(-20, 63), size=(70, 50), png=loadPNG(notif)))
res.append(MultiContentEntryText(pos=(472, 66), size=(770, 40), font=0, flags=RT_VALIGN_CENTER | RT_HALIGN_LEFT, text=str(match)))
res.append(MultiContentEntryText(pos=(420, 120), size=(450, 36), font=0, flags=RT_HALIGN_LEFT | RT_VALIGN_CENTER, text="Kick-off : " + str(match_date)))
res.append(MultiContentEntryText(pos=(420, 15), size=(790, 40), font=0, flags=RT_HALIGN_LEFT | RT_VALIGN_CENTER, text=str(compet)))
gList.append(res)
res = []
self["list1"].setList(gList)
Display More
On list2 - changed sizes:
def getChannels(self):
list = []
res = []
gList = []
self["list2"].l.setItemHeight(50)
self["list2"].l.setFont(0, gFont('Regular', 32))
index = self['list1'].getSelectionIndex()
if len(self.matches) > 0:
self.match = self.matches[index][0]
for data in self.js['footonsat']:
try:
if data['related_to'] == self.match:
list.append((str(data['channel']), str(data['sat']), str(data['freq']), str(data['encry']), str(data['link'])))
res.append(MultiContentEntryText())
res.append(MultiContentEntryText(pos=(7, 6), size=(510, 40), font=0, flags=RT_VALIGN_CENTER | RT_HALIGN_LEFT, text=str(data['channel'])))
gList.append(res)
res = []
except KeyError:
pass
self["list2"].setList([])
self["list2"].setList(gList)
self.channelData = list
Display More
On launcher.py file I changed the code for DreamOS menu:
class MenuFootOnSat(ConfigListScreen, Screen):
if DreamOS():
skin = """
<screen name="MenuFootOnSat" position="center,center" size="1274,640" title="Menu FootOnSat">
<widget source="global.CurrentTime" render="Label" position="5,5" size="1264,50" font="Regular;35" halign="center" foregroundColor="#00ffa500" backgroundColor="#16000000" transparent="1">
<convert type="ClockToText">Format:%d-%m-%Y %H:%M:%S</convert>
</widget>
<widget name="config" position="18,70" size="1238,344" scrollbarMode="showOnDemand" />
<eLabel text="" foregroundColor="#00ff2525" backgroundColor="#00ff2525" size="235,5" position="373,610" zPosition="-10" />
<eLabel text="" foregroundColor="#00389416" backgroundColor="#00389416" size="235,5" position="735,610" zPosition="-10" />
<widget render="Label" source="key_red" position="373,570" size="235,40" zPosition="5" valign="center" halign="center" backgroundColor="#16000000" font="Regular;28" transparent="1" foregroundColor="#00ffffff" shadowColor="black" />
<widget render="Label" source="key_green" position="735,570" size="235,40" zPosition="5" valign="center" halign="center" backgroundColor="#16000000" font="Regular;28" transparent="1" foregroundColor="#00ffffff" shadowColor="black" shadowOffset="-1,-1" />
<widget source="help" render="Label" position="18,275" size="1238,40" font="Regular;32" foregroundColor="#00e5b243" backgroundColor="#16000000" valign="center" halign="center" transparent="1" zPosition="5" />
<widget name="Picture" position="463,330" size="400,225" zPosition="5" alphatest="blend" />
</screen>"""
Display More
I don´t know how to add these changes to apply only in UHD without affect the other skins.
The Footmenu.py is the original one taken from 1.8 version (it was adapted for UHD by seagen This file usually was placed inside /usr/lib/enigma2/python/Plugins/Extensions/FootOnSat/ui