mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
Minimap, hotkeys and lot of other changes
* Begin working on a new layout system for UIMinimap and later UIMap, this new layout system allows to add widgets to the minimap * Add option to disable motd * Rework hotkey binding * Lots of fixes in hotkeys manager * Add fullmap view using Ctrl+Shift+M * Prevent some crashs in ThingType draw * Add function to load minimap from PNG files * Fixes in minimap saving * Fixes in Tile::isClickable * Add UIMapAnchorLayout, new layout for maps * Fix freezes in win32 when pressing alt key
This commit is contained in:
BIN
data/images/game/minimap/cross.png
Normal file
BIN
data/images/game/minimap/cross.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 210 B |
@@ -2,9 +2,13 @@ MinimapFlag < UIWidget
|
||||
size: 11 11
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
focusable: false
|
||||
|
||||
MinimapFlags < UIWidget
|
||||
anchors.fill: parent
|
||||
MinimapCross < UIWidget
|
||||
focusable: false
|
||||
phantom: true
|
||||
image: /images/game/minimap/cross
|
||||
size: 16 16
|
||||
|
||||
MinimapFloorUpButton < Button
|
||||
size: 20 20
|
||||
@@ -61,12 +65,7 @@ Minimap < UIMinimap
|
||||
draggable: true
|
||||
focusable: false
|
||||
cross: true
|
||||
@onGeometryChange: self:updateFlags()
|
||||
|
||||
MinimapFlags
|
||||
id: flags
|
||||
phantom: true
|
||||
focusable: false
|
||||
color: black
|
||||
|
||||
MinimapFloorUpButton
|
||||
id: floorUp
|
||||
@@ -245,22 +244,3 @@ MinimapFlagWindow < MainWindow
|
||||
width: 64
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
|
||||
// Minimap Full Panel
|
||||
|
||||
MinimapFullPanel < FlatPanel
|
||||
phantom: false
|
||||
anchors.fill: parent
|
||||
anchors.top: topMenu.bottom
|
||||
|
||||
ImageView
|
||||
id: image
|
||||
anchors.fill: parent
|
||||
|
||||
Button
|
||||
!text: tr('Close')
|
||||
margin-right: 4
|
||||
margin-top: 4
|
||||
anchors.right: parent.right
|
||||
anchors.top: parent.top
|
||||
@onClick: self:getParent():destroy()
|
||||
|
Reference in New Issue
Block a user