Skip to content

Commit

Permalink
Merge pull request #849 from AntlerForce/master
Browse files Browse the repository at this point in the history
Ensure all occurrences of userControl:SetPos have enough height to actually display the user
  • Loading branch information
AntlerForce authored Dec 10, 2024
2 parents af4a816 + df6e507 commit f4b3fdf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions LuaMenu/widgets/chobby/components/friend_list_window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function FriendListWindow:OnAddUser(userName)
end
if WG.Chobby.Configuration:AllowNotification(userName) then
local userControl = WG.UserHandler.GetNotificationUser(userName)
userControl:SetPos(30, 30, 250, 20)
userControl:SetPos(30, 30, 250, 80)
Chotify:Post({
title = i18n("user_online"),
body = userControl,
Expand All @@ -130,7 +130,7 @@ function FriendListWindow:OnRemoveUser(userName)
end
if userInfo.isFriend and WG.Chobby.Configuration:AllowNotification(userName) then
local userControl = WG.UserHandler.GetNotificationUser(userName)
userControl:SetPos(30, 30, 250, 20)
userControl:SetPos(30, 30, 250, 80)
Chotify:Post({
title = i18n("user_offline"),
body = userControl,
Expand Down Expand Up @@ -218,7 +218,7 @@ end
function FriendListWindow:OnNewFriendRequestByID(userID, userName)
if WG.Chobby.Configuration:AllowNotification() then
local userControl = WG.UserHandler.GetNotificationUser(userName)
userControl:SetPos(20, 40, 250, 20)
userControl:SetPos(20, 40, 250, 80)
Chotify:Post({
title = i18n("friend_request_new"),
body = userControl,
Expand All @@ -229,7 +229,7 @@ end
function FriendListWindow:OnFriendRequestAcceptedByID(userID, userName)
if WG.Chobby.Configuration:AllowNotification() then
local userControl = WG.UserHandler.GetNotificationUser(userName)
userControl:SetPos(20, 40, 250, 20)
userControl:SetPos(20, 40, 250, 80)
Chotify:Post({
title = i18n("friend_request_accepted"),
body = userControl,
Expand Down
4 changes: 2 additions & 2 deletions LuaMenu/widgets/gui_battle_room_window.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1494,7 +1494,7 @@ local function SetupInfoButtonsPanel(leftInfo, rightInfo, battle, battleID, myUs
Spring.PlaySoundFile("sounds/Alarm_light5_mixdown.wav", WG.Chobby.Configuration.menuNotificationVolume or 1) -- RING SOUND

local userControl = WG.UserHandler.GetNotificationUser(mynewbestfriend)
userControl:SetPos(30, 30, 250, 20)
userControl:SetPos(30, 30, 250, 80)
Chotify:Post({
title = i18n("A Player Joined You"),
body = userControl,
Expand Down Expand Up @@ -3740,7 +3740,7 @@ local function InitializeControls(battleID, oldLobby, topPoportion, setupData)
local userInfo = lobby:TryGetUser(userName)
if userInfo then
local userControl = WG.UserHandler.GetNotificationUser(userName)
userControl:SetPos(30, 30, 250, 20)
userControl:SetPos(30, 30, 250, 80)
Chotify:Post({
title = "User Rang You", --i18n("User Rang You"),
body = userControl,
Expand Down

0 comments on commit f4b3fdf

Please sign in to comment.