Jump to content

Dynamic roof removal at the hovered mouse position


BU
 Share

Recommended Posts

A small enhancement that's inspired by the 'hover' option provided in Roof Removal plugin that's bundled with the latest Runelite.

 

The way the mentioned plugin works is by modifying the roof removal flags to include 'Hover' - I added a post that links to the source of this plugin for more details on how that works.

So, I would love if you added this small QoL feature and I'm presuming this wouldn't be too much work to accomplish as the plugin is pretty small; though I should mention there are two ways to accomplish this enhancement as a plugin if modifying the roof removal flags is not an easy approach for your Runelite branch...

  • Approach A:  Update/modify roof removal flags on game state change (this is more efficient as it only needs to run once each game state)
  • Approach B:  Trigger removal of the specific roof above the hovered tile;  Using a screen-to-world method to get the tile that's at your mouse position (from mouse movement event), then check tile flags for the 'TILE_FLAG_UNDER_ROOF' (aka 4)

Based this on reading the plugin source (linked below in the first post) and referring to the Runelite Constants here: 
    https://github.com/runelite/runelite/blob/master/runelite-api/src/main/java/net/runelite/api/Constants.java

Let me know if it's already planned or if you are open to having me write a proof of concept that is compatible with your Runelite branch, happy to help anyway I can.

Edited by nobu
Updated explanation & source material
Link to comment
Share on other sites

  • 2 weeks later...

To be more specific, here is the RoofRemovalPlugin responsible for this enhancement --
    ROOF_FLAG_HOVERED is the key part of the original suggestion, but the other parts of the plugin are useful too, if you wish to integrate all of it:

https://github.com/runelite/runelite/blob/cb8788c38f97f9eefdc4bf577c209efc40475675/runelite-client/src/main/java/net/runelite/client/plugins/roofremoval/RoofRemovalPlugin.java

Link to comment
Share on other sites

  • BU changed the title to Dynamic roof removal at the hovered mouse position

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...