add some contents to the main menu

This commit is contained in:
Lephenixnoir 2020-07-25 10:37:07 +02:00
parent de1281715b
commit 5955e0472d
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
8 changed files with 27 additions and 1 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
/build-fx
/assets-fx/*.xcf

Binary file not shown.

BIN
assets-fx/fonts/mystere.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

BIN
assets-fx/img/levels.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B

BIN
assets-fx/img/title.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 B

View File

@ -83,3 +83,5 @@ LDFLAGS_CG += -Wl,-Map=build-cg/map
# font named "hexa.png", you might write:
#
# FONT.hexa.png = charset:print grid.size:3x5 grid.padding:1
FONT.mystere.png = charset:print grid.size:5x7 grid.padding:1 proportional:true

View File

@ -3,8 +3,31 @@
int main(void)
{
extern bopti_image_t img_title;
extern bopti_image_t img_levels;
extern font_t font_mystere;
dfont(&font_mystere);
dclear(C_WHITE);
dtext(1, 1, C_BLACK, "Sample fxSDK add-in.");
dimage(0, 2, &img_title);
for(int i = 1; i <= 8; i++)
{
int x = 20 + 11*(i-1);
int y = 36;
if(i != 8)
{
dsubimage(x, y, &img_levels, 0,0,10,10, DIMAGE_NONE);
dprint(x+3, y+2, C_BLACK, "%d", i);
}
else
{
dsubimage(x, y, &img_levels, 11,0,10,10, DIMAGE_NONE);
}
}
dupdate();
getkey();