ui, fix generic skin

This commit is contained in:
kub 2022-04-19 22:50:57 +02:00
parent b4c25401da
commit 45d0add214
6 changed files with 27 additions and 2 deletions

View file

@ -82,11 +82,23 @@ endif
-include Makefile.local
ifeq "$(PLATFORM)" "opendingux"
# TODO this should somehow go to the platform directory?
ifeq "$(PLATFORM)" "generic"
$(TARGET).zip: $(TARGET)
$(RM) -rf .od_data
mkdir .od_data
cp -r platform/linux/skin .od_data
cp platform/game_def.cfg .od_data
cp $< .od_data/PicoDrive
$(STRIP) .od_data/PicoDrive
cd .od_data && zip -9 -r ../$@ *
all: $(TARGET).zip
endif
# TODO this should somehow go to the platform/opendingux directory?
ifeq "$(PLATFORM)" "opendingux"
.od_data: $(TARGET)
$(RM) -rf .od_data
mkdir .od_data
cp -r platform/opendingux/data/. .od_data
cp platform/game_def.cfg .od_data
cp $< .od_data/PicoDrive
@ -120,6 +132,7 @@ endif
ifeq "$(PLATFORM)" "miyoo"
$(TARGET).zip: $(TARGET)
$(RM) -rf .od_data
mkdir .od_data
cp -r platform/opendingux/data/. .od_data
cp platform/game_def.cfg .od_data
cp $< .od_data/PicoDrive

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -0,0 +1,8 @@
The skin images can be customized, but there are several limitations:
background.png - must be 640x480 image with 24bit RGB colors.
font.png - must be 128x160 8bit grayscale image.
selector.png - must be 8x10 8bit grayscale image.
Font and selector colors can be changed by editing skin.txt.

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 B

View file

@ -0,0 +1,4 @@
// html-style hex color codes, ex. ff0000 is red, 0000ff is blue, etc.
text_color=ffffff
selection_color=c00000