1ForeverHD / TopbarPlus

Construct dynamic and intuitive topbar icons. Enhance the appearance and behaviour of these icons with features such as themes, dropdowns and menus.
https://devforum.roblox.com/t/topbarplus/1017485
Mozilla Public License 2.0
105 stars 135 forks source link

Third-party-software logic error when working with multiple instances of TopbarPlus within an experience #55

Closed 1ForeverHD closed 2 years ago

1ForeverHD commented 2 years ago

Change the top of the Icon module to...

-- LOCAL
local tweenService = game:GetService("TweenService")
local replicatedStorage = game:GetService("ReplicatedStorage")
local debris = game:GetService("Debris")
local userInputService = game:GetService("UserInputService")
local httpService = game:GetService("HttpService") -- This is to generate GUIDs
local runService = game:GetService("RunService")
local textService = game:GetService("TextService")
local guiService = game:GetService("GuiService")
local starterGui = game:GetService("StarterGui")
local players = game:GetService("Players")
local TopbarPlusReference = require(script.TopbarPlusReference)
local referenceObject = TopbarPlusReference.getObject()
local iconModule = (referenceObject and referenceObject.Value) or script
local Icon = (iconModule and iconModule ~= script and require(iconModule)) or {}
Icon.__index = Icon
if not referenceObject then
    TopbarPlusReference.addToReplicatedStorage()
end
local IconController = require(iconModule.IconController)
local Signal = require(iconModule.Signal)
local Maid = require(iconModule.Maid)
local TopbarPlusGui = require(iconModule.TopbarPlusGui)
local Themes = require(iconModule.Themes)
local activeItems = TopbarPlusGui.ActiveItems
local topbarContainer = TopbarPlusGui.TopbarContainer
local iconTemplate = topbarContainer["IconContainer"]
local DEFAULT_THEME = Themes.Default
local THUMB_OFFSET = 55
local DEFAULT_FORCED_GROUP_VALUES = {}
1ForeverHD commented 2 years ago

Resolved in: https://github.com/1ForeverHD/TopbarPlus/releases/tag/v2.7.7