mirror of
https://github.com/clockworkpi/launcher.git
synced 2025-12-13 02:08:50 +01:00
add skin rescan
This commit is contained in:
parent
bac3f7899d
commit
58fd2e6a1a
@ -74,7 +74,7 @@ class PageListItem(InfoPageListItem):
|
|||||||
pygame.draw.line(self._Parent._CanvasHWND,MySkinManager.GiveColor('Line'),(self._PosX,self._PosY+self._Height-1),(self._PosX+self._Width,self._PosY+self._Height-1),1)
|
pygame.draw.line(self._Parent._CanvasHWND,MySkinManager.GiveColor('Line'),(self._PosX,self._PosY+self._Height-1),(self._PosX+self._Width,self._PosY+self._Height-1),1)
|
||||||
|
|
||||||
class SkinsPage(Page):
|
class SkinsPage(Page):
|
||||||
_FootMsg = ["Nav","","","Back","Select"]
|
_FootMsg = ["Nav","","Scan","Back","Select"]
|
||||||
_MyList = []
|
_MyList = []
|
||||||
_ListFont = MyLangManager.TrFont("notosanscjk15")
|
_ListFont = MyLangManager.TrFont("notosanscjk15")
|
||||||
|
|
||||||
@ -94,7 +94,6 @@ class SkinsPage(Page):
|
|||||||
self._Icons = {}
|
self._Icons = {}
|
||||||
|
|
||||||
def GenList(self):
|
def GenList(self):
|
||||||
|
|
||||||
self._MyList = []
|
self._MyList = []
|
||||||
|
|
||||||
start_x = 0
|
start_x = 0
|
||||||
@ -222,6 +221,18 @@ class SkinsPage(Page):
|
|||||||
self._Screen.Draw()
|
self._Screen.Draw()
|
||||||
self._Screen.SwapAndShow()
|
self._Screen.SwapAndShow()
|
||||||
|
|
||||||
|
if event.key == CurKeys["X"]:
|
||||||
|
self.GenList()
|
||||||
|
|
||||||
|
for i in self._MyList:
|
||||||
|
i._Active = False
|
||||||
|
|
||||||
|
for i in self._MyList:
|
||||||
|
if config.SKIN in i._Value:
|
||||||
|
i._Active = True
|
||||||
|
|
||||||
|
self._Screen.Draw()
|
||||||
|
self._Screen.SwapAndShow()
|
||||||
|
|
||||||
def Draw(self):
|
def Draw(self):
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user