• 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!

OTClient highlight things under cursor.

ausirosiris

Member
Joined
May 23, 2020
Messages
105
Reaction score
22
Where can i find the config for this feature? the default color its yellow, i want to change it. is it possible without source edit?

i've looked inside the modules but my eyes did not capture anything related to the color.
 
modules/game_interface/widgets/uigamemap.lua search for: "highlightThingsUnderCursor" , choose a color for setMarked function
Oh, cool, nice! i've changed. Meanwhile i was setting the color i brainstorm something like to highlight the targets... and tried to add something like this:
LUA:
function UIGameMap:forceMarked(creature)
    if target.forceMarked() == creature then
        creature:setMarked("red")
        return schedule(333, function() forceMarked(creature) end)
    end
  end

      if oldCreature then
          oldCreature:setMarked('')
      end
      if newCreature then
          forceMarked(newCreature)
      end

but it didnt work. is it possible???
 
Back
Top