Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions modules/game_cyclopedia/tab/map/map.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ local UI = nil
local virtualFloor = 7

function showMap()
g_minimap.saveOtmm('/minimap.otmm')
UI = g_ui.loadUI("map", contentContainer)
UI:show()
controllerCyclopedia:registerEvents(LocalPlayer, {
Expand Down
8 changes: 8 additions & 0 deletions modules/game_minimap/minimap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ function zoomOut()
mapController.ui.minimapBorder.minimap:zoomOut()
end

function openCyclopediaMap()
if g_game.getClientVersion() >= 1310 then
modules.game_cyclopedia.toggle('map')
else
return fullscreen()
end
end

function fullscreen()
local minimapWidget = mapController.ui.minimapBorder.minimap
if not minimapWidget then
Expand Down
4 changes: 2 additions & 2 deletions modules/game_minimap/minimap.otui
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PhantomMiniWindow
anchors.left: parent.left
margin-top: 5
margin-left: 8
size: 108 111
size: 115 111
image-source: /images/ui/1pixel_down_frame

Minimap
Expand Down Expand Up @@ -75,7 +75,7 @@ PhantomMiniWindow
anchors.bottom: minimapBorder.bottom
margin-right: 4
size: 20 20
@onClick: fullscreen()
@onClick: openCyclopediaMap()

$hover !disabled:
image-clip: 0 0 20 20
Expand Down