Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ギガンティック大当たりの通知を非表示にする設定のうち、「全体通知」の表記を「大当たり」という表記に変える #1231

Closed
Lucky3028 opened this issue Nov 8, 2021 · 1 comment · Fixed by #1475
Labels
good first issue Good for newcomers improvement Make it better than now Status/Idea: Accepted✅ 承認済 Tracked: Redmine Redmineで追跡されているトピック

Comments

@Lucky3028
Copy link
Member

https://redmine.seichi.click/issues/10184
第16回アイデア会議にて承認された

@Lucky3028 Lucky3028 added good first issue Good for newcomers improvement Make it better than now Tracked: Redmine Redmineで追跡されているトピック Status/Idea: Accepted✅ 承認済 labels Nov 8, 2021
@Lucky3028
Copy link
Member Author

val soundConfigurationState =
if (currentSettings.shouldMuteSounds) {
s"$RESET${RED}全体通知音:消音する"
} else {
s"$RESET${GREEN}全体通知音:消音しない"
}
val messageConfigurationState =
if (currentSettings.shouldMuteMessages) {
s"$RESET${RED}全体メッセージ:表示しない"
} else {
s"$RESET${GREEN}全体メッセージ:表示する"
}
new IconItemStackBuilder(Material.JUKEBOX)
.title(s"$YELLOW$UNDERLINE${BOLD}全体通知切替")
.lore(List(
soundConfigurationState,
messageConfigurationState,
s"$RESET$DARK_RED${UNDERLINE}クリックで変更"
))
.build()
}
} yield Button(
iconItemStack,
FilteredButtonEffect(ClickEventFilter.LEFT_CLICK) { _ =>
SequentialEffect(
playerData.settings.toggleBroadcastMutingSettings,
FocusedSoundEffect(Sound.BLOCK_STONE_BUTTON_CLICK_ON, 1.0f, 1.0f),
DeferredEffect {
playerData.settings.getBroadcastMutingSettings.map {
case ReceiveMessageAndSound => s"${GREEN}非表示/消音設定を解除しました"
case ReceiveMessageOnly => s"${RED}消音可能な全体通知音を消音します"
case MuteMessageAndSound => s"${RED}非表示可能な全体メッセージを非表示にします"
}.map(MessageEffect(_))
}
)
}
)
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers improvement Make it better than now Status/Idea: Accepted✅ 承認済 Tracked: Redmine Redmineで追跡されているトピック
Projects
None yet
1 participant