add some contents to the main menu
This commit is contained in:
parent
de1281715b
commit
5955e0472d
|
@ -1 +1,2 @@
|
|||
/build-fx
|
||||
/assets-fx/*.xcf
|
||||
|
|
BIN
MystNB.g1a
BIN
MystNB.g1a
Binary file not shown.
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 |
Binary file not shown.
After Width: | Height: | Size: 167 B |
Binary file not shown.
After Width: | Height: | Size: 508 B |
|
@ -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
|
||||
|
|
25
src/main.c
25
src/main.c
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue