Commit Graph
100 Commits
Author SHA1 Message Date
Abex 78b6a5b836 interfacestyles: Run on game thread (#3129)
To prevent conflicts with game thread, move all client related logic to game thread
2018-05-23 13:16:57 +02:00
Max Weber e6d450bcd8 runelite-client: Require assertions when developer mode is on
Because we now have several thread checks that use assertions, but not many people have assertions on, so we keep getting code with threading problems that no one notices.

If for some reason you need developer mode with assertions disabled you can add `-ea:net.runelite.client.RuneLite` to your JVM params
2018-05-22 19:13:22 -06:00
Max Weber ff732f82c3 varinspector: Lazily initialize var arrays
Varcs is set during cache load, so we race it while starting
2018-05-22 12:56:23 -06:00
Max Weber 106e781cc7 devtools: Replace Var tracker with Var Inspector 2018-05-21 12:20:33 -06:00
Max Weber 572d92378a Allow get/setVarbitValue to operate on arbitrary varp sets 2018-05-21 12:20:33 -06:00
Max Weber 66ccd9c0d6 Add VarC events 2018-05-21 12:20:32 -06:00
Max Weber 64610ae08c Cleanup FarmingTracker panels 2018-05-19 15:13:22 +02:00
Max Weber 669b0a0ab9 Revert #2530 "Make VarbitChanged only fire once..."
This broke the speccounter plugin, and is moderately incorrect because client scripts can update varbits before a tick has happened, and the event should reflect that.
2018-05-15 03:36:16 -06:00
Max Weber bc1f3530aa Rename varcstrings > varCStrings 2018-05-14 18:58:04 -06:00
Max Weber 97a5031c1b Rename varcs > varCInts 2018-05-14 18:57:59 -06:00
Max Weber 7cc726097f cache: Strip tags from java names 2018-05-14 03:26:38 -06:00
Max Weber 220add92fd runelite-api: Update ID files 2018-05-14 03:26:21 -06:00
Max Weber eb63fa2d30 kourendlibrary: Fix for rev 170 menu code
The X/Y gets unpacked into the ActionParam and WidgetID now
2018-05-11 02:17:15 -06:00
Max Weber 43c6cc8afe groundmarkers: Fix NPE in drawTile 2018-05-11 00:48:22 -06:00
Max Weber 3e21453d7a runelite-api: Annotate Perspective methods with @Nonnull
This is in an effort to make NPEs in render methods happen slightly less
2018-05-11 00:46:23 -06:00
Max Weber c9d0abc1c3 Make VarbitChanged only fire once, after everything has settled 2018-05-10 21:01:04 -06:00
Max Weber 6f55163152 http-api: print a more helpful error message when resources are not filtered 2018-05-10 17:47:58 -04:00
Max Weber d34cd62481 Add Burgh de Rott map clue 2018-05-09 01:34:38 -06:00
Max Weber 8a9b28db05 runelite-client: Make notification options not mutually excusive
#2180 made it so Windows users could not have sound and a tray notification at the same time. This splits the enum into separate booleans
2018-05-08 16:23:59 -06:00
Max Weber 5da9d697da Add SpriteManager to get sprites from the cache. 2018-05-08 17:23:53 -04:00
Max Weber d1d93f05e0 runelite-client: Log uncaught exceptions
Previously exceptions would be printed to stderr, and not show in log files.

This also adds a case for AbstractMethodError because it almost always means the injector needs to be re-ran.
2018-05-06 01:02:36 -06:00
Max Weber f3a8cd9ba9 farmingtracker: Prevent saving when teleporting
When teleporting to a updating region (ardy teleport), it would save the new region's varbits to the old region's config.
2018-04-30 18:14:59 -06:00
Max Weber efa67d7c93 Rename SettingsTracker 2018-04-30 16:27:52 -06:00
Max Weber 7f190f2534 Merge Varcs into Client::getVar 2018-04-30 16:17:04 -06:00
Max Weber 33d6b9bdb7 Rename Setting to VarPlayer 2018-04-30 16:03:49 -06:00
Max Weber afebe6dbda runelite-client: Cleanup cli arguments 2018-04-30 15:12:29 -06:00
Max Weber 198002c5e5 Add missing U+00A0 NO-BREAK SPACE character
Some system locales use the non-breaking space character as a numeric delimiter, causing the replacement character to be used
2018-04-27 23:58:29 -06:00
Max Weber 5e479292e0 configmanager: Allow multiple delimiters 2018-04-27 17:19:55 -06:00
Max Weber 7eabc16806 Add FarmingTracker plugin
With help from NotFoxtrot
2018-04-26 21:33:56 -04:00
Max Weber 7645d6a04f Allow PluginPanels to opt-out of the scrollbar
For panels with tabs it is best to have the scrollbar inside of the tab pane, not around it.
2018-04-26 19:46:27 -04:00
Max Weber 16aca14f7f Add WorldPoint::getRegionID 2018-04-26 19:46:26 -04:00
Max Weber f0b1f0e8b0 Add UsernameChanged event 2018-04-26 19:46:25 -04:00
Max Weber eef0839c2d Add various animation IDs
From NotFoxtrot
2018-04-26 19:46:24 -04:00
Max Weber 30e70bb9d1 cache: Name ObjectDefiniton's varpID and configID correctly 2018-04-26 17:26:15 -06:00
Max Weber 8cd5675d36 Use ItemManager in GrandExchangePlugin 2018-04-26 14:53:44 -06:00
Max Weber 30413c0257 Use ItemManager in KourendLibraryPlugin 2018-04-26 14:53:30 -06:00
Max Weber b3fa9a5e49 Allow ItemManager to be ran off the client thread
This allows the ItemManager to return a blank BufferedImage if it's not called on the client thread. This also makes it not render the image until the cache has been downloaded
2018-04-26 14:53:00 -06:00
Max Weber d680c91c19 Allow ClientThread to re-run invokeLater-ed methods 2018-04-26 13:59:44 -06:00
Max Weber 5054caffa1 Initialize ItemManager to a complete state
This reverts e3637fbb27868c42b9acb7c9f2a8f4308179e143 , changing it so RuneLite gets it's ItemManager late, as opposed to the ItemManager being constructed in a invalid state.
2018-04-26 13:59:44 -06:00
Max Weber 605646a84c tithefarmplugin: Fix null pointer when crops near camera 2018-04-25 19:11:19 -06:00
Max Weber 184c4c91a7 Rename setClickMask()I > getClickMask()I
This made maven unable to do a incremental build for some reason.
2018-04-12 06:27:25 -06:00
Max Weber 7c51bda554 Fix ChatboxInputManager 2018-04-12 06:09:54 -06:00
Max Weber 39a78166dc Allow MenuOptionClicked events to be consumed 2018-04-12 05:55:57 -06:00
Max Weber 0680fe5940 Fix bank tags plugin 2018-04-12 05:55:49 -06:00
Max Weber f63c9a3347 Fix zoom plugin 2018-04-12 05:55:49 -06:00
Max Weber 44c740f21e Add ChatboxInputManager to provide a RuneScape styled input box 2018-04-01 16:16:27 -04:00
Max Weber aa02da45c0 Allow assembly and loading of new scripts 2018-04-01 16:16:27 -04:00
Max Weber 38f59146d5 Mixins: Give scripts a log.debug callback 2018-04-01 16:16:26 -04:00
Max Weber 103c3b87de cache: Allow scripts to start with comments 2018-04-01 16:16:26 -04:00
Max Weber 6e80cff926 Expose methods to execute scripts 2018-04-01 16:16:25 -04:00
Max Weber 0c04804d1a ScriptEvent > ScriptCallbackEvent 2018-04-01 16:16:25 -04:00
Max Weber 2078b7b37c Log game crashes to the logger, not Stdout 2018-03-28 21:20:14 -06:00
Max Weber 92a94cff32 Ensure createItemSprite is called on the game thread 2018-03-25 14:51:14 -04:00
Max Weber 0ec8d7615f runelite-client: Add ClientThread to aid in synchronizing with the client 2018-03-25 14:51:13 -04:00
Max Weber 764e361626 mixins: Use assert in scriptvm 2018-03-24 20:38:59 -06:00
Max Weber 7f64f93bb0 menumanager: Actually remove menu options 2018-03-24 09:16:21 -04:00
Max Weber 1e1f6f9174 itemstats: use EnergyStat instead of anonymous stat 2018-03-23 20:22:56 -06:00
Max Weber b0435f11c3 configmanager: synchronize disk access 2018-03-23 01:39:48 -06:00
Max Weber 0a4dc4b3fc itemstats: Support holy wrench effect 2018-03-20 21:26:43 -06:00
Max Weber 5a5b01a726 Change colors in XPInfoPanel to be brighter 2018-03-19 15:51:22 -04:00
Max Weber 620cd1f09c Add JShadowedLabel 2018-03-19 15:51:21 -04:00
Max Weber a3731a9b41 jarvis: allow null points 2018-03-19 08:57:39 -06:00
Max Weber b503ce752c kourendlibrary: Use correct coordinate conversion 2018-03-15 16:21:56 -06:00
Max Weber 159b6e99b6 kourendlibrary: Fix NPE while loading 2018-03-15 16:21:31 -06:00
Max Weber c7deb854db Add regen meter plugin 2018-03-10 02:22:20 -07:00
Max Weber 2a579a3ebf hunter plugin: Don't iterate over all tiles 2018-03-09 21:11:19 -07:00
Max Weber f560fb9427 Add planes to planeless tile objects 2018-03-09 20:59:06 -07:00
Max Weber f3a2a5e29d Remove old API 2018-03-09 20:59:06 -07:00
Max Weber b75dddca28 Update almost everything to the new API 2018-03-09 20:59:05 -07:00
Max Weber cf4d5d8333 Add conversion methods to WorldPoint and LocalPoint 2018-03-09 20:51:43 -07:00
Max Weber 6f9b855520 Rename Point3D to WorldPoint 2018-03-09 15:53:11 -07:00
Max Weber 1211693096 jewellerycount: add imp-in-a-box 2018-03-08 19:43:35 -07:00
Max Weber 38f04a23e0 Move widget inspector into it's own window 2018-03-08 19:39:12 -07:00
Max Weber 1d5a9f7e90 isRSHidden > isSelfHidden 2018-03-08 19:35:03 -07:00
Max Weber badc1e9182 injector: Fix scriptvm not updating currentScript 2018-03-08 18:54:05 -07:00
Max Weber da096a6407 specorb: Cache draws to reduce allocations 2018-03-06 17:07:34 -07:00
Max Weber 2e80d972fe inline RSHashTableMixin.getNodes into RSWidgetMixin.getParentId to reduce allocations 2018-03-03 19:57:09 -07:00
Max Weber 6bedcc2c7a Reuse NumberFormatter to reduce allocations 2018-03-03 19:25:11 -07:00
Max Weber 81a90762d9 zoom: Fix pitch relaxer after rev 165 changes 2018-03-01 19:33:55 -07:00
Max Weber 625a505f08 Move the Login and Logout buttons to the TitleToolbar 2018-02-28 12:32:18 -07:00
Max Weber 20d3c72bd4 cameraPitchCopy > cameraPitch 2018-02-25 22:53:49 -07:00
Max Weber 47f2061387 cameraPitch > cameraPitchTarget 2018-02-25 22:53:49 -07:00
Max Weber 51b077b479 cache: Add get_is_mobile opcode.
This is set to 1 on the mobile build. All that it does is change some sprites in the options panel.
2018-02-23 19:41:17 -07:00
Max Weber 346aa845c2 zoom plugin: Add option to relax the camera's upper pitch limit. 2018-02-23 04:32:32 -07:00
Max Weber 623e958046 Sort the PluginToolbar 2018-02-20 23:16:22 -07:00
Max Weber 41ce72122a Allow the info panel's navButton to be removed on shutDown 2018-02-20 17:03:10 -07:00
Max Weber 87e0d7a68f Merge HUNTER_LEVEL_UP* and DIALOG_LIBRARY_FIND* into DIALOG_SPRITE* 2018-02-19 03:11:44 -07:00
Max Weber fa4688c6a0 Fix menu action clicked hook log 2018-02-18 23:47:26 -07:00
Max Weber fe16a0537e Add Kourend Library plugin 2018-02-18 23:47:05 -07:00
Max Weber f7c59bf8ba hunter plugin: Fix null pointer when going across a loading zone 2018-02-17 22:11:24 -07:00
Max Weber 1ae1362410 hunter plugin: add imp box 2018-02-17 22:11:24 -07:00
Max Weber db9866a13e Change perspective to convert world to local points centered on the tile 2018-02-17 01:40:05 -07:00
Max Weber d8e4fe13c5 injector: Allow injection of <init> and <clinit> 2018-02-12 18:09:16 -07:00
Max Weber 5936b1d42f Fix removing items from the TitleToolbar 2018-02-10 16:02:39 -07:00
Max Weber 07b9e6c12a Zoom plugin: Relax inner zoom constraint 2018-02-09 22:44:09 -07:00
Max Weber f71059ce20 Add raw injector to hook the script interpreter 2018-02-09 23:35:16 -05:00
Max Weber 0781a39a91 Revert "scripts: disable callbacks"
This reverts commit e533b0f9353f98284de1ded88a96ef6272ad3ba4.
2018-02-09 23:35:08 -05:00
Abex c754677413 Allow titlebar buttons to be moved out of the titlebar 2018-02-08 18:42:12 -05:00
Max Weber 1914f76513 change getModelHeight to getLogicalHeight 2018-02-04 06:39:04 -07:00
Max Weber a4914cf7ee Add info panel plugin 2018-02-03 22:03:33 -05:00