-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Clan captor badge and clan ranking
- Loading branch information
Showing
18 changed files
with
592 additions
and
87 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
|
||
#include "beatsaber-hook/shared/config/rapidjson-utils.hpp" | ||
#include "include/Models/Clan.hpp" | ||
|
||
#include <string> | ||
using namespace std; | ||
|
||
struct ClanScore | ||
{ | ||
int id; | ||
// int baseScore; | ||
int modifiedScore; | ||
float accuracy; | ||
int clanId; | ||
float pp; | ||
// float Weight; | ||
int rank; | ||
string timeset; | ||
|
||
Clan clan; | ||
ClanScore(); | ||
ClanScore(rapidjson::Value const& document); | ||
}; |
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,17 @@ | ||
#pragma once | ||
|
||
#include "include/Models/Clan.hpp" | ||
|
||
#include "questui/shared/BeatSaberUI.hpp" | ||
#include "questui/shared/QuestUI.hpp" | ||
|
||
#include "TMPro/TextMeshProUGUI.hpp" | ||
|
||
namespace CaptorClanUI { | ||
extern bool showClanRanking; | ||
extern function<void()> showClanRankingCallback; | ||
|
||
void initCaptorClan(UnityEngine::GameObject* header, TMPro::TextMeshProUGUI* headerPanelText); | ||
void setClan(ClanRankingStatus clanStatus); | ||
void setActive(bool active); | ||
} |
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
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,14 @@ | ||
#include "include/Models/ClanScore.hpp" | ||
|
||
ClanScore::ClanScore() {} | ||
|
||
ClanScore::ClanScore(rapidjson::Value const& document) { | ||
auto const& clanObject = document["clan"]; | ||
clan = Clan(clanObject); | ||
|
||
pp = document["pp"].GetFloat(); | ||
rank = document["rank"].GetInt(); | ||
modifiedScore = document["modifiedScore"].GetInt(); | ||
timeset = document["timepost"].GetString(); | ||
accuracy = document["accuracy"].GetFloat(); | ||
} |
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.