Commit Graph
100 Commits
Author SHA1 Message Date
Adam 41245f7f89 api: add method to remove game objects from scene 2020-11-16 22:21:27 -05:00
Adam ad4d1787a1 gpu: fix intel miscompiles of fragui shader
Having all 3 sampling branches feed into one colorblind() call was
breaking some versions of Intel's drivers whenever the xbr sampling code
was merely present. Changing each branch to individually call
colorblind() seems to fix it.
2020-11-13 14:31:50 -05:00
Adam 811842ef2f wildcard matcher: quote replacement to prevent the matcher from replacing group references 2020-11-09 19:15:28 -05:00
Adam 51d105a30b chat commands: format lp score 2020-11-09 19:15:16 -05:00
Adam 4f3d57d739 Fix offline worlds showing population of 65535
The service has been updated to return -1 when worlds are offline, and then the UI updated to display OFF when the count is less than 0
2020-11-09 12:41:50 -05:00
Adam 79286202e6 ci: update glslang to 8.13.3743 2020-11-06 16:03:04 -05:00
Adam f8d8aa762c antidrag: set bank drag delay when bankside inv is opened too 2020-11-04 17:25:18 -05:00
Adam 3a1e752da5 item charges test: remove unnecessary eq matchers 2020-11-04 15:35:29 -05:00
Adamandpilino1234 7ceb3c9e02 client: add PMD source code analyzer
This catches common bugs, dead code, etc., and also performs some more advanced
code style checks compared to checkstyle.

Co-authored-by: pilino1234 <pilino@posteo.de>
2020-11-01 11:54:54 -05:00
Adam 20dec72416 spriteid: remove duplicated run icon 2020-10-31 15:18:29 -04:00
Adam d3c0713969 key remapping: don't remap space in options dialog
The options dialog never accepts space, so remapping a key to it doesn't make sense, and it is possible the original key was one of the keys actually being listened for
2020-10-30 14:44:20 -04:00
Adam 2dafade4d1 client: remove league chat icons plugin
Jagex have added this functionality to the new TB league
2020-10-28 10:45:58 -04:00
Adam 7c5123d230 gpu: remove unused lastViewportWidth/Height fields 2020-10-26 17:42:36 -04:00
Adam 8438b42e15 api: move isDead from NPC to Actor 2020-10-24 13:22:52 -04:00
Adam 93adb7ca75 xp tracker: default pause on logout to on 2020-10-21 23:36:44 -04:00
Adam 9fc8f19c32 pluginhub controller: fix scheduled task delay
This was meant to be 30 minutes
2020-10-21 10:20:47 -04:00
Adam 6457681c55 progress bar: optimize bar drawing
It is not necessary to draw the full bar background since it is immediately drawn over by the foreground
2020-10-17 19:36:36 -04:00
Adam 9214480a02 xptracker: change online tracker link to wiseoldman 2020-10-17 16:45:09 -04:00
Adam 7a6c4ecc51 Add pluginhub user count tracking 2020-10-17 11:50:53 -04:00
Adam a2d693fc74 chat commands: unregister bh and lms commands 2020-10-16 13:06:34 -04:00
Adam dc414b1adf ground markers: add tile labels 2020-10-06 20:09:03 -04:00
Adam c0a57a62e8 gpu: dispose of graphics objects 2020-10-05 18:26:24 -04:00
Adam 2f91100f17 examine plugin: format quantity of large item stacks 2020-10-05 09:39:22 -04:00
AdamandSirGirion dadee6e4b0 item charges: fix resetting dodgy necklace, ring of forging, and amulet of chemistry
Co-authored-by: SirGirion <seallproducts@gmail.com>
2020-10-03 10:48:04 -04:00
Adam e2399fe176 key manager: move key event logging to trace level
This is way too chatty and is debug logging eg. passwords on the login screen. Instead log when a key is consumed at debug level.
2020-10-03 10:42:55 -04:00
AdamandJordan Atwood bf4173c45f config: Add infobox component outline option
Co-authored-by: Jordan Atwood <jordan.atwood423@gmail.com>
2020-10-02 18:12:25 -04:00
Adam 1799c9e593 loottracker: submit loot when not logged in
This is to aid the wiki drop log project. The data is not otherwise
stored.
2020-10-01 18:31:39 -04:00
Adam 9c8ba5a008 Merge pull request #12575 from cubemike99/add_clean_swap
menu entry swapper: add clean swap
2020-10-01 10:37:41 -04:00
Adam 34c8bfb2f4 gpu: use noperspective for hsl interpolation
Prior to 8c00f6da88 the interpolation of fragment
shader inputs appears to not have been accounting for perspective. This broke
texturing due to the texture ids being interpolated for perspective which was
fixed in 47e0ac8032. The hsl values similarly
require not accounting for perspective, so the noperspective interpolation
qualifier has been added. It is unclear to me why the geometry shader removal
would affect the interpolation like this since it was emitting vertices with
the correct z values.
2020-09-30 20:34:08 -04:00
Adam 475e463692 Merge pull request #12472 from Nightfirecat/fix-experience-tests-location
Move Experience tests to proper test class
2020-09-30 17:18:19 -04:00
Adam 782e2db580 slayer plugin: simplify a few regex patterns 2020-09-30 10:56:26 -04:00
AdamandJonathan Lee c774117d93 loot tracker: fix tracking grubby chest
Co-authored-by: Jonathan Lee <cookmeplox@weirdgloop.org>
2020-09-28 20:16:33 -04:00
AdamandRon Young 908c6b4fe4 infobox: add support for multiple infobox groups
Co-authored-by: Ron Young <admin@ryoung.io>
2020-09-27 10:20:14 -04:00
Adam 6df3016bb5 overlay renderer: don't allow moving dynamic or tooltip overlays
Originally this was fixed in d02ddfc1b2 but then
broken in d676542dc2. Preferred positions don't
make sense for either overlay type and for tooltips breaks them due to having
them offset from the mouse position.
2020-09-27 10:11:18 -04:00
Adam 47e0ac8032 gpu: don't interpolate texture ids
Despite the textures for each vertex of a face always being identical,
this is now causing issues on Nvidia cards since the projection matrix
update.
2020-09-27 10:11:17 -04:00
Adam 1777b2d6bd raid plugin: simplify timer infobox logic by overriding render 2020-09-25 10:32:16 -04:00
Adam cbf48e7ef2 overlay renderer: use isKeyPressed instead of tracking shift key state 2020-09-25 10:31:29 -04:00
Adam 9c362fb836 containable frame: assume jdk 12/13/14 do not have fix for JDK-8231564
These versions are EOL, and although greater than 11, do not include JDK-8231564
2020-09-24 18:44:54 -04:00
Adam 0ae95180fb scene uploader: add stopwatch 2020-09-20 17:26:48 -04:00
AdamandJonathon Reesor af352c54c5 scene uploader: inline pushFace() into uploadModel()
Inline the body of pushFace() into uploadModel() and perform the loop hoisting
of the locals that this enables. This cuts off 10-20ms of scene load time on my machine.

Co-authored-by: Jonathon Reesor <jonathon.reesor@gmail.com>
2020-09-20 17:26:48 -04:00
AdamandJonathon Reesor f2498d445f gpu: optimize ensureCapacity()
Prevent unnecessary allocations by updating the ensureCapacity() methods to not
create intermediate buffers, just create a single new buffer with the final
size.

Co-authored-by: Jonathon Reesor <jonathon.reesor@gmail.com>
2020-09-20 17:26:48 -04:00
AdamandJonathon Reesor 2a15cbde8a scene uploder: remove unnecessary reset
Instead we can just check the model scene id is correct and not have to be
concerned about reused Models from previous scenes having positive buffer
offsets

Co-authored-by: Jonathon Reesor <jonathon.reesor@gmail.com>
2020-09-20 17:26:48 -04:00
Adam 62a69b94c5 containableframe: fix parsing Oracle Java 8 version string 2020-09-20 16:46:08 -04:00
Adam 8718a83f10 disassembler: escape string operands 2020-09-19 13:16:06 -04:00
AdamandRunemoro f7606c7aca ui: fix frame maximized bounds with dpi scaling
Due to JDK-4737788, maximizing an undecorated frame incorrectly covers the
taskbar. Substance attempts to correct this by computing its own maximized
bounds, but it does not account for DPI scaling. Since Substance automatically
calls setMaximizedBounds when the frame is resized to do this we simply
override it and replace the bounds with our own which includes the scaling of
the display.

This also fixes the frame maximizing to the incorrect display on 11.0.8 due to
JDK-8231564, which changes the coordinates setMaximizedBounds() expects to be
relative to the primary display instead of the current display. Previously,
Substance was always setting the bounds x/y to 0 due to this.

Co-authored-by: Runemoro <runemoro1@gmail.com>
2020-09-18 22:28:43 -04:00
Adam 4668140df1 Merge remote-tracking branch 'abex/cache-code-2020-09-16-rev191' 2020-09-17 14:04:49 -04:00
Adam 197c667edf item manager: fix item outlines to more accurately fit model
Not sure where these original arguments come from, but it was
incorrectly noting the items and then attempting to adjust zoom to
account for that, which makes most item outlines slightly off
2020-09-15 19:14:24 -04:00
Adamandchasertw123 5a524471f8 mining plugin: track dense essence mining
Mining dense essense doesn't have a chat message so this starts the mining session based on animation instead.

Co-authored-by: chasertw123 <henderson.chase@gmail.com>
2020-09-13 13:50:41 -04:00
Adam 14147ce1c5 ge: include username in machine hash 2020-09-11 18:00:48 -04:00
Adam 01447e52a7 timers: consolidate teleblock timers 2020-09-09 11:08:17 -04:00
Adam d2c72d6cbe core overlay: cleanup
Avoid checking config if there is no core npc
2020-09-09 11:07:04 -04:00
Adam b9b505acc4 scripts: fix privateMessage message skipping
This was incorrectly looping if the message was to be skipped
2020-09-02 10:25:21 -04:00
Adam 2021b4c1ff grounditems: add test for notify on highlight 2020-08-31 13:19:06 -04:00
Adam d7cb489eaf grounditems: fix showing Lots! for stack size in notifications
The value cannot be more than MAX_VALUE so the previous condition was
never met. Additionally use MAX_QUANTITY constant instead of abusing
char max value which is completely unrelated.
2020-08-31 13:19:05 -04:00
Adam 45bbf31fe9 gpu: error when shader creation fails 2020-08-30 18:50:19 -04:00
Adam 8bbd3b9365 itemstats: correct typo in Better (Some capped) description 2020-08-30 15:15:49 -04:00
Adam a918c5955f menu swapper: add amy to npc contact swap 2020-08-26 10:07:17 -04:00
Adam 30516b0bc3 Add Leagues hiscores and update icons for Trailblazer League 2020-08-25 10:44:53 -04:00
Adam 2f85f57487 hiscore panel: add names to skill label tooltips
Also change boss tooltips to not show KC: 0 if unranked
2020-08-24 12:53:45 -04:00
Adam c9859f36b6 hiscore panel: fix lookup to run on edt
It modifies various fields in the ui and should be running on edt.
Additionally add a clear listener to reset the search state when the
input is cleared.

This requires changing the hiscore client to be async so that the
response can be properly applied on the edt
2020-08-23 11:54:36 -04:00
Adam a89202e230 party service: prioritize user join handler over plugins
The Discord invites requires the party size to be >0 for invites to work.
Previously this was not updating the presence with the 1 (local) member
after joining due to the plugin event handler running prior to the
service adding the member to the party.

This also changes the party id to always be null when not in a party instead of
set to the special local party id. This simplifies the checks in the
plugins trying to differentiate being in your own party vs not being in
a party.
2020-08-23 11:43:08 -04:00
Adam 9dc757b089 discord: add logging to Discord rpc callbacks 2020-08-22 20:24:05 -04:00
Adam 8608cde1e2 discord: remove DiscordReplyType
It is unused currently and the Discord library provides constants for the values already.
2020-08-22 20:22:44 -04:00
Adam 9c81e9b509 http-service: increase loot tracker retention to 90 days 2020-08-22 11:09:07 -04:00
Adam 2f2da2c1dc xp globes: remove double globeCache index 2020-08-21 21:04:07 -04:00
be1e1bbdbb timers plugin: add fight cave and inferno timers
Co-authored-by: winterdaze <35933468+winterdaze-rs@users.noreply.github.com>
Co-authored-by: Jordan Atwood <jordan.atwood423@gmail.com>
2020-08-21 20:28:28 -04:00
Adam ad940f51ee xp globes: fix timing out xp globes after no xp is gained
The overlay was clobbering the plugins sorted xpglobe list when it
re-sorted it by skill instead, preventing the expire routine from
correctly expiring xpglobes. Instead keep the list in render order (by
skill) and just check the full list for expired orbs, since there are
not usually many to check.
2020-08-21 20:19:34 -04:00
Adam ceab3ef4b5 gpu plugin: initialize aa fbo handles
This fixes erroneously deleting texture/framebuffer/renderbuffer 0 in shutdownAAFbo
2020-08-15 18:48:57 -04:00
Adam 86713e66ee loot tracker service: use bigint for kill id 2020-08-15 18:48:57 -04:00
Adamandjzomerlei 276746eea6 mining plugin: add session stats
Co-authored-by: jzomerlei <jzomerlei@gmail.com>
2020-08-15 00:30:37 -04:00
Adamandjzomerlei 10773f6a5e mining plugin: rename MiningOverlay to MiningRocksOverlay
Co-authored-by: jzomerlei <jzomerlei@gmail.com>
2020-08-15 00:30:37 -04:00
Adam 7c19a6c73b slayer plugin: support new Turael task completion message 2020-08-12 11:04:37 -04:00
Adam d595cde390 api: add GraphicsObject finished()
Also update some of the javadoc
2020-08-11 16:58:26 -04:00
AdamandMMagicala 1d62a00596 item stats: add duration tooltips to potions
Co-authored-by: MMagicala <MMagicala@users.noreply.github.com>
2020-08-11 15:43:31 -04:00
Adam 6998931f84 menu swapper: update jewellery box clan wars swap to ferox enclave 2020-08-10 11:12:04 -04:00
Adam e53e33d6fb mouse highlight: fix interface tooltips option
Use the menu type instead of assuming if the param1 is a valid widget
then the menu is for a widget. The params are free form data which is
specific to the menu type, so it is possible for it to unintentionally be
a valid widget id even when it is something else.
2020-08-03 15:29:50 -04:00
Adamandwhile-loop 9fef3ad47d inventory-grid: show grid when viewing bank
Co-authored-by: while-loop <cvballa3g0@gmail.com>
2020-08-02 13:22:23 -04:00
Adam a41074f135 clientui: use contains instead of intersects for screen bounds checking
It is possible to have the client bounds intersect the screen bounds but still have the client unusable due to being unable to resposition it.
2020-07-28 13:42:44 -04:00
Adam d8b83ce52b clientui: reset frame position in safe mode 2020-07-24 15:25:42 -04:00
Adam 080bc013a8 tagtabs: fix clearing bank search when opening tags 2020-07-24 15:24:47 -04:00
Adam 340530daf6 tagtabs: show tab separators in tag tabs
This changes tag tabs to actually put the bank in search mode, still
without providing any search input, so that the bank tab builder will
draw tab separators (both the separator line and tab text label)
2020-07-24 15:24:47 -04:00
Adam 76b57c124e tagtabs: close tab when clicking on main bank tab 2020-07-24 15:24:47 -04:00
Adam e4b43d98f2 tagtabs: split tag search from bank search
This fixes a lot of edge cases which required us to re-search for things
after input was re-used when a tag tab was open, and removes the
requirement of having the bank search text be in sync with the
currently selected tab.

This also no longer parses the tag tab out of the title during times
when the input is being re-used (like Withdraw-x) which was broken
earlier from the bank plugin changing the title to include the value of
searches.

A new tag tab title is being set now on all tag tab views so the old tag
tab tab title event can be removed.
2020-07-23 18:19:04 -04:00
Adam cbd2c4fd82 banktags: fix resetting active tab when editing tags
The input type for this changed awhile ago in a chatbox panel manager refactor
2020-07-23 00:13:20 -04:00
AdamandJZomerlei ead0b28193 bank plugin: show bank value during searches
This also shows the value of tag tabs, since they internally are just
bank searches.

Co-authored-by: JZomerlei <jzomerlei@gmail.com>
2020-07-22 18:02:19 -04:00
Adam 5d0adf38da api: add size() to itemcontainer 2020-07-22 16:51:17 -04:00
AdamandMarbleTurtle 92344938d3 dps counter: update boss list
Co-authored-by: MarbleTurtle <MarbleTurtle@users.noreply.github.com>
2020-07-22 15:35:08 -04:00
Adam 11d244bd06 Revert "xpdrops: fix recoloring xpdrops with hide skill icons on"
This reverts commit abbff79294.
2020-07-17 21:33:46 -04:00
Adam abbff79294 xpdrops: fix recoloring xpdrops with hide skill icons on
The widget child array is filled with nulls to hide the sprites. It is also
valid for the child array to have null entries in it in general, but that does
not happen otherwise.
2020-07-17 21:17:46 -04:00
Adam 82a99a2b2b inventoryid: add trade inventories 2020-07-15 14:51:31 -04:00
Adam d6302702a9 clues: correct spelling of Burthorpe 2020-07-13 13:40:54 -04:00
Adam 35381c4183 xpdrops: fix hide skill icons
We need to have the underlaying child array to make and assign back a copy to remove skill icons
2020-07-11 12:12:20 -04:00
Adam e086a1155b xpdrops: fix recoloring xpdrops when prayer is flicked on the previous tick
Previously the widget hidden event would not run until the next client
tick, due to it being on a timer, and the game tick event being deferred
until the next frame. Now that we are hooking to the script being
executed it fires prior to the game tick event being fired.
2020-07-11 11:46:24 -04:00
Adam 623de63269 xpdrops: reset xpdrop color on wrong prayer 2020-07-10 00:07:46 -04:00
Adam 9fd36a600c xpdrop plugin: use script events instead of widget hidden
This also uses the default color enum to assign default xpdrop colors
instead of using our hardcoded enum.
2020-07-09 13:20:33 -04:00
Adam 395fd1f519 config: minor plugin panel cleanup 2020-07-08 17:44:51 -04:00
Adam 11cd19c2ce player composition: add isFemale 2020-07-05 17:34:04 -04:00
Adam e3163c80ae plugin manager: remove extra injectMembers() call
This has been here a long time, but as far as we can tell is no longer
necessary. It is causing double instantiation of classes which are only
injected a single place.
2020-07-03 21:44:30 -04:00
Adam 83607f1335 infobox manager: keep infoboxes in order of insertion
Collections.binarySearch() does not guarantee which element is found if
there are multiple that compare equal, leaving the order of infoboxes
not necessarily in insertion order. This was an unintended side effect of
ba9ffb1d60 and
406c2bc7db.
2020-07-01 19:21:06 -04:00
Adam 67030e38a4 slayer plugin: better support multikills
This observes deaths of tagged npcs each tick and will use those if
available instead of assuming one kill per xpdrop
2020-07-01 15:55:26 -04:00