Skip to content

Commit

Permalink
three randomized evw voicelines
Browse files Browse the repository at this point in the history
  • Loading branch information
NinSam committed Nov 27, 2024
1 parent 7b259c3 commit 2c72e96
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 18 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog

## v1.0.1
- Clicking the recent tab will now play three randomized evw voicelines (Suggestion from [hiimjustin000](user:7466002))

## v1.0.0
- Initial Release
4 changes: 2 additions & 2 deletions mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
},
"id": "ninsam.to_the_recent_taaaab",
"name": "To The Recent TAAAAB!",
"version": "v1.0.0",
"version": "v1.0.1",
"developer": "NinSam",
"description": "Clicking the recent tab will play the iconic evw line!",
"tags": ["joke"],
"resources":{

"files":["resources/evw_recent_tab.ogg"]
"files":["resources/*ogg"]
},
"links": {
"source": "https://github.com/NinSam/To-The-Recent-TAAAAB"
Expand Down
Binary file added resources/evw_recent_tab_1.ogg
Binary file not shown.
Binary file added resources/evw_recent_tab_2.ogg
Binary file not shown.
32 changes: 16 additions & 16 deletions src/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include <Geode/Geode.hpp>
#include <ctime>
#include <Geode/modify/LevelSearchLayer.hpp>

using namespace geode::prelude;
Expand All @@ -8,31 +9,30 @@ class $modify(LevelSearchLayer) {
void onMostRecent(CCObject* sender){

LevelSearchLayer::onMostRecent(sender);
if (Mod::get()->getSettingValue<bool>("enable-voiceline")){

FMODAudioEngine::sharedEngine()->playEffect("evw_recent_tab.ogg"_spr);
}
}
if (Mod::get()->getSettingValue<bool>("enable-voiceline")){

/*
srand(time(0));
int random = rand() % 3 + 1;

Idea from @Random_person921
switch(random){

case 1: FMODAudioEngine::sharedEngine()->playEffect("evw_recent_tab.ogg"_spr);

from here: https://www.youtube.com/watch?v=khNOxO_uq80&t=25s
Uses music slider: FMODAudioEngine::sharedEngine()->playMusic();
break;

Uses sfx slider: FMODAudioEngine::sharedEngine()->playEffect();
case 2: FMODAudioEngine::sharedEngine()->playEffect("evw_recent_tab_1.ogg"_spr);

break;

case 3: FMODAudioEngine::sharedEngine()->playEffect("evw_recent_tab_2.ogg"_spr);

break;

Get bool setting: Mod::get()->getSettingValue<bool>("")
Get int setting: Mod::get()->getSettingValue<int64_t>("") == 0
}

}

*/
}

};

0 comments on commit 2c72e96

Please sign in to comment.