ui, fix generic skin
authorkub <derkub@gmail.com>
Tue, 19 Apr 2022 20:50:57 +0000 (22:50 +0200)
committerkub <derkub@gmail.com>
Tue, 19 Apr 2022 21:18:56 +0000 (23:18 +0200)
Makefile
platform/linux/skin/background.png [new file with mode: 0644]
platform/linux/skin/font.png [new file with mode: 0644]
platform/linux/skin/readme.txt [new file with mode: 0644]
platform/linux/skin/selector.png [new file with mode: 0644]
platform/linux/skin/skin.txt [new file with mode: 0644]

index 2bad174..cddd3c0 100644 (file)
--- 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 (file)
index 0000000..08a7391
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 (file)
index 0000000..707a5b4
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 (file)
index 0000000..900822b
--- /dev/null
@@ -0,0 +1,8 @@
+The skin images can be customized, but there are several limitations:\r
+\r
+background.png - must be 640x480 image with 24bit RGB colors.\r
+font.png       - must be 128x160 8bit grayscale image.\r
+selector.png   - must be 8x10 8bit grayscale image.\r
+\r
+Font and selector colors can be changed by editing skin.txt.\r
+\r
diff --git a/platform/linux/skin/selector.png b/platform/linux/skin/selector.png
new file mode 100644 (file)
index 0000000..a439169
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 (file)
index 0000000..c2baeb2
--- /dev/null
@@ -0,0 +1,4 @@
+// html-style hex color codes, ex. ff0000 is red, 0000ff is blue, etc.\r
+text_color=ffffff\r
+selection_color=c00000\r
+\r