Adam
3d463a7c9d
Merge pull request #270 from deathbeam/runelite-cleanup
...
Decouple RuneLite class
2017-12-29 17:57:21 -05:00
Tomas Slusny
0d8870e7da
Remove unnecessary null checks for game client
...
Remove unnecessary null checks for game client from plugins, as now
client is always not null in all of them, since in the case of it being
null the plugins are not even started.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com >
2017-12-29 18:17:17 +01:00
Tomas Slusny
6c2e827d4a
Move creation of UI to ClientUI class
...
- Move setting of UI-related variables to ClientUI class (create new
"create" static method to set them before creating the UI window)
- Clean up ClientUI class
Signed-off-by: Tomas Slusny <slusnucky@gmail.com >
2017-12-29 18:17:16 +01:00
Tomas Slusny
6bf63a447f
Cleanup RuneLite class fields
...
- Remove runelite variable
- Use setters for options and injector (to use them outside of tests)
- Remove getter for gui and make it package-private
- Use package-private gui field when providing ClientUI from
RuneliteModule
Signed-off-by: Tomas Slusny <slusnucky@gmail.com >
2017-12-29 18:17:16 +01:00
Tomas Slusny
b4eba39f6b
Move creation of tray icon to ClientUI
...
Move creation of tray icon from RuneLite to ClientUI.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com >
2017-12-29 18:17:15 +01:00
Tomas Slusny
06836b3e1d
Move setTitle to ClientUI
...
Move setTitle method from RuneLite to ClientUI.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com >
2017-12-29 18:17:15 +01:00
Tomas Slusny
bd521acbb0
Move creation of client to RuneLite
...
Instead of using setters and getters to move around reference to Client
and creating the client in the client panel, move creation of the Client
to RuneLite and add new field to PluginDescriptor if the plugin should
be loaded when client is outdated.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com >
2017-12-29 18:17:09 +01:00
Tomas Slusny
69b88fe3e3
Extract runQuery to QueryRunner service
...
Extract runQuery method from runelite to separate Guice service.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com >
2017-12-29 16:41:09 +01:00
Tomas Slusny
984ebb63dd
Extract session-related logic to SessionManager
...
- Extract runelite session related logic from RuneLite to SessionManager
class and expose this as Guice service
- Move WSClient to account package
Signed-off-by: Tomas Slusny <slusnucky@gmail.com >
2017-12-29 16:41:09 +01:00
Tomas Slusny
82ee4a0036
Change Notifier to be injectable service
...
Move notify methods to Notifier and change it to be injectable Guice
service.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com >
2017-12-29 16:41:09 +01:00
Adam
82d277a8a5
cache: split cache client and server into their own projects
...
Split handshake and update protocol also into their own projects
2017-12-28 21:15:01 -05:00
Adam
c4bee1127c
cache: add map and location definition, convert Region loading to use it
2017-12-28 21:15:00 -05:00
Adam
162efc9bfc
cache: add savers
2017-12-28 21:14:59 -05:00
Adam
a27d3686c2
cache: add a few more write* to outputstream
2017-12-28 21:14:59 -05:00
Adam
0cebc5ebe8
cache: lombok definitions
2017-12-28 21:14:58 -05:00
Adam
e9e7e2a180
cache: rename some fields of object and interface
2017-12-28 21:03:02 -05:00
Adam
a718d00699
cache: fix readString to not sign extend negative values
2017-12-28 21:00:36 -05:00
Adam
e685ac2491
cache: fix readBigSmart
2017-12-28 21:00:06 -05:00
Adam
54c61857c1
cache: fix writeBigSmart
2017-12-28 20:59:17 -05:00
Adam
1ec375f1d2
runelite-api: add equipment inventory slot id, inventory id, logout widget and chat message type 7
2017-12-28 20:58:45 -05:00
Adam
1f153ddc48
cache: default index data to protocol 6
2017-12-28 20:57:55 -05:00
Adam
9b3231671a
Merge pull request #293 from UniquePassive/playermixin-npe
...
RSPlayerMixin: Don't NPE when Player name is null
2017-12-27 17:44:22 -05:00
UniquePassive
8f9c74aa91
Don't NPE when Player name is null
2017-12-27 20:31:50 +01:00
Adam
94ffd34ba9
Merge pull request #275 from RobinWeymans/hunter-plugin
...
Hunter plugin
2017-12-23 20:16:09 -05:00
Adam
041181d469
Merge pull request #269 from deathbeam/better-swing-ui
...
Clean up swing UI
2017-12-23 20:15:00 -05:00
Adam
b46538a23f
Merge pull request #285 from Unmoon/ground-items-coins-fix
...
Ground Items - Fix stack alch value, coins value, quantity alch value display, item highlight priority
2017-12-23 19:35:59 -05:00
Tomas Slusny
19416ba5ca
Normalize plugin panel display
...
- Add same padding to each panel
- Wrap each panel in JScrollPane
- Clean up plugin panel API and set normalized width, height and layout
to each panel instead of having to manually specify it for each panel
- Make PluginPanel class abstract
Signed-off-by: Tomas Slusny <slusnucky@gmail.com >
2017-12-23 19:30:27 -05:00
Tomas Slusny
4568f4302f
Move IconTextField to Hiscore plugin
...
As it is the only place where it is used, it should be placed there.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com >
2017-12-23 19:30:26 -05:00
Tomas Slusny
670ffe135f
Simplify navigation button code
...
Simplify code of the navigation button to also handle images and to
extend the swing JButton instead of wrapping it in getButton method.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com >
2017-12-23 19:30:25 -05:00
Tomas Slusny
bb8f17d75e
Change XP tracker button to use image
...
Change xp tracker button to use actual image instead of text because
text was not showing on both Windows and Linux.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com >
2017-12-23 19:30:21 -05:00
Tomas Slusny
002cf6223f
Change UIManager defaults to use OSRS font
...
Change UIManager defaults for fonts to use OSRS font instead.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com >
2017-12-23 19:30:11 -05:00
Unmoon
833bc3e6b2
Ground Items - Always show highlighted items
...
Show highlighted items even if they are under the GE/HA value thresholds.
2017-12-23 19:24:43 -05:00
Unmoon
d74f2f3e46
Ground Items - Fix quantity in high alch value display
2017-12-23 19:24:41 -05:00
Unmoon
c647d755b4
Ground Items - Fix coins not having value
2017-12-23 19:24:40 -05:00
Unmoon
701ae90ed5
Ground Items - Fix alch value not applying to whole stack
2017-12-23 19:23:43 -05:00
Onvo
e4ea7d15e4
Add hunter plugin
2017-12-23 19:11:39 -05:00
Onvo
93b950c829
Make ground items overlay use new Widget.contains
2017-12-23 19:11:34 -05:00
Onvo
9f6b4e2d6c
Add GameObjectsChanged event
2017-12-23 19:11:27 -05:00
Onvo
b5c2d75527
Add Widget.contains point
2017-12-23 19:11:21 -05:00
Onvo
cb8d4719c4
New MenuActions related to the hunter plugin
2017-12-23 19:11:13 -05:00
Adam
16b0bebd47
Skip archetype test by default
...
It requires mvn/jdk to be in your PATH
2017-12-23 09:28:57 -05:00
Adam
7d078b8126
Merge pull request #271 from devinfrench/zulrah
...
Update zulrah plugin overlay
2017-12-22 16:32:14 -05:00
Adam
e6705133fc
Merge pull request #278 from deathbeam/fix-memory-leak
...
Fix OkHttp connection leaks on connection error
2017-12-21 20:25:47 -05:00
Tomas Slusny
4660bb3739
Fix OkHttp connection leaks on connection error
...
When request fails, entire response needs to be wrapped in try with
resources in order to close the connection properly and not only
response body.
Signed-off-by: Tomas Slusny <slusnucky@gmail.com >
2017-12-22 02:05:28 +01:00
kokkue
9125211f57
idle plugin: add ornament dragon pickaxe
2017-12-21 18:53:29 -05:00
Adam
a6fde8fb28
Merge pull request #272 from devinfrench/jad
...
Update fight cave plugin
2017-12-21 11:34:25 -05:00
Adam
2f76aa1aa9
Merge pull request #277 from SomeoneWithAnInternetConnection/fix-plugin-archetype
...
Actually fix example plugin archetype, and add a test to make sure it stays that way
2017-12-21 11:24:45 -05:00
SomeoneWithAnInternetConnection
a6e275e910
Add tests for archetype-plugin compilability
...
This should make sure that the example plugin archetype is compilable.
The test seems to fail in IDEA, but runs fine from a terminal :/
2017-12-21 08:42:09 -05:00
SomeoneWithAnInternetConnection
39ea262d32
Actually fix example plugin archetype
...
The previous fix introduced an import conflict: java.awt.Point and
net.runelite.api.Point
2017-12-21 08:41:40 -05:00
Runelite auto updater
75f69fdde2
[maven-release-plugin] prepare for next development iteration
2017-12-21 13:28:10 +00:00