stuff
This commit is contained in:
parent
b2d50de61c
commit
eded1c8fc9
|
@ -9944,9 +9944,11 @@
|
|||
"329018006371827713", // FUSL
|
||||
"562008872467038230" // BEAUDEN
|
||||
];
|
||||
const BDFDB_Patrons_T3_hasBadge = [
|
||||
"562008872467038230" // BEAUDEN
|
||||
];
|
||||
InternalBDFDB._processAvatarRender = function (user, avatar) {
|
||||
if (BDFDB.ReactUtils.isValidElement(avatar) && BDFDB.ObjectUtils.is(user)) {
|
||||
avatar.props["user_by_BDFDB"] = user.id;
|
||||
let role = "", className = BDFDB.DOMUtils.formatClassName((avatar.props.className || "").replace(BDFDB.disCN.avatar, ""));
|
||||
if (BDFDB_Patrons_T2.includes(user.id)) {
|
||||
role = "BDFDB Patron";
|
||||
|
@ -9954,7 +9956,7 @@
|
|||
}
|
||||
if (BDFDB_Patrons_T3.includes(user.id)) {
|
||||
role = "BDFDB Patron Level 2";
|
||||
className = BDFDB.DOMUtils.formatClassName(className, settings.showSupportBadges && BDFDB.disCN.bdfdbhasbadge, BDFDB.disCN.bdfdbsupporter, BDFDB.disCN.bdfdbsupportercustom);
|
||||
className = BDFDB.DOMUtils.formatClassName(className, settings.showSupportBadges && BDFDB.disCN.bdfdbhasbadge, BDFDB.disCN.bdfdbsupporter, settings.showSupportBadges && BDFDB_Patrons_T3_hasBadge.includes(user.id) && BDFDB.disCN.bdfdbsupportercustom);
|
||||
}
|
||||
if (user.id == myId) {
|
||||
role = "Theme Developer";
|
||||
|
@ -9968,12 +9970,13 @@
|
|||
avatar = BDFDB.ReactUtils.createElement("div", {
|
||||
className: className,
|
||||
style: {borderRadius: 0, overflow: "visible"},
|
||||
"custom-badge-id": BDFDB_Patrons_T3_hasBadge.includes(user.id) ? user.id : null,
|
||||
children: [avatar]
|
||||
});
|
||||
if (settings.showSupportBadges) avatar.props.children.push(BDFDB.ReactUtils.createElement(InternalComponents.LibraryComponents.TooltipContainer, {
|
||||
text: role,
|
||||
children: BDFDB.ReactUtils.createElement("div", {
|
||||
className: BDFDB.disCN.bdfdbbadge
|
||||
className: BDFDB.disCN.bdfdbbadge,
|
||||
})
|
||||
}));
|
||||
return avatar;
|
||||
|
@ -9982,7 +9985,6 @@
|
|||
};
|
||||
InternalBDFDB._processAvatarMount = function (user, avatar, position = "top") {
|
||||
if (Node.prototype.isPrototypeOf(avatar) && BDFDB.ObjectUtils.is(user)) {
|
||||
avatar.setAttribute("user_by_BDFDB", user.id);
|
||||
let role = "";
|
||||
if (BDFDB_Patrons_T2.includes(user.id) && settings.showSupportBadges) {
|
||||
role = "BDFDB Patron";
|
||||
|
@ -9990,7 +9992,7 @@
|
|||
}
|
||||
else if (BDFDB_Patrons_T3.includes(user.id) && settings.showSupportBadges) {
|
||||
role = "BDFDB Patron Level 2";
|
||||
avatar.className = BDFDB.DOMUtils.formatClassName(avatar.className, settings.showSupportBadges && BDFDB.disCN.bdfdbhasbadge, BDFDB.disCN.bdfdbsupporter, BDFDB.disCN.bdfdbsupportercustom);
|
||||
avatar.className = BDFDB.DOMUtils.formatClassName(avatar.className, settings.showSupportBadges && BDFDB.disCN.bdfdbhasbadge, BDFDB.disCN.bdfdbsupporter, settings.showSupportBadges && BDFDB_Patrons_T3_hasBadge.includes(user.id) && BDFDB.disCN.bdfdbsupportercustom);
|
||||
|
||||
}
|
||||
else if (user.id == myId) {
|
||||
|
@ -9999,6 +10001,7 @@
|
|||
}
|
||||
if (role && !avatar.querySelector(BDFDB.dotCN.bdfdbbadge)) {
|
||||
if (settings.showSupportBadges) {
|
||||
if (BDFDB_Patrons_T3_hasBadge.includes(user.id)) avatar.setAttribute("custom-badge-id", user.id);
|
||||
let badge = document.createElement("div");
|
||||
badge.className = BDFDB.disCN.bdfdbbadge;
|
||||
badge.addEventListener("mouseenter", _ => {BDFDB.TooltipUtils.create(badge, role, {position});});
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1,10 +1,10 @@
|
|||
.supporter-Z3FfwL.hasBadge-4rT8_u .mask-1l8v16 {
|
||||
.supporter-Z3FfwL.hasBadge-4rT8_u:not(.customSupporter-thxL4U) .mask-1l8v16 {
|
||||
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 1 1"><g fill="none" fill-rule="evenodd"><path fill="white" d="M0 0 h 1 v 1 h -0.7 v -0.353 h -0.3 z"/></g></svg>') center/cover no-repeat;
|
||||
}
|
||||
.supporter-Z3FfwL.hasBadge-4rT8_u .avatarHint-1qgaV3 {
|
||||
.supporter-Z3FfwL.hasBadge-4rT8_u:not(.customSupporter-thxL4U) .avatarHint-1qgaV3 {
|
||||
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 1 1"><g fill="none" fill-rule="evenodd"><path fill="white" d="M0 0 h 1 v 1 h -0.66 v -0.33 h -0.33 z"/></g></svg>');
|
||||
}
|
||||
.supporter-Z3FfwL.hasBadge-4rT8_u .badge-7R_W3s {
|
||||
.supporter-Z3FfwL.hasBadge-4rT8_u:not(.customSupporter-thxL4U) .badge-7R_W3s {
|
||||
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 508.52 508.52" style="enable-background:new 0 0 508.52 508.52;" xml:space="preserve"><path fill="black" d="M63.565, 476.737c0, 12.84, 7.755, 24.473, 19.61, 29.367c3.941, 1.621, 8.073, 2.415, 12.173, 2.415c8.263, 0, 16.4-3.242, 22.47-9.312L254.26, 362.765l136.442, 136.442c6.07, 6.07, 14.207, 9.312, 22.47, 9.312c4.1, 0, 8.232-0.795, 12.141-2.415c11.887-4.894, 19.642-16.527, 19.642-29.367V165.347H63.565V476.737z"/><path fill="black" d="M413.172, 0H95.347C77.804, 0, 63.565, 14.239, 63.565, 31.782v61.782h381.39V31.782C444.955, 14.239, 430.716, 0, 413.172, 0z"/></svg>') center/cover no-repeat !important;
|
||||
background: #F96854 !important;
|
||||
position: absolute !important;
|
||||
|
@ -13,7 +13,23 @@
|
|||
top: 74% !important;
|
||||
left: 1.5% !important;
|
||||
}
|
||||
.root-SR8cQa .topSectionPlaying-1J5E4n .supporter-Z3FfwL.hasBadge-4rT8_u .badge-7R_W3s,
|
||||
.userPopout-3XzG_A .headerPlaying-j0WQBV .supporter-Z3FfwL.hasBadge-4rT8_u .badge-7R_W3s {
|
||||
.root-SR8cQa .topSectionPlaying-1J5E4n .supporter-Z3FfwL.hasBadge-4rT8_u:not(.customSupporter-thxL4U) .badge-7R_W3s,
|
||||
.userPopout-3XzG_A .headerPlaying-j0WQBV .supporter-Z3FfwL.hasBadge-4rT8_u:not(.customSupporter-thxL4U) .badge-7R_W3s {
|
||||
filter: brightness(80%) !important;
|
||||
}
|
||||
|
||||
/* BEAUDEN */
|
||||
.supporter-Z3FfwL.hasBadge-4rT8_u.customSupporter-thxL4U[custom-badge-id="562008872467038230"] .mask-1l8v16 {
|
||||
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 1 1"><g fill="none" fill-rule="evenodd"><path fill="white" d="M0 0 h 1 v 1 h -0.6 v -0.33 h -0.4 z"/></g></svg>') center/cover no-repeat;
|
||||
}
|
||||
.supporter-Z3FfwL.hasBadge-4rT8_u.customSupporter-thxL4U[custom-badge-id="562008872467038230"] .avatarHint-1qgaV3 {
|
||||
-webkit-mask: url('data:image/svg+xml; utf8, <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 1 1"><g fill="none" fill-rule="evenodd"><path fill="white" d="M0 0 h 1 v 1 h -0.54 v -0.3 h -0.46 z"/></g></svg>');
|
||||
}
|
||||
.supporter-Z3FfwL.hasBadge-4rT8_u.customSupporter-thxL4U[custom-badge-id="562008872467038230"] .badge-7R_W3s {
|
||||
background: url(https://mwittrien.github.io/BetterDiscordAddons/Themes/res/T3Badges/562008872467038230.png) center/cover no-repeat !important;
|
||||
position: absolute !important;
|
||||
width: 50% !important;
|
||||
height: calc(420/800 * 50%) !important;
|
||||
top: 75% !important;
|
||||
left: -10% !important;
|
||||
}
|
Loading…
Reference in New Issue