Commit Graph

22 Commits

Author SHA1 Message Date
shagu ec0d19966f map: add loader to public module table 2023-10-03 13:20:32 +02:00
shagu 83afabf3c0 map: restore scale and position when shown
Set the scale to previous or 0.85 because the game default
scripts set it to fullscreen scale each time. Additionaly,
as the hook is now in place, it is no longer required to
manually run the default functions when the map gets shown.
2022-10-31 10:44:31 +01:00
shagu 9f028a6031 map: avoid overwriting other scripts 2022-10-05 19:35:54 +02:00
shagu 0214eebf36 core: switch from mousedown to drag functions
Due to crashes/freezes while moving some frames, one possible
reason could be that pfUI was using OnMouseDown and OnMouseUp
to run its frame-moving code. I have noticed better performance
when using the intended functions, OnDragStart and OnDragStop
to move frames.

This commit changes every occurrence of such functions and splits
drag and click into seperate functions where required.
2022-05-07 21:35:52 +02:00
shagu 7a33a57e39 map: add option to set a static tooltip scale 2021-02-08 08:27:36 +01:00
shagu 8a78d010a3 map: save scale on resize and move 2020-06-14 22:52:36 +02:00
shagu 85eca78b1f map: set parent to nil to fix map tooltips 2020-04-03 00:26:58 +02:00
Artur Morozov 47a8106876 worldmap: add missing tbc skin 2020-03-23 23:59:48 +01:00
shagu e9237b59b2 core: use concrete string based client checks 2019-06-10 17:06:31 +02:00
shagu 545be99fd7 api: only add shadow to specific frames 2019-06-02 20:43:56 +02:00
shagu d08854f1b1 map: rework some parts of the map initialization
* make use of internal pfUI api functions
* create coord text string only once
* add frame to UISpecialFrames only once
* use a fixed anchor in SetPoint
* cache scale and alpha settings
2019-05-09 20:27:21 +02:00
shagu 7bc60e723d core: whitelist a bunch of modules for tbc 2019-04-07 14:48:58 +02:00
shagu 1f0b7661ce map: reduce functions called on show 2019-04-07 13:24:49 +02:00
shagu 25a9b08f8a map: fix creation of duplicate cursor coords 2019-03-31 14:59:21 +02:00
Artur Morozov b1a4f52f7c skin: add WorldMapFrame 2019-03-31 14:59:21 +02:00
shagu 8dd76cda2d map: move code out of the show function 2018-05-30 21:37:18 +02:00
shagu 566928c9cb map: add display for cursor coordinates 2017-11-22 20:14:52 +01:00
greenya 7999f612ad map: saves alpha and scale settings 2017-11-19 15:18:17 +01:00
shagu ca67aa012c map: don't close other windows for worldmap 2017-10-01 23:46:00 +02:00
shagu 6f7a665ffe api: merge api calls into environment 2017-02-26 20:55:22 +01:00
shagu 0fd03bcb77 map: add missing default events 2017-01-01 23:13:26 +01:00
shagu 1bbf47ad2b map: add some functions and theming to the worldmap 2017-01-01 22:04:24 +01:00