Commit Graph

124 Commits

Author SHA1 Message Date
shagu 5f354e218e api: rewrite rgbhex function
* remove useless caching
* remove variable creation within function
* limit values on all type of inputs
* use only one string.format
2020-10-27 09:50:19 +01:00
shagu 89c27f788a api: limit rgbhex values to 1 2020-10-27 09:01:19 +01:00
shagu 94738bab45 api: add api call to find item in bags 2020-09-04 08:14:55 +02:00
shagu 990ec09296 api: trim percentage before caching it 2020-08-25 18:30:12 +02:00
shagu 7669e64173 core: remove leftover semicolons 2020-08-15 19:29:24 +02:00
shagu a1bda61acb api: option to disable milliseconds on cooldowns 2020-07-01 16:26:39 +02:00
shagu e10cfd3a26 api: add flag to save scale on position save 2020-06-14 22:52:06 +02:00
shagu 83ef788d3f api: use old pixel value on non broken resolutions 2020-05-28 13:34:58 +02:00
shagu cffaf70fbb api: set pixel size to one on broken resolutions 2020-05-27 21:52:32 +02:00
shagu 3e694dcc43 api: add arguments to hook script 2020-05-20 17:12:42 +02:00
shagu 6512bb34ae api: support to also abbreviate negative values 2020-05-09 02:37:46 +02:00
shagu 1565e60f69 api: make spacing optional for alignment 2020-04-18 12:55:54 +02:00
shagu 451c18ced8 api: add spacing parameter to position alignment 2020-04-18 12:49:52 +02:00
shagu d5cc370e9d api: move AlignToPosition into global api 2020-04-18 12:46:14 +02:00
shagu a7000449e9 api: allow movables to not have a parent frame 2020-04-03 00:26:12 +02:00
shagu 968fef0f98 api: restore custom parents on movables 2020-04-02 16:10:34 +02:00
shagu 2c729c8a75 api: new api call to delay functions to ooc
A new function that allows to register functions to a queue,
that is processed as soon as the combat lockdown fades.
2020-03-22 14:08:51 +01:00
shagu 2587d6449d api: fix bug in border detection caching 2020-03-15 11:45:15 +01:00
shagu 2993ed03d8 api: reduce memory load by caching backdrop locals 2020-03-15 11:44:48 +01:00
shagu eb42c831fc api: fix real pixel backdrop offsets 2020-03-05 22:52:56 +01:00
shagu c85f4b1849 api: use default border size in case of inherit 2020-02-28 17:03:41 +01:00
shagu 4d076dbac2 api: reload borders on backdrop updates 2020-02-28 17:03:41 +01:00
shagu 149339839d api: use backported getiteminfo for all versions 2020-01-06 11:15:38 +01:00
shagu 6de221188a api: also show silver when gold is visible 2020-01-02 23:04:08 +01:00
shagu ba7f75416b api: precalculate cooldown switches 2019-12-28 10:14:25 +01:00
shagu a75204540e api: add hidpi detection in pixel calculation 2019-12-18 18:54:00 +01:00
shagu bcadf4b2d9 api: use proper backdrop sizes on small borders 2019-12-18 18:53:50 +01:00
shagu 1cf0d24fcd api: add function to query configured bordersizes 2019-12-18 18:53:41 +01:00
shagu 40c6bf704a api: preparation to use perfect pixels on borders
Add some preparation to allow perfect sized borders on all backdrops.
There's no option set yet to avoid broken borders on other elements.
An option that is enabled by default will be added as soon as all modules
are prepared to use pfUI.border instead of reading the config on their own.
2019-12-18 18:53:31 +01:00
shagu 687d75f8a0 api: add function that calculates a real pixel 2019-12-13 20:59:57 +01:00
shagu 84a1bd1052 api: don't set hit insets during combat lockdown 2019-07-19 16:36:14 +02:00
shagu 798500d6d2 api: use same shadow conditions as for backdrop 2019-07-18 20:40:21 +02:00
shagu b3bebe922a api: remove debug parameter 2019-06-16 15:06:35 +02:00
shagu 3832b9151e api: add functions to determine best frame anchors 2019-06-09 22:16:58 +02:00
shagu 545be99fd7 api: only add shadow to specific frames 2019-06-02 20:43:56 +02:00
shagu ef9f4519f1 api: fix cache and limits in gradient color 2019-05-21 22:46:57 +02:00
Road-block cf4c9ac361 api: add and use rgbhex function
* A memoizing method to cache and return hex colorstrings from rgb input.
* Refactor all occurences of adhoc rgb to hex string concatenation to use the new method
* Refactor chat module to use it
2019-05-01 15:23:05 +02:00
shagu 6c6aaacd83 unlock: cache zoom onupdate function 2019-04-22 13:26:43 +02:00
shagu 7fd1ae5489 api: cache mouse-drag functions 2019-04-21 17:43:50 +02:00
shagu ca2cf71d04 api: handle escaping within the function 2019-04-21 15:02:14 +02:00
shagu f9b84600b7 api: use global defines for gfind 2019-04-14 19:34:12 +02:00
shagu 7a07737379 api: handle new bag classes introduced in tbc 2019-04-14 17:31:58 +02:00
shagu 597f19dd55 api: add HookScript back to the core api 2019-04-14 15:15:10 +02:00
shagu 8c95917817 api: adjust thin legacy backdrop appearance 2019-04-13 14:13:03 +02:00
shagu 747b895db2 api: pass init to next movable function 2019-04-08 21:58:52 +02:00
shagu 70649f3a59 api: replace varargs in function queue
Get rid of var-args as the handling of those changed alot
during different api iterations. Therefore using static-args
instead that can be handled the same way in all expansions.
2019-04-07 14:35:51 +02:00
shagu 417c5b8129 api: combine movable functions and set anchors 2019-04-07 13:23:56 +02:00
shagu d7c64d7d0a core: replace remaining getglobals in favor of _G 2019-04-06 14:30:31 +02:00
shagu 4237a26b6a api: escape all magic chars in sanitize pattern 2019-04-04 15:15:06 +02:00
shagu 05349d475e api: return when no subject was given to strsplit 2019-04-02 22:42:19 +02:00