Skip to content

Commit

Permalink
owo
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBearodactyl committed Jun 7, 2024
1 parent d17f754 commit 03715a1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
14 changes: 10 additions & 4 deletions mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"android": "2.206"
},
"version": "v1.1.0",
"id": "the_bearodactyl.gay-wave-trail",
"name": "Gay Wave Trail",
"id": "the_bearodactyl.gay-wave",
"name": "Gay Wave (fomerly trail)",
"developer": "The Bearodactyl",
"description": "make your wave trail (and kayla) a raging homosexual >:3",
"description": "make your wave (and kayla) a raging homosexual >:3",
"settings": {
"enable": {
"name": "Enable the G A E",
Expand Down Expand Up @@ -40,7 +40,7 @@
},
"wave-trail-size": {
"name": "it even left a trail...",
"description": "that of which you can change the size...\noh my fucking sex,\nyou though i was talking about something else",
"description": "that of which you can change the size...",
"type": "float",
"default": 1,
"min": 0.05,
Expand All @@ -49,6 +49,12 @@
"slider-step": 0.05
}
},
"rainbow-icon": {
"name": "First it was just the trail...",
"description": "NOW THE ICON TOO???\noh my fuckin sex, i\nam so dissapointed.",
"type": "bool",
"default": false
},
"saturation": {
"name": "HOW GAY ARE YOU???",
"type": "float",
Expand Down
15 changes: 15 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ struct MyPlayLayer : Modify<MyPlayLayer, PlayLayer> {
bool use_gradient = Mod::get()->getSettingValue<bool>( "use-gradient" );
bool enable = Mod::get()->getSettingValue<bool>( "enable" );
bool noRegularTrail = Mod::get()->getSettingValue<bool>( "no-reg-trail" );
bool rainbow_icon = Mod::get()->getSettingValue<bool>( "rainbow-icon" );

auto color1 = Mod::get()->getSettingValue<ccColor3B>( "color-one" );
auto color2 = Mod::get()->getSettingValue<ccColor3B>( "color-two" );
Expand Down Expand Up @@ -67,25 +68,39 @@ struct MyPlayLayer : Modify<MyPlayLayer, PlayLayer> {
if ( m_player1->m_waveTrail ) {
m_player1->m_waveTrail
->setColor( rainbowColor );

if ( rainbow_icon ) {
m_player1->setColor( rainbowColor );
}
}

if ( m_player2->m_waveTrail ) {
m_player2->m_waveTrail
->setColor( ! mirror_players
? rainbowColor2
: rainbowColor );

if ( rainbow_icon ) {
m_player2->setColor( rainbowColor2 );
}
}
} else {
if ( m_player1->m_waveTrail ) {
m_player1->m_waveTrail
->setColor( gradientColor );

if ( rainbow_icon ) {
m_player1->setColor( gradientColor );
}
}

if ( m_player2->m_waveTrail ) {
m_player2->m_waveTrail
->setColor( ! mirror_players
? gradientColor
: gradientColor2 );

m_player2->setColor( ! mirror_players ? gradientColor : gradientColor2 );
}
}
}
Expand Down

0 comments on commit 03715a1

Please sign in to comment.