From: kub Date: Tue, 19 Apr 2022 20:50:57 +0000 (+0200) Subject: ui, fix generic skin X-Git-Tag: v2.00~313 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45d0add214cc44c2712a905a52f32619394c5468;p=picodrive.git ui, fix generic skin --- diff --git a/Makefile b/Makefile index 2bad1743..cddd3c08 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/platform/linux/skin/background.png b/platform/linux/skin/background.png new file mode 100644 index 00000000..08a73911 Binary files /dev/null and b/platform/linux/skin/background.png differ diff --git a/platform/linux/skin/font.png b/platform/linux/skin/font.png new file mode 100644 index 00000000..707a5b43 Binary files /dev/null and b/platform/linux/skin/font.png differ diff --git a/platform/linux/skin/readme.txt b/platform/linux/skin/readme.txt new file mode 100644 index 00000000..900822bf --- /dev/null +++ b/platform/linux/skin/readme.txt @@ -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. + diff --git a/platform/linux/skin/selector.png b/platform/linux/skin/selector.png new file mode 100644 index 00000000..a4391696 Binary files /dev/null and b/platform/linux/skin/selector.png differ diff --git a/platform/linux/skin/skin.txt b/platform/linux/skin/skin.txt new file mode 100644 index 00000000..c2baeb22 --- /dev/null +++ b/platform/linux/skin/skin.txt @@ -0,0 +1,4 @@ +// html-style hex color codes, ex. ff0000 is red, 0000ff is blue, etc. +text_color=ffffff +selection_color=c00000 +