One of the improvements I've made is creating a button in shortcut bar that opens a new beacon management window.
But now I can't get rid of that old button in the top-left corner!
I can't find neither the tooltip text nor the relevant icon in the source (it's not tooltip-button-main or teleporter_icon.png)
https://imgbox.com/41kZdRoT
I've removed all calls to
Code: Select all
--Shows mod's main button in player's GUI.
function Teleportation_ShowMainButton(player)
if player ~= nil and player.valid then
local gui = player.gui.top
if not gui.teleportation_main_button then
local button = gui.add({type="button", name="teleportation_main_button", style = "teleportation_main_button_style"})
button.tooltip = {"tooltip-button-main"}
end
end
endWhere the hell is it created?


