Commit Graph

463 Commits

Author SHA1 Message Date
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
ffbc89a801 Move menuActionHook to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:36 -04:00
Tomas Slusny
486c8c985a Move clientMainLoop to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:35 -04:00
Tomas Slusny
7437da1237 Move drawRegion call to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:35 -04:00
Tomas Slusny
d948dc05ed Move drawAboveOverheads call to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:34 -04:00
Tomas Slusny
bac06e5b3a Move graphicsObjectCreated to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:34 -04:00
Tomas Slusny
517c4c4796 Move addChatMessage to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:33 -04:00
Tomas Slusny
4d6386d846 Move projectileMoved to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:32 -04:00
Tomas Slusny
3835f005f6 Move setMessage to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:32 -04:00
Tomas Slusny
4241e4384f Move postItemComposition to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:31 -04:00
Tomas Slusny
eea63dd171 Move focusLost to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:29 -04:00
Tomas Slusny
384bdb1179 Move focusGained to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 19:53:28 -04:00
Tomas Slusny
2944e5b334 Move updateNpcs call to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-23 00:04:44 +02:00
Tomas Slusny
8fb285f928 Move menuOpened to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 23:59:59 +02:00
Tomas Slusny
d6e26410c8 Move onActorHitsplat to mixins
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-22 23:59:59 +02:00
Tomas Slusny
b0127283d1 Center stretched fixed mode horizontally
To fit with fixed mode with stretched fixed disabled, center stretched
fixed mode horizontally.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2018-06-16 00:56:32 +02:00
Adam
634fd91b9f runelite-api: add setVar for setting varclientstr 2018-06-12 18:39:35 -04:00
Adam
cbec088a6b Remove map region changed event 2018-06-07 18:09:10 -04:00
Adam
1915647c9b runelite-mixins: once again reset menu on widget close 2018-05-31 19:41:43 -04: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
BeefaloKing
d2871d925c Stretched Fixed Mode Plugin: Add Integer Scaling option (#2863)
Forces integer scale factor by rounding stretched dimensions towards zero.
2018-05-25 08:21:37 +02:00
Adam
9c5078a75e Merge pull request #3075 from Abextm/var-inspector
Var inspector
2018-05-21 19:49:21 -04:00
WooxSolo
0b63291bbf Add RSTileMixin.getGroundItems and RSNPCMixin.getTransformedComposition 2018-05-21 17:19:35 -04: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
Adam
0fe49ec2df runelite-api: expand hint arrow api 2018-05-21 08:20:48 -04:00
Adam
2c5284d597 runelite-mixins: fix hasHintArrow 2018-05-21 08:20:08 -04:00
Adam
fbca624ffd runelite-api: add widget positioned event 2018-05-19 20:40:53 -04:00
Adam
444e3a5152 runelite-api: add sprite override api 2018-05-19 19:15:35 -04:00
Adam
06aa5cd680 Merge pull request #2684 from Adam-/npc-despawn
fire npc despawn event before composition is nulled
2018-05-15 11:20:25 -04: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
Morgan Lewis
c8d7779248 Fix world map overlay to draw pixel perfect on the World Map 2018-05-14 20:34:10 -04:00
Adam
0acde2bd06 runelite-mixins: wrap drawTileUnderlay in try/catch
The rasterizer crashes on certain tiles ingame with specific camera angles.

java.lang.ArrayIndexOutOfBoundsException: -1
    at Graphics3D.rasterGouraudLine(Graphics3D.java:797)
    at Graphics3D.rasterGouraud(Graphics3D.java:680)
    at Region.drawTileUnderlay(Region.java:1853)
    at Region.draw(Region.java:1376)
    at Region.drawRegion(Region.java:1187)
    at class35.method682(class35.java:808)
    at WorldMapType3.gameDraw(WorldMapType3.java:448)
    at class218.method4359(class218.java:1069)
    at Client.method1268(Client.java:3922)
    at Client.methodDraw(Client.java:2239)
    at GameEngine.method914(GameEngine.java:605)
    at GameEngine.run(GameEngine.java:1027)
    at java.lang.Thread.run(Thread.java:748)
2018-05-14 18:22:23 -04:00
Adam
e915070b4b runelite-mixins: fire npc despawn event before composition is nulled 2018-05-13 15:45:39 -04:00
Adam
484d664a3c injector: support field hooks prior to field being changed 2018-05-13 15:45:16 -04:00
Adam
bc2c959e7a runelite-api: add getWorldType() 2018-05-12 18:25:30 -04:00
Adam
837d373fdd runelite-mixins: fix setting menu preventing menu add event from being fired 2018-05-11 15:47:04 -04:00
Adam
782e426f52 Merge pull request #2528 from pettenge/hiscore-autocomplete
Autocomplete name when looking up player on HiScores
2018-05-11 14:08:55 -04:00
Adam
0ac809fae2 runelite-api: expose friends 2018-05-11 13:28:12 -04:00
Max Weber
c9d0abc1c3 Make VarbitChanged only fire once, after everything has settled 2018-05-10 21:01:04 -06:00
Dennis
035ea6af41 runelite-client: add anti drag plugin 2018-05-10 16:02:06 -04:00
Adam
4d9c58750a Remove bounding boxes 2018-05-10 08:54:43 -04:00
Adam
b805f786a8 Update mixins/api for 170 2018-05-10 08:54:43 -04:00
Adam
e74dfcf13d Add removed friend event 2018-05-08 16:36:44 -04:00
Adam
4037ba9c00 injector: add method hooks 2018-05-08 16:36:44 -04:00
Adam
8106d99f83 runelite-api: add nameable name change event 2018-05-08 16:36:44 -04:00
Adam
863522afa9 runelite-api: expose Friend 2018-05-08 16:36:41 -04:00
Adam
dcfbfd8441 mixins: inject get/set tick count 2018-05-07 11:30:37 -04:00
Adam
ccef1dddd0 runelite-client: add tick counter 2018-05-07 09:43:31 -04:00