BU Posted April 4, 2022 Share Posted April 4, 2022 (edited) A small enhancement that's inspired by the 'hover' option provided in Roof Removal plugin that's bundled with the latest Runelite. The goal is to hide roofs at the world tile that your mouse is currently hovering over. Video example of the hover option available in the Roof Removal Plugin: https://runelite.net/img/blog/1.7.16-Release/roof-removal-plugin.mp4 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 April 19, 2022 by nobu Updated explanation & source material Quote Link to comment Share on other sites More sharing options...
BU Posted April 13, 2022 Author Share Posted April 13, 2022 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.