Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add map name to minimap #4265

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions luaui/Widgets/gui_minimap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,12 @@ function widget:DrawScreen()
end

gl.DrawMiniMap()

-- draw the map's name in the bottom right corner
if not minimized then
gl.Color(1, 1, 1, 0.1)
xenomote marked this conversation as resolved.
Show resolved Hide resolved
gl.Text(Game.mapName, backgroundRect[3] - elementPadding, backgroundRect[2] + elementPadding, 10, "rbo")
xenomote marked this conversation as resolved.
Show resolved Hide resolved
end
end

function widget:GetConfigData()
Expand Down