Skip to content

Commit

Permalink
added images based on theme
Browse files Browse the repository at this point in the history
now the animation images follow the right background color
  • Loading branch information
0tia0 committed Nov 20, 2024
1 parent 4c78d30 commit d44c74a
Show file tree
Hide file tree
Showing 31 changed files with 13 additions and 25 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added img/sign/1/sign.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/sign/1/sign_0.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/sign/1/sign_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/sign/1/sign_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/sign/1/sign_10.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/sign/1/sign_11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/sign/1/sign_12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/sign/1/sign_2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/sign/1/sign_3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/sign/1/sign_4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/sign/1/sign_5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/sign/1/sign_6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/sign/1/sign_7.jpg
Binary file added img/sign/1/sign_8.jpg
Binary file added img/sign/1/sign_9.jpg
31 changes: 13 additions & 18 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,25 +286,20 @@ void drawThemeMenu()
*/
void animatedSign(int selectedImage)
{

int i = 0;
int j = 0;
char *files[] = {
"./img/sign/sign_1.jpg",
"./img/sign/sign_2.jpg",
"./img/sign/sign_3.jpg",
"./img/sign/sign_4.jpg",
"./img/sign/sign_5.jpg",
"./img/sign/sign_6.jpg",
"./img/sign/sign_7.jpg",
"./img/sign/sign_8.jpg",
"./img/sign/sign_9.jpg",
"./img/sign/sign_10.jpg",
"./img/sign/sign_11.jpg",
"./img/sign/sign_12.jpg",
};

readimagefile("./img/sign/sign_0.jpg", 0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);

char files[13][30];
char *firstPart = "./img/sign/";
for (int i = 1; i <= 12; i++)
{
sprintf(files[i], "%s%d/sign_%d.jpg", firstPart, themeSelection, i);
}

char noSignImage[30];
sprintf(noSignImage, "%s%d/sign_%d.jpg", firstPart, themeSelection, 0);

readimagefile(noSignImage, 0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);

for (j = 0; j < 100; j += 10)
{
Expand All @@ -327,7 +322,7 @@ void animatedSign(int selectedImage)

for (i = 0; i < 5; i++)
{
readimagefile("./img/sign/sign_0.jpg", 0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);
readimagefile(noSignImage, 0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);
delay(50);
readimagefile(files[selectedImage - 1], 0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);
delay(100);
Expand Down
Binary file modified main.exe
Binary file not shown.
7 changes: 0 additions & 7 deletions tempCodeRunnerFile.cpp

This file was deleted.

0 comments on commit d44c74a

Please sign in to comment.