mirror of
https://github.com/clockworkpi/launcher.git
synced 2026-03-28 23:02:56 +01:00
Add files via upload
This commit is contained in:
BIN
Menu/GameShell/Music Player/icons/done.png
Normal file
BIN
Menu/GameShell/Music Player/icons/done.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 198 B |
21
Menu/GameShell/Music Player/icons/preload.py
Normal file
21
Menu/GameShell/Music Player/icons/preload.py
Normal file
@@ -0,0 +1,21 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import pygame
|
||||
from pygame.locals import *
|
||||
from sys import exit
|
||||
import os
|
||||
import sys
|
||||
|
||||
from beeprint import pp
|
||||
|
||||
ICONS_PRELOAD={}
|
||||
|
||||
|
||||
def load_icons():
|
||||
basepath = os.path.dirname(os.path.realpath(__file__))
|
||||
|
||||
files = os.listdir(basepath)
|
||||
for i in files:
|
||||
if os.path.isfile(basepath+"/"+i) and i.endswith(".png"):
|
||||
keyname = i.split(".")[0]
|
||||
ICONS_PRELOAD[keyname] = pygame.image.load(basepath+"/"+i).convert_alpha()
|
||||
Reference in New Issue
Block a user