Skip to content

Commit 23c86c2

Browse files
authored
3.4.0-release: merge the joining function into show/hide for sfchat
1 parent fea0350 commit 23c86c2

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

StateFarmClient.js

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
//3.#.#-release for release
2525
//this ensures that each version of the script is counted as different
2626

27-
// @version 3.4.0-pre71
27+
// @version 3.4.0-release
2828

2929
// @match *://*.shellshock.io/*
3030
// @match *://*.shell.onlypuppy7.online/*
@@ -573,13 +573,13 @@ console.log("StateFarm: running (before function)");
573573
initFolder({ location: tp.mainPanel, title: "StateFarm Chat", storeAs: "sfChatFolder",});
574574
initTabs({ location: tp.sfChatFolder, storeAs: "sfChatTab" });
575575
initModule({ location: tp.sfChatTab.pages[0], title: "Username", storeAs: "sfChatUsername", defaultValue: ("Guest"+(Math.floor(Math.random() * 8999) + 1000)),});
576-
initModule({ location: tp.sfChatTab.pages[0], title: "Join Chat", storeAs: "sfChatJoin", button: "Join", bindLocation: tp.sfChatTab.pages[1], clickFunction: function(){
577-
if (sfChatIframe != undefined){
578-
createPopup("Already Started. Try Showing it.");
579-
} else {
580-
startStateFarmChat();
581-
};
582-
},});
576+
// initModule({ location: tp.sfChatTab.pages[0], title: "Join Chat", storeAs: "sfChatJoin", button: "Join", bindLocation: tp.sfChatTab.pages[1], clickFunction: function(){
577+
// if (sfChatIframe != undefined){
578+
// createPopup("Already Started. Try Showing it.");
579+
// } else {
580+
// startStateFarmChat();
581+
// };
582+
// },});
583583
tp.sfChatTab.pages[0].addSeparator();
584584
initModule({ location: tp.sfChatTab.pages[0], title: "Show/Hide", storeAs: "sfChatShowHide", button: "Show/Hide", bindLocation: tp.sfChatTab.pages[1], bindLocation: tp.sfChatTab.pages[1], defaultBind:"K", clickFunction: function(){
585585
if (sfChatContainer != undefined){
@@ -588,6 +588,8 @@ console.log("StateFarm: running (before function)");
588588
} else {
589589
sfChatContainer.style.display = "none";
590590
};
591+
} else {
592+
startStateFarmChat(); //its just easier this way imo
591593
};
592594
},});
593595
//COMBAT MODULES

0 commit comments

Comments
 (0)