mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-03 00:39:02 +00:00
UniStore v2! (#36)
* Do not build here. * WIP: UniStoreV2! This implementation is ugly and a big cleanup is needed. * [UniStoreV2]: Add `Lang::get(...)`. * Add back UniStore autobooting. * UniStoreV2: Add List Layout. * Some more UniStore work. Also constify vector's. * Some more spritesheet checks. * oops.. forgot to do `Config::fading`. * Display UniStore version on the Store list bar. * version now needs to be `0` or `1` or not included. versions with 2, 3, 4 and up shows an error now. * You can now also scroll to the next page with D-Pad Left/D-Pad Right! * Last fix before merge?
This commit is contained in:
+4
-4
@@ -77,13 +77,11 @@ void GFX::DrawBottom(void) {
|
||||
|
||||
extern C2D_SpriteSheet sprites;
|
||||
|
||||
void GFX::DrawSprite(int img, int x, int y, float ScaleX, float ScaleY)
|
||||
{
|
||||
void GFX::DrawSprite(int img, int x, int y, float ScaleX, float ScaleY) {
|
||||
Gui::DrawSprite(sprites, img, x, y, ScaleX, ScaleY);
|
||||
}
|
||||
|
||||
void GFX::DrawSpriteBlend(int img, int x, int y, float ScaleX, float ScaleY)
|
||||
{
|
||||
void GFX::DrawSpriteBlend(int img, int x, int y, float ScaleX, float ScaleY) {
|
||||
C2D_ImageTint tint;
|
||||
if (isScriptSelected) {
|
||||
C2D_SetImageTint(&tint, C2D_TopLeft, TextColor, 0.5);
|
||||
@@ -96,6 +94,7 @@ void GFX::DrawSpriteBlend(int img, int x, int y, float ScaleX, float ScaleY)
|
||||
C2D_SetImageTint(&tint, C2D_BotLeft, Config::TxtColor, 0.5);
|
||||
C2D_SetImageTint(&tint, C2D_BotRight, Config::TxtColor, 0.5);
|
||||
}
|
||||
|
||||
C2D_DrawImageAt(C2D_SpriteSheetGetImage(sprites, img), x, y, 0.5f, &tint, ScaleX, ScaleY);
|
||||
}
|
||||
|
||||
@@ -119,6 +118,7 @@ void GFX::DrawArrow(int x, int y, float rotation, int arrowSprite) {
|
||||
} else {
|
||||
C2D_SpriteFromSheet(&sprite, sprites, sprites_side_arrow_idx);
|
||||
}
|
||||
|
||||
C2D_SpriteRotateDegrees(&sprite, rotation);
|
||||
C2D_SpriteSetPos(&sprite, x, y);
|
||||
C2D_SpriteSetDepth(&sprite, 0.5);
|
||||
|
||||
Reference in New Issue
Block a user