|
|
|
@ -3673,13 +3673,23 @@ void AiL::InitializeGraphics(){ |
|
|
|
|
squareCircleCooldownPoints.push_back({0,0}); |
|
|
|
|
for(int i=0;i<=360;i+=4){ |
|
|
|
|
float angle=util::degToRad(float(i))-PI/2; |
|
|
|
|
if(i==0){circleCooldownPoints.push_back(vf2d{cos(angle),sin(angle)});} |
|
|
|
|
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); |
|
|
|
|
if(i==0){squareCircleCooldownPoints.push_back(point);} |
|
|
|
|
squareCircleCooldownPoints.push_back(point); |
|
|
|
|
|
|
|
|
|
#pragma region Donut Circle |
|
|
|
|
const float innerArcRatio{0.8f}; |
|
|
|
|
|
|
|
|
|
donutCircleCooldownPoints.push_back(vf2d{cos(angle),sin(angle)}); |
|
|
|
|
donutCircleCooldownPoints.push_back(vf2d{cos(angle),sin(angle)}*innerArcRatio); |
|
|
|
|
#pragma endregion |
|
|
|
|
|
|
|
|
|
#pragma region Cooldown Circles |
|
|
|
|
if(i==0){circleCooldownPoints.push_back(vf2d{cos(angle),sin(angle)});} |
|
|
|
|
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); |
|
|
|
|
if(i==0){squareCircleCooldownPoints.push_back(point);} |
|
|
|
|
squareCircleCooldownPoints.push_back(point); |
|
|
|
|
#pragma endregion |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for(auto&val:DATA["Images"].GetKeys()){ |
|
|
|
|