From 24b4a5f759aafe5d388b5eb17c4c74ebe08f762e Mon Sep 17 00:00:00 2001 From: The Bearodactyl Date: Fri, 7 Jun 2024 15:44:39 -0500 Subject: [PATCH] add rainbow wave icon --- mod.json | 4 ++-- src/main.cpp | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/mod.json b/mod.json index eac2154..291e584 100644 --- a/mod.json +++ b/mod.json @@ -5,8 +5,8 @@ "android": "2.206" }, "version": "v1.1.0", - "id": "the_bearodactyl.gay-wave", - "name": "Gay Wave (fomerly trail)", + "id": "the_bearodactyl.gay-wave-trail", + "name": "Gay Wave Trail", "developer": "The Bearodactyl", "description": "make your wave (and kayla) a raging homosexual >:3", "settings": { diff --git a/src/main.cpp b/src/main.cpp index c697476..854686c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -69,7 +69,7 @@ struct MyPlayLayer : Modify { m_player1->m_waveTrail ->setColor( rainbowColor ); - if ( rainbow_icon ) { + if ( rainbow_icon && m_player1->m_isDart ) { m_player1->setColor( rainbowColor ); } } @@ -80,7 +80,7 @@ struct MyPlayLayer : Modify { ? rainbowColor2 : rainbowColor ); - if ( rainbow_icon ) { + if ( rainbow_icon && m_player1->m_isDart ) { m_player2->setColor( rainbowColor2 ); } } @@ -89,7 +89,7 @@ struct MyPlayLayer : Modify { m_player1->m_waveTrail ->setColor( gradientColor ); - if ( rainbow_icon ) { + if ( rainbow_icon && m_player1->m_isDart ) { m_player1->setColor( gradientColor ); } } @@ -100,7 +100,9 @@ struct MyPlayLayer : Modify { ? gradientColor : gradientColor2 ); - m_player2->setColor( ! mirror_players ? gradientColor : gradientColor2 ); + if ( rainbow_icon && m_player2->m_isDart ) { + m_player2->setColor( ! mirror_players ? gradientColor : gradientColor2 ); + } } } }