Commit Graph

34 Commits

Author SHA1 Message Date
Owain van Brakel
07fa478e67 Merge remote-tracking branch 'runelite/master' 2019-11-15 10:09:35 +01:00
Harry
f26154c4bc screenshot: use playerdeath events (#1245)
* add PlayerDeath event

* use LocalPlayerDeath and PlayerDeath events
2019-08-03 12:43:42 +01:00
Owain van Brakel
fc9e700c7c Rework rx eventbus implementation 2019-07-14 06:44:41 +02:00
Adam
05c6743cb0 Remove runescape-api and mixins
This code is used by internal tooling to build the client patch, which
is already closed source, and is not directly shipped as a dependency.

Outside contributions to it are rare due to the lack of build tools, and it is
primarily being abused by others. As such, I no longer wish to release
further changes to it under BSD-2.
2019-07-07 18:30:36 -04:00
sdburns1998
22914889aa plugins: reduce config calls by saving and reusing values, misc performance tweaks. (#799)
* Save config values -- AgilityPlugin

* Static state value map

* Don't run area in the for loop

* Checking for bounds is enough for widget null check

* Cache font settings

* SAve config values -- AntiDragPlugin

* Save config values -- AoEPlugin

* Save config values -- AttackStylesPlugin

* Save config values -- BankPlugin

* Check if player is in kingdom

* Save hideAutoRetaliate -- AttackStylesPlugin

* Save config values -- BanListPlugin

* Save config values -- BarbaranAssaultPlugin

* Save config values -- BarrowsPlugin

* Checkstyle

* Move up updateConfig.java

* Save config values -- BlackjackPlugin

* Save config values -- BlastFurnacePlugin

* Save config values -- BlastMinePlugin

* Save config values -- BoostsPlugin

* Save config values -- CannonPlugin

* Fix bank plugin test

* Parallelize plugin loading

* Fix sidebar going AWOL

* Save config values -- ChatFilterPlugin

* Save config values -- ChatHistoryPlugin

* Save config values -- ChatNotificationsPlugin

* Save config values -- ChatTranslationPlugin

* Save config values -- ClanChatPlugin

* Save config values -- ClueScrollPlugin

* Cleanup CombatCounterPlugin

* Save config values -- CombatCounter

* Checkstyle

* Save config values -- CombatLevelPlugin

* Convert game thread events without mutable field to singletons

These should be safe to convert, events with mutable field should be checked

* Checkstyle

* Fix test

* Save config values -- CookingPlugin

* Save config values -- CorpPlugin

* SAve config values -- CoxPlugin

* Save config values -- DailyTasksPlugin

* Save config values -- DiscordPlugin

* Coxhelper checkstyle

* Save config values -- EquipmentInspectorPlugin

* SAve cofig values -- XpDropPlugin

* Save config values -- FairyRingPlugin

* Save config values -- FightCavePlugin

* Save config values -- FishingPlugin

* Save config values and refactor -- FlexoPlugin

* Save config values -- FlinchingPlugin

* Save config values -- FreezeTimersPlugin

* Save config values -- GpuPlugin

* Save config values -- GrandExchangePlugin

* Save config values -- GroundItemsPlugin

* Save config values -- GroundMarkerPlugin

* Save config values -- GroundMarkerPlugin

* Save config values -- HerbiboarPlugin

* Save config values -- HidePrayersPlugin

* Save config values -- HighAlchemyPlugin

* Save config values -- HunterPlugin

* Save config values -- BabyHydraPlugin

* Fix Flexo

* Checkstyle

* Save config values -- IdleNotifierPlugin

* Save config values -- ImplingsPlugin

* Save config values and cleanup -- InfernoPlugin

* Use EqualsAndHashCode for GroundMarkerPoint

* Save config values -- InterfaceStylesPlugin

* Save config values -- InventoryGridPlugin

* Save config values -- InventorySetupPlugin

* Checkstyle

* Save config values -- InventoryTagsPlugin

* Save config values -- InventoryViewerPlugin

* Save config values -- ItemChargePlugin

* Save config values -- ItemIdentificationPlugin

* Save config values -- ItemPricesPlugin

* Save config values -- ItemStatPlugin

* Save config values -- KeyRemappingPlugin

* Save config values -- KourendLibraryPlugin

* Save config values -- LearnToClickPlugin

* Save config values -- LizardmenShamanPlugin

* Save config values -- LoginScreenPlugin

* Cleanup LootAssistOverlay

* Remove unused LootAssistConfig

* Save config values -- LootTrackerPlugin

* Save config values -- MetronomePlugin

* Add border color ground items

* Save config values -- WorstPluginEverPlugin

* Fix inferno plugin

* Save config values -- MinimapPlugin

* Save config values -- MiningPlugin

* Save config values -- MotherlodePlugin

* Save config values -- MouseHighlightPlugin

* Save config values -- MTAPlugin

* Save config values -- MultiIndicatorsPlugin

* Save config values -- NightmareZonePlugin

* Save config values -- NpcIndicatorsPlugin

* Save config values -- NpcStatusPlugin

* Save config values -- NpcAggroAreaPlugin

* Save config values -- ObjectIndicatorsPlugin

* Save config values -- OpponentInfoPlugin

* Save config values -- PartyPlugin

* Save config values -- PerformanceStatsPlugin

* Save config values and cleanup -- PestcontrolPlugin

* Save config values , cleanup and refactor -- PileIndicatorsPlugin

* Save config values -- PlayerIndicatorsPlugin

* Save config values -- PlayerInfoPlugin

* Save config values -- PluginSorterPlugin

* Save config values -- PohPlugin

* Checkstyle

* Save config values -- PoisonPlugin

* Save config values -- PrayAgainstPlayerPlugin

* Save config values -- PrayerPlugin

* Save config values -- PrayerAlertPlugin

* Checkstyle

* Save config values -- PuzzleSolverPlugin

* Save config values -- PvpToolsPlugin

* Save config values -- PyramidPlunderPlugin

* Save config values -- RaidsPlugin

* Save config values -- ShortcutPlugin

* Save config values -- RaidsThievingPlugin

* Oopsie

* Save config values -- RegenMeterPlugin

* Save config values -- ReportButtonPlugin

* Save config values -- RunecraftPlugin

* Save config values -- RunedokuPlugin

* Save config values -- RunepouchPlugin

* Save config values -- SafeSpotPlugin

* Save config values -- ScreenshotPlugin

* Save config values -- ShiftWalkerPlugin

* Save config values -- SlayerPlugin

* Save config values -- SmeltingPlugin

* Save config values -- SpawnTimerPlugin

* Save config values -- SpellbookPlugin

* Save config values -- StatusBarsPlugin

* Save config values -- ThievingPlugin

* Checkstyle

* Cleanup Zulrah

* Save config values -- XpTrackerPlugin

* Save config values -- XpGlobesPlugin

* Save config values -- WorldMapPlugin

* Save config values -- TheatrePlugin

* Save config values -- TickTimersPlugin

* Save config values -- TileIndicatorsPlugin

* Save config values -- TimersPlugin

* Save config values -- TitheFarmPlugin

* Save config values -- TMorphPlugin

* Save config values -- WarIndicatorPlugin

* Save config values -- WhaleWatchersPlugin

* Save config values -- WildernessLocationsPlugin

* Save config values -- WintertodtPlugin

* Save config values -- WorldHopperPlugin

* Save config values -- WoodcuttingPlugin

* Cleanup

* Checkstyle

* Fix tests
2019-07-05 01:11:31 +02:00
Ganom
701d809f78 Fix up client. (#815)
* Aoe Warnings Fix-Up

* Freeze Timers NPE Fix

* Slayer Chat Lookup NPE && Fixing up Access levels.

* Raids Thieving NPE Fix && Fixing up Access levels.

* Revert "Fix copy paste error"

This reverts commit 26c88101b682eb76b98a8a0d88fc8a47c9f104d3.

* Revert "Fix checkstyle"

This reverts commit abf7fec004148897585bc0389bb5e0420e3d03cb.

* Revert "Convert game thread events to singletons"

This reverts commit b33048d7ee0481b17c5849d2d862e75c91e5a36c.

* Various Fixes
2019-06-29 17:31:23 +01:00
Owain van Brakel
38d9800d10 Convert game thread events to singletons (#794)
* Convert game thread events to singletons

* Fix checkstyle

* Fix copy paste error
2019-06-28 13:11:57 -07:00
Lucas
49afdf7dc7 Injector, deob, mixins 2019-06-08 09:33:50 +02:00
zeruth
eafb024f16 Revert to old layout for refactor 2019-06-07 23:54:32 -04:00
zeruth
882be3cb71 Merges Injector
Welcome to the new world boys.
2019-06-06 20:47:41 -04:00
James
c0bc66fb9c Changes (#15)
* Add config option to hide inventory viewer when player inventory is open

* Fix style error

* Adds world history to world hopper plugin.\n- Adds support for converting strings to Maps\n- Ability to clear history

* Fixed code style issues

* Fixed code style issues in another file

* Adds ability to not show tabs if you don't want

* Tabs are not shown by default

* Fix indentation in InventoryViewerConfig

* mixes checkstyle

* mixes checkstyle

* Adds ability to see your xp drops as damage, overlayed above your opponent

* Adds building to jar capabilities and fixes 0s

* added output

* Add grouping option to Inventory Viewer

* Add option to show free slots

Works on both the Grouped and Full modes

* skybox: calculate brightness increase in HSB format

* mixins: renderWidgetLayer: skip hidden widgets

* World Map: Identify Both Shield of Arrav Quest Start Points (#8442)

Closes #8437

* Add Ammo plugin

Shows the contents of the Ammo slot as an Infobox

* Add support for weapon slot items, such as darts

* Add stack formatting

* Improve Ammo's Documentation

* widgetitem: associate Widget with WidgetItem

* widgetitem overlay: allow configuring which interfaces to overlay

Update overlays to behave consistent with how they behaved before
removal of query api, with the exception of adding the rune pouch
overlay to the bank.

* Displays teammate health bars for BA Healer overlay

Parses teammate hp and outputs to System.out

Removed useless class

Displays offset inverted health bars

Set accurate values for location and size of health bars

Checkstyle

Checkstyle

* Nothing

* Removes max draw distance of ground markers

* Added vanguard hp tracker

* Vanguard Disabled by default

* Add player indicator config to show offline friends

* Better player indicator plugin, removed pk vison. added InteractChanged api

* Add a toggle to only show player indicators in the wilderness.

* Dont limit level by default in playerindicators

* Added type to plugins
2019-04-20 15:06:29 -04:00
Adam
bd9a69dc19 runescape-api: rename CombatInfo2 to HealthBar 2019-04-06 13:41:32 -04:00
Max Weber
dd993224ef mixins: Fix convex hulls being incorrectly contoured
the Models returned by getModel are already contoured if required; we do not need to do it again
2019-03-31 09:53:03 -04:00
Magic fTail
ee98065735 api: add overhead text changed event and setOverheadText 2019-03-19 14:37:35 -04:00
Tomas Slusny
73dbea874a Properly name Perspective methods, remove unused
- Properly rename world->local Perspective methods and force them to
accept LocalPoint to prevent confusion
- Remove unused params from Perspective methods

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-09-28 11:06:45 +02:00
Adam
d239a47d98 Add interacting changed event 2018-06-24 11:19:01 -04:00
Adam
00a5845c7e actor mixin: fix getInteracting when index is 65535
There are short times where it is this before being set to -1
2018-06-24 11:19:01 -04:00
Adam
f0da475370 Add interface representing all callbacks the client does, and convert mixins to use it
This allows creating and injecting Hooks via guice
2018-06-23 09:20:12 -04:00
Tomas Slusny
d6e26410c8 Move onActorHitsplat to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 23:59:59 +02:00
Adam
8a6fc94239 Flag npc as dead when their health ratio hits 0
Sometimes npcs despawn without their HP var visible after death
2018-05-31 18:18:29 -04:00
Adam
fd3a27f8b6 hooks: move combat info callback to actor mixin 2018-05-31 18:13:50 -04:00
WooxSolo
ea5c1f3032 runelite-api: add WorldArea 2018-04-28 11:36:53 -04:00
WooxSolo
92c8e9e9e6 Fix Actor.getWorldLocation to use pathX/pathY instead of getX/getY 2018-04-08 16:03:01 -04:00
Adam
da29e3560f runelite-api: add getConvexHull to Actor 2018-03-20 18:19:48 -04:00
Adam
6f61780e68 runelite-api: move getConvexHull to Model 2018-03-20 17:59:52 -04:00
Max Weber
b75dddca28 Update almost everything to the new API 2018-03-09 20:59:05 -07:00
Seth
1b24d83a00 Add graphic changed event 2018-01-25 19:55:07 -05:00
Adam
31c73e4d61 Move field hooks to mixins 2018-01-11 18:59:58 -05:00
Toocanzs
eecf183700 instance map: add complex tile rendering 2017-11-19 20:03:12 -05:00
Devin
8165975ba5 Add getWorldLocation mixin for Actor 2017-11-02 14:21:10 -07:00
Tyler Hardy
97f7bd0c48 Add sprite drawing on actors 2017-10-19 17:07:41 -04:00
Adam
6792f2570a Use player indices to iterate local players 2017-10-17 17:16:01 -04:00
Adam
10a494a2b7 Use npc indices to iterate local npcs 2017-10-17 17:15:58 -04:00
Adam
59552896ed Remove object wrappers and use mixins to inject functionality
This causes hierarchy to be runelite-client -> runelite-api and
injected-client -> runescape-api -> runelite-api. The mixin injector
fufills the runelite-api interface with access to the runescape-api
interfaces. The mixins live in runelite-mixins and are not loaded within
the client.

Note the obfuscated client classes do not pass JVM verification on 7+,
so the mixins are currently set to target Java 6.
2017-08-19 13:58:06 -04:00