-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a457475
commit 0efdafc
Showing
10 changed files
with
295 additions
and
21 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
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,31 @@ | ||
//A lot of code for this was modified from Goldleaf. Thank you Xor (Again). | ||
#include <SDL.h> | ||
#include <SDL2/SDL_ttf.h> | ||
//#include <UI.h> | ||
#include "networking.h" | ||
#include "nlohmann/json.hpp" | ||
#include <fstream> | ||
using namespace std; | ||
using json = nlohmann::json; | ||
|
||
class UpdaterUI | ||
{ | ||
private: | ||
void DrawText(std::string); | ||
int UpdateState = 0; | ||
bool CheckForNewVersion(); | ||
std::string UpdateText = "null"; | ||
TTF_Font *TextFont; | ||
SDL_Color TextColour = {0, 0, 0}; | ||
json GitAPIData; | ||
string latestid; | ||
public: | ||
UpdaterUI(); | ||
void DrawUI(); | ||
SDL_Event *Event; | ||
int *WindowState; | ||
SDL_Renderer *renderer; | ||
int *Width; | ||
int *Height; | ||
int *IsDone; | ||
}; |
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
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
Oops, something went wrong.