generated from replugged-org/plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b33e0d0
commit 6dc54f1
Showing
11 changed files
with
93 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { SettingValues } from "../index"; | ||
import { defaultSettings } from "../lib/consts"; | ||
import ContextMenu from "./ContextMenu"; | ||
import Icons from "./Icons"; | ||
import Utils from "../lib/utils"; | ||
import Types from "../types"; | ||
|
||
export default ({ ProfileItem }: { ProfileItem: Types.ProfileItem }): React.ReactElement | null => { | ||
if (!SettingValues.get("statusPicker", defaultSettings.statusPicker)) return null; | ||
const [status, toogleStatus] = Utils.useSoundStatus(); | ||
const Icon = ( | ||
<Icons.sound | ||
width="16" | ||
height="16" | ||
style={{ | ||
marginLeft: "-2px", | ||
}} | ||
/> | ||
); | ||
const DisabledIcon = ( | ||
<Icons.sound | ||
width="16" | ||
height="16" | ||
style={{ | ||
marginLeft: "-2px", | ||
}}> | ||
<polygon | ||
style={{ | ||
fill: "#a61616", | ||
}} | ||
points="22.6,2.7 22.6,2.8 19.3,6.1 16,9.3 16,9.4 15,10.4 15,10.4 10.3,15 2.8,22.5 1.4,21.1 21.2,1.3 " | ||
/> | ||
</Icons.sound> | ||
); | ||
|
||
return ( | ||
<div> | ||
<ProfileItem | ||
label={`${status ? "Unfake" : "Fake"} VC Status`} | ||
id="fake-deafen" | ||
icon={() => (status ? DisabledIcon : Icon)} | ||
onClick={() => toogleStatus()} | ||
renderSubmenu={({ closePopout }) => <ContextMenu onClose={closePopout} />} | ||
/> | ||
<div id="profileDivider" /> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import Modules from "./lib/requiredModules"; | ||
import AccountDetailsButton from "./Components/AccountDetailsButton"; | ||
import AccountProfileItem from "./Components/AccountProfileItem"; | ||
|
||
export const _addPanelButton = () => (Modules.PanelButton ? <AccountDetailsButton /> : <></>); | ||
|
||
export const _addProfileItem = (props) => <AccountProfileItem {...props} />; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters