forked from RocketRobz/TWiLightMenu-Updater
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from RocketRobz/master
Add upstream changes
- Loading branch information
Showing
21 changed files
with
698 additions
and
873 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "Universal-Core"] | ||
path = Universal-Core | ||
url = https://github.com/Universal-Team/Universal-Core.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule Universal-Core
added at
c82ad8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#ifndef GFX_HPP | ||
#define GFX_HPP | ||
|
||
#include "sprites.h" | ||
|
||
#include <3ds.h> | ||
#include <citro2d.h> | ||
|
||
// Colors. | ||
#define TRANSPARENT C2D_Color32(0, 0, 0, 0) | ||
#define BLACK C2D_Color32(0, 0, 0, 255) | ||
#define WHITE C2D_Color32(255, 255, 255, 255) | ||
#define GRAY C2D_Color32(127, 127, 127, 255) | ||
#define BLUE C2D_Color32(0, 0, 255, 255) | ||
#define GREEN C2D_Color32(0, 255, 0, 255) | ||
#define RED C2D_Color32(255, 0, 0, 255) | ||
#define TIME C2D_Color32(16, 0, 0, 223) | ||
|
||
typedef u32 Color; | ||
|
||
namespace GFX | ||
{ | ||
void DrawTop(); | ||
void DrawSprite(int img, int x, int y, float ScaleX = 1, float ScaleY = 1); | ||
void DrawSpriteBlend(int img, int x, int y, u32 color, float ScaleX = 1, float ScaleY = 1); | ||
} | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#ifndef INIT_HPP | ||
#define INIT_HPP | ||
|
||
#include <3ds.h> | ||
|
||
namespace Init { | ||
// Init, Mainloop & Exit. | ||
Result Initialize(); | ||
Result MainLoop(); | ||
Result Exit(); | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#ifndef MSG_HPP | ||
#define MSG_HPP | ||
|
||
#include <string> | ||
|
||
namespace Msg | ||
{ | ||
void DisplayMsg(std::string text); | ||
bool promptMsg(std::string promptMsg); | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef UPDATERSCREEN_HPP | ||
#define UPDATERSCREEN_HPP | ||
|
||
#include "common.hpp" | ||
#include "structs.hpp" | ||
|
||
#include <vector> | ||
|
||
class UpdaterScreen : public Screen | ||
{ | ||
public: | ||
void Draw(void) const override; | ||
void Logic(u32 hDown, u32 hHeld, touchPosition touch) override; | ||
UpdaterScreen(); | ||
|
||
private: | ||
bool buttonShading = false; | ||
bool setOption = false; | ||
bool showMessage = false; | ||
int menuSelection = 0; | ||
}; | ||
|
||
#endif |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.