Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement new touch controls and theming control strips #363

Open
wants to merge 8 commits into
base: dev
Choose a base branch
from
Binary file added docs/skyemu-theme-default.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/skyemu-theme-default.pxd
Binary file not shown.
Binary file added docs/skyemu-theme-mini.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/skyemu-theme-mini.pxd
Binary file not shown.
31,526 changes: 31,526 additions & 0 deletions src/default_theme.h

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/localization.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
// - "Save File"
// - ICON_FK_CROSSHAIRS " Located Files"
// - "GUI Scale"
// - "Auto\0Vertical\0Horizontal\0Hybrid Large Top\0Hybrid Large Bottom\0Vertical Large Top\0Vertical Large Bottom\0Horizontal Large Top\0Horizontal Large Bottom\0\0"
// - "NDS Screen Layout"
// - "Never Overlap Screen"
// - "Button Labels"

// Strings removed in v4:
// - "Controller"
Expand Down
1,971 changes: 1,175 additions & 796 deletions src/main.c

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/res.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "res.h"
#include "forkawesome.h"
#include "default_theme.h"
#ifdef UNICODE_GUI
#include "noto.h"
#include "noto_armenian.h"
Expand All @@ -15,6 +16,7 @@ const uint8_t* se_get_resource(int res_id, uint64_t* size){
uint64_t sz_dummy = 0;
if(!size)size=&sz_dummy;
switch(res_id){
case SE_THEME_DEFAULT: *size = theme_default_png_len; return theme_default_png;
case SE_FORKAWESOME: *size = forkawesome_compressed_size; return (uint8_t*)forkawesome_compressed_data;
case SE_KARLA: *size = karla_compressed_size; return (uint8_t*)karla_compressed_data;
case SE_SV_BASIC_MANUAL: *size = sv_basic_manual_compressed_size; return (uint8_t*)sv_basic_manual_compressed_data;
Expand Down
1 change: 1 addition & 0 deletions src/res.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#define SE_NOTO_SANS 4
#define SE_SV_BASIC_MANUAL 5
#define SE_CACERT_PEM 6
#define SE_THEME_DEFAULT 7

const uint8_t* se_get_resource(int res_id, uint64_t* size);

Expand Down
Loading