|
|
|
@ -1176,8 +1176,7 @@ void Crawler::RenderHud(){ |
|
|
|
|
DrawShadowStringDecal({0,136},"Spd: "+std::to_string(player->GetMoveSpdMult())); |
|
|
|
|
DrawShadowStringDecal({0,1},"Selection: "+Menu::menus[INVENTORY]->selection.str()); |
|
|
|
|
DrawShadowStringDecal({0,12},"Button Hold Time: "+std::to_string(Menu::menus[INVENTORY]->buttonHoldTime)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}} |
|
|
|
|
|
|
|
|
|
void Crawler::RenderCooldowns(){ |
|
|
|
|
std::vector<Ability>cooldowns{ |
|
|
|
@ -1818,6 +1817,10 @@ void Crawler::DrawPie(vf2d center,float radius,float degreesCut,Pixel col){ |
|
|
|
|
DrawPolygonDecal(nullptr,circleCooldownPoints,circleCooldownPoints,std::max(1,int(degreesCut/4)),center,radius,col); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Crawler::DrawSquarePie(vf2d center,float radius,float degreesCut,Pixel col){ |
|
|
|
|
DrawPolygonDecal(nullptr,squareCircleCooldownPoints,squareCircleCooldownPoints,std::max(1,int(degreesCut/4)),center,radius,col); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void Crawler::InitializeDefaultKeybinds(){ |
|
|
|
|
Player::KEY_ABILITY1.AddKeybind({KEY,Q}); |
|
|
|
|
Player::KEY_ABILITY2.AddKeybind({KEY,E}); |
|
|
|
@ -1910,9 +1913,14 @@ void Crawler::RenderMenu(){ |
|
|
|
|
|
|
|
|
|
void Crawler::InitializeGraphics(){ |
|
|
|
|
circleCooldownPoints.push_back({0,0}); |
|
|
|
|
squareCircleCooldownPoints.push_back({0,0}); |
|
|
|
|
for(int i=0;i<=360;i+=4){ |
|
|
|
|
float angle=util::degToRad(i)-PI/2; |
|
|
|
|
circleCooldownPoints.push_back(vf2d{cos(angle),sin(angle)}); |
|
|
|
|
vf2d point=vf2d{cos(angle),sin(angle)}*sqrt(2.1f); |
|
|
|
|
point.x=std::clamp(point.x,-1.f,1.f); |
|
|
|
|
point.y=std::clamp(point.y,-1.f,1.f); |
|
|
|
|
squareCircleCooldownPoints.push_back(point); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for(auto&val:DATA["Images"].GetKeys()){ |
|
|
|
|