When using the title launcher I'm able to browse to unused parts of the grid, and I managed to freeze the launcher by going out of bounds.
I've just attached beta 44, which includes the following GitHub commits:
- Folders and themes now draw in grids instead of the ugly button lists. They will show default icons with the first letter of the folder/theme on top, or if folder.smdh or theme.smdh is placed inside the folder/theme directory then the image inside this smdh will be used as the icon for the grid. This change also removes the 8 folder/theme limit, as the folder/theme grids inherit the paging ability of the other grids so can show as many themes/folders as are on the device.
- In addition, the “Reboot” icon now changes its text to “Rebooting…” when it has been activated so the user will know the device is in the process of rebooting.
- Finally, I have created a spinning progress wheel. This isn’t used anywhere yet but is included in this commit.
Yep, that bug is on the todo list to be fixedWhen using the title launcher I'm able to browse to unused parts of the grid, and I managed to freeze the launcher by going out of bounds.
Thanks, but that sounds really complicated. Probably easier just to attach it to the first postYou could always use Travis-ci.org to automatically compile and release a binary (like I do over at https://github.com/filfat-Studios-AB/3ds.js)
see https://github.com/filfat-Studios-AB/3ds.js/blob/master/.travis.yml and https://github.com/filfat-Studios-AB/3ds.js/blob/master/.travis-deps.sh
You will however need to google around a bit to get GH_TOKEN and api_key encrypted correctly![]()
I could always do it for you if you add me as an collaborator, though you will still have to login with your github account on travis-ci.org and enable the repoYep, that bug is on the todo list to be fixed
Thanks, but that sounds really complicated. Probably easier just to attach it to the first post![]()
That would be an ideal future addition. Until proper TTF fonts are working it's unlikely to happen though, since the current font engine uses bitmap versions of TTF fonts.What about adding an option to add an outline or a shadow to the top screen text to be more flexible with backgrounds?!
FANTASTIC idea!!!!! I'll add this feature. The image can be loaded from a png inside the theme folder. Thank you!What if you could create a custom border around the icons? For example that the background consists of wood like in this 3DS theme:
![]()
Sometimes I like these playful graphics![]()
Hey buddy, was the original title longer than 64 characters by any chance? The config code is hard coded to allow values no longer than that which might explain why it wouldn't store the value of a theme with a name longer than that.@mashers I've noticed that if the theme foldes name is too long for example Kindom Hearts Pattern Theme when you select it on the theme selector screen it just puts the default theme instead of the selected one. I fixed it by renaming the Theme to KH Theme. Now all the needed info it's displayed on the smdh anyways but it might cause confusion if someone donwloads an old theme with a long name.
No it wasn't that long. Please try it out to see is you can reproduce it.Hey buddy, was the original title longer than 64 characters by any chance? The config code is hard coded to allow values no longer than that which might explain why it wouldn't store the value of a theme with a name longer than that.
Hmm ok, I'll try to reproduce the problem. I'll add an issue to the todo list and test it out. Thanks for posting the name of the themeNo it wasn't that long please try it out to see is you can reproduce it.
Name one of your themes like mine was. "JJTapia19's Kingdom Hearts pattern Theme" then go to your theme selector and try to choose it. It only applies the default theme for some reason. Renaming it shorter seems like a workaround to fix it.![]()
That would be an ideal future addition. Until proper TTF fonts are working it's unlikely to happen though, since the current font engine uses bitmap versions of TTF fonts.
drawText(text, x+1, y+1, colorShadow);
drawText(text, x, y, colorText);
What language is that? And what is the text API?In PHBank, to draw a simple shadow, I use somthing like this:
Code:drawText(text, x+1, y+1, colorShadow); drawText(text, x, y, colorText);
I don't use that code, it's just a kind of example.What language is that? And what is the text API?
MADrawText(GFX_BOTTOM, GFX_LEFT, 110+1, (320/2)-(len/2)+1, emptyFolderText, &MAFontRobotoRegular16,lightShadow->r, lightShadow->g, lightShadow->b);
MADrawText(GFX_BOTTOM, GFX_LEFT, 110, (320/2)-(len/2), emptyFolderText, &MAFontRobotoRegular16, light->r, light->g, light->b);
Yeah, I realised what you meant as soon as I postedI don't use that code, it's just a kind of example.
Code:MADrawText(GFX_BOTTOM, GFX_LEFT, 110+1, (320/2)-(len/2)+1, emptyFolderText, &MAFontRobotoRegular16,lightShadow->r, lightShadow->g, lightShadow->b); MADrawText(GFX_BOTTOM, GFX_LEFT, 110, (320/2)-(len/2), emptyFolderText, &MAFontRobotoRegular16, light->r, light->g, light->b);
Yeah, I realised what you meant as soon as I postedI would probably modify MADrawText() and MADrawTextWrap() to take parameters for the shadow colour, transparency and offset. That way any text drawing can be easily changed to include the shadow.
void sftd_draw_text_pkm(const u16 x, const u16 y, const char* text, ... )
{
char buffer[256];
va_list args;
va_start(args, text);
vsnprintf(buffer, 256, text, args);
sftd_draw_text(PHBank::font(), x+1, y+1, RGBA8(0x00, 0x00, 0x00, 0xAF), 12, buffer);
sftd_draw_text(PHBank::font(), x, y, RGBA8(0xFF, 0xFF, 0xFF, 0xFF), 12, buffer);
va_end(args);
}
@JJTapia19Ok, I've just realised what's happening. The title of the theme is being truncated to fit on the screen, and the truncated text is what is then used to determine the path to the theme to be loaded. It even gets written to hbl.cfg in its truncated form. There's actually no reason to truncate the text when showing themes and folders as there's no text beneath them, so I'll just make it display the whole string without truncating it and this should solve the problem.
Thanks! You are the best.@JJTapia19
Yep, that sorted it. I put a flag in the menu entry to draw the full text. This flag gets checked when drawing the text on the top screen, and if its set then the text wraps to the next line and doesn't get truncated. Now the full text gets written to the hbl.cfg and the theme loads correctly. I'll upload a commit and a new binary shortly.
Simple? Yes. But it would require twice the power (since we're drawing the font twice).In PHBank, to draw a simple shadow, I use somthing like this:
Code:drawText(text, x+1, y+1, colorShadow); drawText(text, x, y, colorText);