@ -1268,6 +1268,13 @@ void Crawler::RenderCooldowns(){
Decal * overlayIcon = GFX [ " skill_overlay_icon.png " ] . Decal ( ) ;
Decal * overlayIcon = GFX [ " skill_overlay_icon.png " ] . Decal ( ) ;
if ( ! circle ) overlayIcon = GFX [ " square_skill_overlay_icon.png " ] . Decal ( ) ;
if ( ! circle ) overlayIcon = GFX [ " square_skill_overlay_icon.png " ] . Decal ( ) ;
DrawDecal ( pos , overlayIcon ) ;
DrawDecal ( pos , overlayIcon ) ;
if ( a . input - > Held ( ) ) {
if ( circle ) {
DrawPie ( pos + vf2d { 12 , 12 } , 12 , 0 , { 255 , 255 , 255 , 64 } ) ;
} else {
DrawSquarePie ( pos + vf2d { 12 , 12 } , 10 , 0 , { 255 , 255 , 255 , 64 } ) ;
}
}
Pixel shortNameCol = BLUE , manaCostShadowCol = DARK_BLUE , keyDisplayCol = YELLOW ;
Pixel shortNameCol = BLUE , manaCostShadowCol = DARK_BLUE , keyDisplayCol = YELLOW ;
if ( player - > GetMana ( ) < a . manaCost ) {
if ( player - > GetMana ( ) < a . manaCost ) {
@ -2024,10 +2031,12 @@ void Crawler::InitializeGraphics(){
squareCircleCooldownPoints . push_back ( { 0 , 0 } ) ;
squareCircleCooldownPoints . push_back ( { 0 , 0 } ) ;
for ( int i = 0 ; i < = 360 ; i + = 4 ) {
for ( int i = 0 ; i < = 360 ; i + = 4 ) {
float angle = util : : degToRad ( float ( i ) ) - PI / 2 ;
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 ) } ) ;
circleCooldownPoints . push_back ( vf2d { cos ( angle ) , sin ( angle ) } ) ;
vf2d point = vf2d { cos ( angle ) , sin ( angle ) } * sqrt ( 2.1f ) ;
vf2d point = vf2d { cos ( angle ) , sin ( angle ) } * sqrt ( 2.1f ) ;
point . x = std : : clamp ( point . x , - 1.f , 1.f ) ;
point . x = std : : clamp ( point . x , - 1.f , 1.f ) ;
point . y = std : : clamp ( point . y , - 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 ) ;
squareCircleCooldownPoints . push_back ( point ) ;
}
}