Skip to content

Commit

Permalink
feat: add video (#1)
Browse files Browse the repository at this point in the history
* feat: add video

* fix cover alpha
  • Loading branch information
beudbeud authored Feb 20, 2024
1 parent 6a4bf4e commit 3ccb313
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 4 deletions.
Binary file added _inc/noise.mp4
Binary file not shown.
7 changes: 5 additions & 2 deletions data/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@

<include subset="systemview" name="1-noise">./override/noise.xml</include>
<include subset="systemview" name="2-pattern">./override/pattern.xml</include>
<include subset="systemview" name="3-none">./override/none.xml</include>
<include subset="systemview" name="3-video">./override/video.xml</include>
<include subset="systemview" name="4-none">./override/none.xml</include>

<include subset="gamelistview" name="1-no">./override/nobg.xml</include>
<include subset="gamelistview" name="2-yes">./override/bg.xml</include>
<include subset="gamelistview" name="2-image">./override/bg.xml</include>
<include subset="gamelistview" name="3-video">./override/bg_video.xml</include>
<include subset="gamelistview" name="4-noise">./override/bg_noise.xml</include>
</theme>
7 changes: 7 additions & 0 deletions data/gameclip.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<theme>
<formatVersion>4</formatVersion>
<view name="gameclip">
<video name="md_video" pos="0 0" origin="0 0" size="1 1" zIndex="2" delay="0" />
<helpsystem name="help" pos="1 1" />
</view>
</theme>
1 change: 1 addition & 0 deletions data/override/bg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
<size>1 1</size>
<zIndex>1</zIndex>
</image>
<image name="md_video" disabled="1"/>
</view>
</theme>
16 changes: 16 additions & 0 deletions data/override/bg_noise.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<theme>
<formatVersion>4</formatVersion>

<view name="detailed">
<video name="bg_video" extra="true">
<path>../../_inc/noise.mp4</path>
<pos>0 0</pos>
<size>1 1</size>
<animations>none</animations>
<delay>0</delay>
<zIndex>0</zIndex>
</video>
<image name="md_video" disabled="1"/>
<box name="cover" extra="true" pos="0 0" size="1 1" color="00000033" zIndex="1"/>
</view>
</theme>
14 changes: 14 additions & 0 deletions data/override/bg_video.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<theme>
<formatVersion>4</formatVersion>

<view name="basic, detailed">
<video name="md_video">
<pos>0 0</pos>
<size>1 1</size>
<animations>none</animations>
<delay>1</delay>
<zIndex>1</zIndex>
<path>../../_inc/noise.mp4</path>
</video>
</view>
</theme>
1 change: 1 addition & 0 deletions data/override/nobg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@

<view name="basic, detailed">
<image name="md_image" disabled="true"/>
<image name="md_video" disabled="true"/>
</view>
</theme>
15 changes: 15 additions & 0 deletions data/override/video.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<theme>
<formatVersion>4</formatVersion>

<view name="system">
<video name="bg_video" extra="true">
<path>../../_inc/noise.mp4</path>
<pos>0 0</pos>
<size>1 1</size>
<animations>none</animations>
<delay>0</delay>
<zIndex>0</zIndex>
</video>
<box name="cover" extra="true" pos="0 0" size="1 1" color="00000033" zIndex="1"/>
</view>
</theme>
1 change: 0 additions & 1 deletion theme-defaults.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@

<text name="logoText"/>

<video name="md_video" disabled="true"/>
<rating name="md_rating" disabled="true"/>
<datetime name="md_releasedate" disabled="true"/>
<text name="md_folder_name" pos="1 1"/>
Expand Down
3 changes: 2 additions & 1 deletion theme.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<theme name="Mister 240p" version="1.1" recalbox="9.2" compatibility="crt,jamma">
<theme name="Mister 240p" version="2.0" recalbox="9.2" compatibility="crt,jamma,tate" resolutions="qvga,vga">
<formatVersion>4</formatVersion>
<include>./theme-defaults.xml</include>
<include>./system/$system/custom.xml</include>
<include>./data/config.xml</include>
<include>./data/gameclip.xml</include>
</theme>

0 comments on commit 3ccb313

Please sign in to comment.