We’re only supporting overflows for left and right set icons for the time-being due to additional complexities involved with mid-set icons.
A solution for you instead: check the clients screen size with ViewportSize, then if their X size is below a certain value, create an icon and set a dropdown with all your other icons.
local screenSize = ...
local icon1 = Icon.new()
local icon2 = Icon.new()
local icon3 = Icon.new()
if screenSize.X < DESIRED_AMOUNT then
local dropdownIcon = Icon.new()
dropdownIcon:setDropdown({icon1, icon2, icon3})
end
Apologies, by ‘impossible’ I should have said ‘impossible to mimic the chat icon perfectly while preserving the default chat menus without forking and creating your own’.
You’re welcome to use the code we originally wrote for the Chat Mimic Icon:
As far as I’m aware though (with the recent removal of key chat events) you won’t be able to mimic it perfectly unless you create your own chat menu or a fork of the core chat.
I want to make a button that hides 2 of the icons (top bar icons).
I guess its kind of a frame but since its a topbar icon I dont know if its possible.
When I say topbar icon, I mean I made an icon out of this module, and I want to make a button that hides 2 of the icons, so players can decide if to view them.
Hey so I keep getting this error after I reset in game. I have the button tween a UI, if you reset it will throw these errors. Before you reset tho it works fine, which is weird. Here’s the error
Hello, I had a question. How can I deselect a button when I select it?
For example: I made a DropDown button and I add some stuff in it. If I click on one of the buttons the DropDown will be disabled and the one which I selected will be deselected.
Icon:deselect should do the trick when combined with the selected event:
local dropdownIcon = ... -- Create dropdown icon
-- Then for all your icons within the dropdown do
icon:bindEvent("selected", function()
icon:deselect()
dropdownIcon:deselect()
end)
We appear to have a dropdownHidePlayerlistOnOverlapsetting although not one for the chat menu so I’ll add this to the to-do list. This means when released you could do the following as an alternative:
Hello, my game has HD admin, the HD admin button has a blue gradient, but the other buttons of the topBar have the default theme, how do I make the HD admin button black and white?
I want the HD admin button to look something like TTD 3: