mirror of
https://github.com/DarkStore-3DS/DarkStore.git
synced 2026-07-03 08:39:05 +00:00
Fix a few problems.
This commit is contained in:
+6
-2
@@ -109,7 +109,7 @@ void Gui::spriteBlend(int key, int x, int y, float ScaleX, float ScaleY)
|
||||
C2D_DrawImageAt(C2D_SpriteSheetGetImage(sprites, key), x, y, 0.5f, &tint, ScaleX, ScaleY);
|
||||
}
|
||||
|
||||
void Gui::DrawArrow(int x, int y, float rotation) {
|
||||
void Gui::DrawArrow(int x, int y, float rotation, int arrowSprite) {
|
||||
C2D_Sprite sprite;
|
||||
C2D_ImageTint tint;
|
||||
if (isScriptSelected) {
|
||||
@@ -124,7 +124,11 @@ void Gui::DrawArrow(int x, int y, float rotation) {
|
||||
C2D_SetImageTint(&tint, C2D_BotRight, Config::TxtColor, 0.5);
|
||||
}
|
||||
|
||||
C2D_SpriteFromSheet(&sprite, sprites, sprites_arrow_idx);
|
||||
if (arrowSprite == 0) {
|
||||
C2D_SpriteFromSheet(&sprite, sprites, sprites_arrow_idx);
|
||||
} 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