Commit Graph
100 Commits
Author SHA1 Message Date
Tomas Slusny 466eca9d90 Merge pull request #4552 from Shingyx/fix-assembler-tests-on-windows
Fix Assembler tests when autocrlf=true on Windows
2018-07-31 10:08:43 +02:00
Tomas Slusny 0217d5a6af Merge pull request #4575 from deathbeam/fix-plane-for-tile-objects
Account for plane in TileObject canvas location
2018-07-30 17:14:19 +02:00
Tomas Slusny 676b2cf5d2 Account for plane in TileObject canvas location
Fixes #4571

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-30 16:36:58 +02:00
Tomas Slusny 9c0671affc Merge pull request #4481 from deathbeam/add-time-measurement
Add simple info log with startup time
2018-07-30 11:55:29 +02:00
Tomas Slusny 37be586202 Merge pull request #4558 from deathbeam/fix-null-and-emtpy-names
Fix NPE when trying to draw null names
2018-07-30 10:32:01 +02:00
Tomas Slusny c777b63357 Merge pull request #4072 from Nightfirecat/improve-player-comparison-text-color
Add color utility class
2018-07-30 08:46:48 +02:00
Tomas Slusny fb72406100 Merge pull request #4420 from MagicfTail/patch-1
TimerPlugin: Fix prayer enhance length
2018-07-30 08:06:30 +02:00
Tomas Slusny 5adb2d2e37 Add null check for Perspective.getCanvasTextLoc
We have marked it as Nonnull but we were still sending null values
inside because of NPC name sometimes being null. Make the param nullable
and add null and empty check.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-30 00:19:10 +02:00
Tomas Slusny 7faa23e289 Merge pull request #4534 from deathbeam/use-providers
Properly use javax.inject.Provider
2018-07-29 23:48:59 +02:00
Tomas Slusny 1c13a1bde4 Fix NPE when trying to draw null names
Fix null pointer exceptions when trying to draw null names on screen.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-29 23:45:56 +02:00
Tomas Slusny aa75201fe4 Merge pull request #4479 from deathbeam/remove-revalidate-move-frame
Pack and show frame only after properties update
2018-07-29 14:36:04 +02:00
Tomas Slusny a934cc4667 Pack and show frame only after properties update
- Instead of packing frame first and then resizing and revalidating it,
pack it at the end so there is no overhead of resize and repaint events.
This save another like 200ms from startup time.
- Validate screen bounds after setting them to minimum size
- Update frame config after window custom chrome is set

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-28 17:52:40 +02:00
Tomas Slusny bb55d9f52a Properly use javax.inject.Provider
Instead of using providers in classes that should not be even used when
the optional dependencies are not present, move all Provider<> injects
to RuneLite (and to other top-level classes in other cases).

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-28 16:25:18 +02:00
Tomas Slusny 9ee6989aa3 Merge pull request #4507 from deathbeam/fix-toolbars
Use consistent API and order for title and sides
2018-07-28 16:12:25 +02:00
Tomas Slusny dfcbece66b Add simple info log with startup time
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-27 12:10:08 +02:00
Tomas Slusny d7b78936de Merge pull request #4519 from devinfrench/kourendlibrary
kourend library plugin: Use correct enum naming convention
2018-07-27 10:13:44 +02:00
Tomas Slusny 96036d17d0 Merge PluginToolbar and TitleToolbar together
Because of new isTab property there is no need to separate the toolbars
anymore as it can be decided which one to add where based on it.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-27 10:00:08 +02:00
Tomas Slusny 7864522210 Add isTab property to title buttons
In order to differentiate between title and sidebar buttons in sidebar
add isTab property that will place them after separator.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-27 08:35:22 +02:00
Tomas Slusny af1e16fa34 Merge pull request #4523 from Nightfirecat/fix-abyssal-demon-task-requirement
achievement diary plugin: Fix Abyssal demon req
2018-07-27 08:05:06 +02:00
Tomas Slusny 746d948a84 Use consistent API and order for title and sides
Use same API for ordering title and sidebar and order them in the swing
components and not in events as that is unreliable.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-26 15:48:00 +02:00
Tomas Slusny 01d5e11975 Fix loading of chat colors on startup
ConfigChanged is no longer propagated on startup, so colors need to be
loaded explictly for first time.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-26 13:31:34 +02:00
Tomas Slusny c262ca267a Merge pull request #4494 from Nightfirecat/fix-menaphite-master-emote-clue
clues: Fix menaphite emote requirements
2018-07-25 11:14:29 +02:00
Tomas Slusny 3d46b17028 Merge pull request #4468 from LeviSchuck/xp-126
Fix level 126 next goal to be max XP (200,000,000) instead of -1 xp
2018-07-25 11:05:24 +02:00
Tomas Slusny 30bf68a23b Propagate height to ground items
Propagate item layer height to ground items again

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-24 18:22:34 +02:00
Tomas Slusny 7831042189 Merge pull request #4447 from deathbeam/do-not-reconfigure
Update frame config when needed
2018-07-24 11:52:13 +02:00
Tomas Slusny 28dd5f477c Update frame config when needed
Update resizable only when it is really changed as it messes up window
sometimes if fullscreen

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-24 11:41:10 +02:00
Tomas Slusny a3ddd47a29 Add support for RS movable widgets
Add support for adding RS widgets to RuneLite overlay system and make
them moveable with persisted positions during restarts.

Depends on #3820 for widget ids

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-22 18:25:00 +02:00
Tomas Slusny 2627f08f18 Add experience tracker widget WidgetInfo
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-22 18:25:00 +02:00
Tomas Slusny 84473262ba Use Overlay#getBounds for getting correct bounds
Use Overlay#getBounds for getting correct bounds in OverlayManager in
case overlay overrides getBounds with custom functionality.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-22 18:25:00 +02:00
Tomas Slusny d700ebc257 Add support for resetting the detached overlays
Add support for resetting saved data for detached overlays.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-22 18:25:00 +02:00
Tomas Slusny cda98fc50e Move Discord and EventBus after ClientUI
Move initialization of Discord service and EventBus after ClientUI
startup to display the ClientUI sooner

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 23:09:08 +02:00
Tomas Slusny af34aa0e53 Properly load configuration when showing ClientUI
- Properly load configuration when first showing ClientUI instead of
waiting for ConfigChanged events.
- Merge open and show to 1 method
- Remove ClientUILoaded as it is no longer necessary

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 23:09:08 +02:00
Tomas Slusny 53148d0cdd Remove recursive dependency on RuneLite
- Merge ClientUI.show and ClientUI.init as now applet can be properly
injected
- Change RuneLite to be autocloseable and send it when opening ClientUI

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 23:09:07 +02:00
Tomas Slusny 66bfbc5648 Send launch properties around as bound constants
Instead of exposing static variable provide launch properties to
dependant classes as bound constants in RuneLiteModule.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 23:05:22 +02:00
Tomas Slusny 8909871554 Inject and load RS client and applet through Guice
Instead of requiring to create client from RuneLite just use Guice for
it and separate applet provider.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 23:05:22 +02:00
Tomas Slusny 0f0ac2ab64 Allow RS loading classes to be used with Guice
- Provide OkHttpClient through Guice instead of using it from static
variable
- Chain the RS classes with Guice and inject ClientLoader to RuneLite
class
- Cleanup RS loading classes a bit

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 23:05:19 +02:00
Tomas Slusny dcbccbb01b Move rs-client related classes to own package
To properly differentiate between client loading logic, move these
classes to own package.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 22:33:46 +02:00
Tomas Slusny d646a37bdb Follow GitHub templates for bug report and issue (#4205)
Based on points made in #4160, update GitHub issue templates to be more
versatile, do not include any inline comments and be straightforward,
while pointing out reporter in correct direction. Also, one of the
crucial things that previous template for bug report was missing was
RuneLite and Launcher versions and steps to reproduce the bug.

Supersedes #4160

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-21 18:33:47 +02:00
Tomas Slusny 7de8436bdb Merge pull request #4412 from deathbeam/pmod-support-chat
Add support for mod public chat to ChatCommands
2018-07-21 10:54:46 +02:00
Tomas Slusny 90853c91c8 Merge pull request #4417 from deathbeam/clan-member-rank-jmod
Add JMod clan member rank
2018-07-21 10:53:53 +02:00
Tomas Slusny 7c5e545846 Merge pull request #4436 from timovv/inventory-viewer-spacing
Inventory viewer: make padding between items same as in inventory.
2018-07-21 10:31:17 +02:00
Tomas Slusny b861b7d706 Merge pull request #4432 from Nightfirecat/fix-sdmm-opponent-lookup
opponent info plugin: Fix SDMM hiscore lookup
2018-07-21 09:48:41 +02:00
Tomas Slusny 67bb02c42e Merge pull request #4430 from Joshua-F/fix/actorquery-interacting
Use the supplied actor passed to ActorQuery#isInteractingWith
2018-07-21 00:35:14 +02:00
Tomas Slusny d1ba793849 Hide only inside of minimap but not logout
In normal resizable mode hide only insides of minimap but not logout
button when hiding minimap.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-20 22:33:44 +02:00
Tomas Slusny 0002a25d28 Move private methods to bottom of minimap plugin
Move private methods to bottom, after subscribe methods for better
readability.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-20 22:13:04 +02:00
Tomas Slusny 26daee6a2e Use correct widget when hiding minimap
When hiding minimap, there are 2 different widget IDs for respective
resizable mode configurations. Find proper one and hide it.

Fixes #976

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-20 22:13:04 +02:00
Tomas Slusny 4218459617 Add new WidgetIDs for minimap
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-20 22:13:03 +02:00
Tomas Slusny 5249f73e54 Add JMod clan member rank
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-19 23:27:38 +02:00
Tomas Slusny 0a4ce4cf4c Merge pull request #4388 from Kamielvf/tile-fix
perspective: fix regression caused by 2599db2
2018-07-19 21:32:01 +02:00
Tomas Slusny e19b057bdd Add support for mod public chat to ChatCommands
Without this chat commands were not working because it just exited
early for pmods.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-19 20:09:51 +02:00
Tomas Slusny 9fbe78e069 Merge pull request #4397 from Abextm/banana-plantation-clue
cluescrolls: Move banana plantation clue out of tree
2018-07-19 19:06:30 +02:00
Tomas Slusny 10e1ab3bd8 Merge pull request #4391 from deathbeam/fix-varrock-quiz-camels
Fix camels type in varrock museum quiz
2018-07-19 02:18:37 +02:00
Tomas Slusny 2c463c48cd Merge pull request #4390 from Nightfirecat/remove-clue-scroll-plugin-useless-null-check
clue scroll plugin: Remove useless null check
2018-07-19 01:58:03 +02:00
Tomas Slusny a006cdebb1 Fix camels type in varrock museum quiz
Fix spaces in camels type answer in VarrockMusuem quiz solver.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-19 01:11:55 +02:00
Tomas Slusny 9fa8e1271a Merge pull request #3602 from Nightfirecat/reset-freeze-timer-on-vorkath-spawn-death
Remove freeze timer on Vorkath Zombified spawn death
2018-07-18 22:09:47 +02:00
Tomas Slusny db7d1e8a6d Merge pull request #4383 from deathbeam/sang-staff-tradeable-val
Add mappings for untradeable versions of raids 2 items
2018-07-18 20:31:50 +02:00
Tomas Slusny 4ccf7fed92 Merge pull request #4384 from deathbeam/fix-unused-import
Remove unused import from RSTileMixin
2018-07-18 20:20:34 +02:00
Tomas Slusny f99b1416b7 Remove unused import from RSTileMixin
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-18 20:04:45 +02:00
Tomas Slusny aa7d8925ca Add mapping for Scythe to ItemMappings
Add mapping of untradeable version of Scythe Of Vitur to its tradeable
version.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-18 20:02:30 +02:00
Tomas Slusny 8227d045c9 Add Sanguinesti Staff to ItemMapping
Add mapping for untradeable to tradeable version of Sanguinesti Staff to
ItemMapping

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-18 20:01:31 +02:00
Tomas Slusny 69d8b74a09 Merge pull request #4376 from Nightfirecat/reduce-visibilities-in-timer-plugin
timers plugin: Reduce visibilities
2018-07-18 17:58:11 +02:00
Tomas Slusny 4323783bfc Merge pull request #4330 from MagicfTail/rename-event
ScreenshotPlugin: fix naming of onWidgetLoaded event
2018-07-15 02:46:59 +02:00
Tomas Slusny 70059a9bf1 Merge pull request #4304 from deathbeam/remove-investigate-swap
Remove investigate menu entry swap
2018-07-13 09:50:45 +02:00
Tomas Slusny fca7b2ee7f Remove investigate menu entry swap
As this was added to official client, it is now unnecessary.

Closes #4292

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-13 07:37:22 +02:00
Tomas Slusny 4e3cec18f0 Correctly reset boosts when on NEVER 2018-07-11 19:11:54 -04:00
Tomas Slusny 91991a5eb6 Add support for preserving boost indicators
- Add support for showing boost indicators after no stat is boosted based
on last accurate change.
- Change the  counter to be in ticks in order to get most accurate
results possible

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-09 15:00:59 -04:00
Tomas Slusny 2ab19503df Add debuff/buff change indicators
- Add support for dynamically updating infoboxes
- Create infoboxes only once and then determine if they should be drawn
- Add indicators for both buff and debuff timers. By default only buff
timer is enabled.
- Properly reset everything on shutdown

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-09 15:00:59 -04:00
Tomas Slusny 0223206994 Check if infobox can render in InfoBoxOverlay
Infoboxes have property render that needs to be checked in
InfoBoxOverlay.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-09 12:30:23 -04:00
Tomas Slusny 30976ee72b Add more !kc abbreviations
- Remove ambiguous "archaelogist" abbreviation and replace it with
respective crazy and deranged arch abbrevs
- Add "chambers" and "cox" abbrevs to raids 1
- Add "theatre", "tob", "verzik" and "verzik vitur" abbrevs to raids 2

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-08 23:46:24 +02:00
Tomas Slusny f8f561fe83 Fix "verxik" typo in ChatCommandsPlugin
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-08 23:34:48 +02:00
Tomas Slusny ac0de0aee5 Do not explode on illegal unicode chat in settings
Prevent client shutting down from main method in case settings contain
illegal unicode string due to config file corruption.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-08 18:44:42 +02:00
Tomas Slusny a4b3b6d272 Merge pull request #3702 from deathbeam/add-rs-mappings-oculus-normal-speed-public
Set oculus speed to 36 (x3) in DevTools
2018-07-08 14:49:53 +02:00
Tomas Slusny 4a26a39068 Merge pull request #4158 from Nightfirecat/fix-agility-pyramid-laps
Fix agility pyramid laps
2018-07-07 13:12:11 +02:00
Tomas Slusny 137b6d2260 Add spec active indicator to spec orb
Add indicator for special attack being active to special attack orb.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-07 01:35:24 +02:00
Tomas Slusny 9cb5f7283a Set oculus speed to 36 (x3) in DevTools
Default oculus orb speed is hardly useable when trying to explore
something so this will set it to more reasonable default.

Depends on !9

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-06 14:07:38 +02:00
Tomas Slusny 31d7ed8850 Add api mappings for oculus orb normal speed
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-06 14:06:48 +02:00
Tomas Slusny df0ad824f9 Merge pull request #4194 from Nightfirecat/remove-worldclient-from-xptracker-plugin
Remove WorldClient usages from xp tracker plugin
2018-07-06 11:30:44 +02:00
Tomas Slusny 54cce8209e Merge pull request #4191 from Nightfirecat/fix-sw-deserted-keep-hot-cold-clue
clues: Fix SW-of-deserted-keep hot-cold location
2018-07-05 23:03:35 +02:00
Tomas Slusny 945a80f114 Merge pull request #4178 from forsco/broad-arrows-skillcalc
Add broad arrows to fletching skill calc
2018-07-05 14:27:40 +02:00
Tomas Slusny a24449638b Merge pull request #4167 from deathbeam/clues-respect-hiscore
Make !clues command respect account type
2018-07-04 22:16:41 +02:00
Tomas Slusny 7d7ffa14de Merge pull request #4168 from deathbeam/fix-discord-reset
Reset Discord state if now > updated + timeout
2018-07-04 17:13:15 +02:00
Tomas Slusny 34e95cdafe Reset Discord state if now > updated + timeout
Correctly reset Discord state only if now > updated + timeout instead of
updated > start + timeout.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-04 16:45:59 +02:00
Tomas Slusny b4d836a903 Merge pull request #2899 from PandahRS/feature/discord-area-update
Add minigames/bosses/cities/dungeons to Discord plugin
2018-07-04 16:13:51 +02:00
Tomas Slusny 896f70d7a5 Make Discord plugin more extensible/support region
- Simplify DiscordState to support more scenarious and use simple
list-based system for determining last event and timeout each event
separately
- Remove actionDelay as that functionality is no longer present
- Add debug log output to DiscordService
- Cleanup DiscordGameEventType to follow new simple DiscordState logic
and add proper priorities to events
- Add support for different type of regions

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-04 15:58:40 +02:00
Tomas Slusny 0cd709f9ef Add logging of presence to DiscordService
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-04 15:57:42 +02:00
Tomas Slusny d77139f15a Make !clues command respect account type
Make !clues command in ChatCommandsPlugin respect account for rankings.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-07-04 12:47:24 +02:00
Tomas Slusny d494570ffd Merge pull request #4166 from Nightfirecat/add-agility-pyramid-entrance-obstacles
agility plugin: Add pyramid entrance obstacles
2018-07-04 11:26:50 +02:00
Tomas Slusny 5eb4fa4639 Merge pull request #4124 from Abextm/range-stat-boost
itemstats: Add variable healing food
2018-07-04 09:54:32 +02:00
Tomas Slusny 2539adb1d4 Merge pull request #4137 from deathbeam/varrock-quiz
Add Varrock Museum Quiz solver to puzzle solver plugin
2018-07-04 01:26:04 +02:00
Tomas Slusny 5571705183 Merge pull request #3957 from takuyakanbr/improve-plugin-list
Improve plugin list/config panel
2018-07-04 01:23:46 +02:00
Tomas Slusny 5643e2b41e Merge pull request #4145 from Nightfirecat/fix-skill-calculator-combined-item-decimals
skill calculator: Fix combined items with decimals
2018-07-03 10:49:10 +02:00
Tomas Slusny 257342de72 Merge pull request #4127 from Nightfirecat/fix-empty-ge-search
Fix empty GE search render bug
2018-07-02 10:21:40 +02:00
Tomas Slusny 3359828821 Merge pull request #4100 from Nightfirecat/add-field-rations
item stats plugin: Add field ration
2018-06-30 14:48:49 +02:00
Tomas Slusny 6e3eaf3111 Merge pull request #4088 from deathbeam/fix-title-component-size-return
Return preferredSize.width from TitleComponent
2018-06-30 14:47:36 +02:00
Tomas Slusny 84b09f05b4 Merge pull request #4086 from Nightfirecat/add-missing-rfd-foods
item stats: Add missing RFD foods
2018-06-30 14:45:55 +02:00
Tomas Slusny 9e316525b2 Merge pull request #4093 from Nightfirecat/add-eel-fishing-spots
fishing plugin: Add cave eel and slimy eel spots
2018-06-30 13:36:19 +02:00
Tomas Slusny eacf445e18 Merge pull request #4094 from Nightfirecat/add-swamp-caves-shortcuts
agility plugin: Add Lumbridge swamp cave shortcuts
2018-06-30 02:15:34 +02:00
Tomas Slusny f440796e76 Return preferredSize.width from TitleComponent
To return parent defined dimensions properly, return preferredSize.width
instead of text width, as this is block component so it should act like
block and not return custom sizes.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-29 23:37:36 +02:00
Tomas Slusny 7482d2f5a6 Merge pull request #4079 from deathbeam/fix-sotd-sol
Make SOTD/SOTL timer use chat messsage
2018-06-29 14:38:19 +02:00
Tomas Slusny e7022475b0 Make SOTD/SOTL timer use chat messsage
Instead of using graphic make SOTD/SOTL timer use chat message as that
one is more reliable and same for both.

Fixes #4078

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-29 14:20:33 +02:00