Skip to content

Commit

Permalink
upon entering a room auto set the tab to that room
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 30, 2018
1 parent 16754ad commit c211afb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Themes/_fallback/BGAnimations/ScreenChatOverlay overlay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ chats[1] = {}
chats[2] = {}
chats[0][""] = {}
local tabs = {{0, ""}}
--chats[tabname][tabtype]
--chats[tabName][tabType]
--tabtype: 0=lobby, 1=room, 2=pm
local messages = chats[0][""]
local currentTabName = ""
Expand Down Expand Up @@ -90,6 +90,13 @@ chat.ScreenChangedMessageCommand = function(self)
self:visible(online)
show = true
end
if currentScreen == "ScreenNetSelectMusic" then
for i=1, #tabs do
if tabs[i][2] == NSMAN:GetCurrentRoomName() then
changeTab(tabs[i][2], tabs[i][1])
end
end
end
MESSAGEMAN:Broadcast("UpdateChatOverlay")
end
chat.MultiplayerDisconnectionMessageCommand = function(self)
Expand Down

0 comments on commit c211afb

Please sign in to comment.