• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

hide Minimap Party Icons

ZiumZium

Member
Joined
Sep 27, 2024
Messages
106
Solutions
1
Reaction score
11
Hi! I downloaded mod:


Minimap Party Icons
Could someone somehow make it possible to enable or hide icons on the minimap while in a party?

I have absolutely no idea how to do it

There are definitely smarter people here than me who have an idea how to do it so that the player can hide or enable visible icons, depending on the need, while still being in the party :D

Tfs 1.4.2 otclient v8
 
Updated icons.lua

in your options.lua in client_options moduel

add
partyIcons = true,
in your
local defaultOptions = {
and then replace your whole
function init()

with

LUA:
function init()
  for k,v in pairs(defaultOptions) do
    g_settings.setDefault(k, v)
    options[k] = v
  end

  for _, v in ipairs(g_extras.getAll()) do
    extraOptions[v] = g_extras.get(v)
    g_settings.setDefault("extras_" .. v, extraOptions[v])
  end

  optionsWindow = g_ui.displayUI('options')
  optionsWindow:hide()

  optionsTabBar = optionsWindow:getChildById('optionsTabBar')
  optionsTabBar:setContentWidget(optionsWindow:getChildById('optionsTabContent'))

  g_keyboard.bindKeyDown('Ctrl+Shift+F', function() toggleOption('fullscreen') end)
  g_keyboard.bindKeyDown('Ctrl+N', toggleDisplays)

  generalPanel = g_ui.loadUI('game')
  optionsTabBar:addTab(tr('Game'), generalPanel, '/images/optionstab/game')

  interfacePanel = g_ui.loadUI('interface')
  optionsTabBar:addTab(tr('Interface'), interfacePanel, '/images/optionstab/game')

  consolePanel = g_ui.loadUI('console')
  optionsTabBar:addTab(tr('Console'), consolePanel, '/images/optionstab/console')

  graphicsPanel = g_ui.loadUI('graphics')
  optionsTabBar:addTab(tr('Graphics'), graphicsPanel, '/images/optionstab/graphics')

  audioPanel = g_ui.loadUI('audio')
  optionsTabBar:addTab(tr('Audio'), audioPanel, '/images/optionstab/audio')

  extrasPanel = g_ui.createWidget('OptionPanel')
  for _, v in ipairs(g_extras.getAll()) do
    local extrasButton = g_ui.createWidget('OptionCheckBox')
    extrasButton:setId(v)
    extrasButton:setText(g_extras.getDescription(v))
    extrasPanel:addChild(extrasButton)
  end
  if not g_game.getFeature(GameNoDebug) and not g_app.isMobile() then
    optionsTabBar:addTab(tr('Extras'), extrasPanel, '/images/optionstab/extras')
  end

  customPanel = g_ui.loadUI('custom')
  optionsTabBar:addTab(tr('Custom'), customPanel, '/images/optionstab/features')

  optionsButton = modules.client_topmenu.addLeftButton('optionsButton', tr('Options'), '/images/topbuttons/options', toggle)

  if g_app.isMobile() then
    audioButton:hide()
  end

  addEvent(function()
    setup()
    connect(g_game, { onGameStart = online, onGameEnd = offline })
  end)
end -- <== this END


in your interface.otui
search for

CSS:
  OptionCheckBox
    id: highlightThingsUnderCursor
    !text: tr('Highlight things under cursor')

add below it

CSS:
  OptionCheckBox
    id: partyIcons
    text: Party Icons
    !tooltip: tr('Show party members icons on the minimap')

it should be like this
1745749128536.webp
1745749150668.webp
 

Attachments

Back
Top