added auto mute mod, changes in mods config UI #107
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
xela.codes/NinjaIOUtils!107
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "auto-mute"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I haven't actually tested the script yet, I'll have to do that after your comments/changes.
again, pnpm
Is there a reason for these cosmetic changes?
@ -308,7 +308,6 @@ export default function hookModMenu() {// no idea why these values work the way they docan just remove this log, i forgot to when i was testing
?
why not convert this to a string?
@ -159,6 +159,21 @@ declare module "lib" {}are these PIXI Containers? if so they should be typed as such rather than
any@ -0,0 +174,4 @@this.originalDisplayChatBubble = Label.prototype.displayChatBubble;}if (Ninja.isGuest()) {this.log("Not supported for guests.", config.Colors.red);Is this required? The userscript already officially does not support guest users so this seems redundant.
Sorry for taking so long, I was sick the past few days and been catching up on schoolwork.
old one made my mod description go off the container
cosmetic
i had a problem with it, dont remember why. now i checked and its ok, i returned old line
@ -159,6 +159,21 @@ declare module "lib" {}from game.js:
class PlayerDropdown extends PIXI.Container {
...
this.muteRow = new PlayerDropdownActionRow("Mute",PlayerDropdown.Action.MUTE,15597568);
this.unmuteRow = new PlayerDropdownActionRow("Unmute",PlayerDropdown.Action.UNMUTE,15597568);
this.inviteRow = new PlayerDropdownActionRow("Send friend invitation",PlayerDropdown.Action.INVITE,16763904);
...}
...
class PlayerDropdownActionRow extends PIXI.Container {
constructor(a, b, c) {...}
...}
@ -0,0 +174,4 @@this.originalDisplayChatBubble = Label.prototype.displayChatBubble;}if (Ninja.isGuest()) {this.log("Not supported for guests.", config.Colors.red);currently for guests only alert is shown, all the features work.
i wanted it so this mod wont load if logged on guest
@ -0,0 +174,4 @@this.originalDisplayChatBubble = Label.prototype.displayChatBubble;}if (Ninja.isGuest()) {this.log("Not supported for guests.", config.Colors.red);can probably just remove this then. utils already shows the user an alert if they are a guest

Buiz recently upgraded the site to the latest PIXI v8. Most of the old methods still work, however new code should use the v8 syntax since we will have to migrate the entire script at one point.
Migration Guide: https://pixijs.com/8.x/guides/migrations/v8#breaking-changes
This text should have a black stroke.

The label text should probably be migrated to use an existing
FontStyleand you can extend it with thecloneTextStylefunction to change its size. (maybe use the same text style the Checkbox component uses)These buttons overlap a little.


If i remove a player from the list, the scrollbar resets to the top and theres a gap at the bottom.
I dont see Delete buttons overlapping.
About guests: yes, there's alert, but it doesnt restrict anything, all the mods load and work. I want this mod to not load if logged on guest, I would like to leave it as it is