Skip to content

Commit d2ab534

Browse files
committed
Added setting to suppress friend online notification while ingame.
1 parent 7b5ebce commit d2ab534

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

LuaMenu/widgets/chobby/components/configuration.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ function Configuration:init()
213213
self.planetwarsNotifications = false -- Possibly too intrusive? See how it goes.
214214
self.ingameNotifcations = true -- Party, chat
215215
self.nonFriendNotifications = true -- Party, chat
216+
self.friendNotifyIngame = true
216217
self.simplifiedSkirmishSetup = true
217218
self.debugMode = false
218219
self.devMode = (VFS.FileExists("devmode.txt") and true) or false
@@ -570,6 +571,7 @@ function Configuration:GetConfigData()
570571
planetwarsNotifications = self.planetwarsNotifications,
571572
ingameNotifcations = self.ingameNotifcations,
572573
nonFriendNotifications = self.nonFriendNotifications,
574+
friendNotifyIngame = self.friendNotifyIngame,
573575
simplifiedSkirmishSetup = self.simplifiedSkirmishSetup,
574576
debugMode = self.debugMode,
575577
debugAutoWin = self.debugAutoWin,

LuaMenu/widgets/chobby/components/friend_list_window.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ end
4444

4545
function FriendListWindow:OnAddUser(userName)
4646
local userInfo = lobby:TryGetUser(userName)
47-
if userInfo.isFriend and WG.Chobby.Configuration:AllowNotification(userName) then
47+
local Conf = WG.Chobby.Configuration
48+
if userInfo.isFriend and Conf:AllowNotification(userName) and (Conf.friendNotifyIngame or Conf:IsLobbyVisible()) then
4849
local userControl = WG.UserHandler.GetNotificationUser(userName)
4950
userControl:SetPos(30, 30, 250, 20)
5051
Chotify:Post({

LuaMenu/widgets/gui_settings_window.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@ local function GetLobbyTabControls()
992992
children[#children + 1], offset = AddCheckboxSetting(offset, "Autosave SP on matchmaker", "autosaveOnMatchmaker", true)
993993
children[#children + 1], offset = AddCheckboxSetting(offset, i18n("ingame_notifcations"), "ingameNotifcations", true)
994994
children[#children + 1], offset = AddCheckboxSetting(offset, i18n("non_friend_notifications"), "nonFriendNotifications", true)
995+
children[#children + 1], offset = AddCheckboxSetting(offset, "Friend online notifies ingame", "friendNotifyIngame", true)
995996
children[#children + 1], offset = AddCheckboxSetting(offset, i18n("notifyForAllChat"), "notifyForAllChat", false)
996997
children[#children + 1], offset = AddCheckboxSetting(offset, i18n("hideWelcomeMessage"), "hideWelcomeMessage", false)
997998
children[#children + 1], offset = AddCheckboxSetting(offset, i18n("only_featured_maps"), "onlyShowFeaturedMaps", true)

0 commit comments

Comments
 (0)