Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
hmatt1 committed Sep 15, 2021
1 parent 91f3c9b commit a293552
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions DoNotPullAWirtual.as
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,34 @@ vec4 textColor = randomTextColor();

bool musicSpeedUp = false;


bool debugEnabled = false;

void RenderMenuMain()
{
string colorCode = "\\$0F7";
string textPosition = "600";
if (debugEnabled) {

//string text = "hello world";

string musicStatus;
if (musicSpeedUp) {
musicStatus = "true";
} else {
musicStatus = "false";
string colorCode = "\\$0F7";
string textPosition = "600";

//string text = "hello world";

string musicStatus;
if (musicSpeedUp) {
musicStatus = "true";
} else {
musicStatus = "false";
}

string text = "curCP: " + Text::Format("%d", curCP) + " maxCP: " + Text::Format("%d", maxCP) + " timestamp: " + Text::Format("%d", timestamp) + " music: " + musicStatus;
auto textSize = Draw::MeasureString(text);

auto pos_orig = UI::GetCursorPos();
UI::SetCursorPos(vec2(UI::GetWindowSize().x - textSize.x - Text::ParseInt(textPosition), pos_orig.y));
UI::Text(text);
UI::SetCursorPos(pos_orig);

}

string text = "curCP: " + Text::Format("%d", curCP) + " maxCP: " + Text::Format("%d", maxCP) + " timestamp: " + Text::Format("%d", timestamp) + " music: " + musicStatus;
auto textSize = Draw::MeasureString(text);

auto pos_orig = UI::GetCursorPos();
UI::SetCursorPos(vec2(UI::GetWindowSize().x - textSize.x - Text::ParseInt(textPosition), pos_orig.y));
UI::Text(text);
UI::SetCursorPos(pos_orig);
}

vec4 randomColor() {
Expand Down

0 comments on commit a293552

Please sign in to comment.