Skip to content

Add dynamic line of sight#11807

Open
Maximuis94 wants to merge 13 commits intorunelite:masterfrom
Maximuis94:add-dynamic-line-of-sight
Open

Add dynamic line of sight#11807
Maximuis94 wants to merge 13 commits intorunelite:masterfrom
Maximuis94:add-dynamic-line-of-sight

Conversation

@Maximuis94
Copy link
Copy Markdown
Contributor

Plugin that draws current the line of sight around the player.
Line of sight can be based on the current active weapon, the manual spell cast range, as well as up to 5 custom, predefined ranges (next to the manual spell cast range and the active weapon range).
All lines of sight with the exception of the manual spell cast range are affected by Myopia tier in fortis colosseum.
Allows NPC lines of sight in Fight caves, Inferno and Fortis Colosseum to be drawn
Allows the player line of sight to be drawn under the cursor, while the configured button is pressed.

…lection is not allowed" feedback properly and avoid any hacky workarounds, I realized the plugin's core architecture needed a refactor.

Here is what I've updated:

    Removed Dynamic Class Loading: Overhauled the UI routing by removing the reflection-based panel instantiation and replacing it with explicit Guice bindings and a safe switch statement in DataLoggerPanel.

    Removed Gson TypeToken Reflection: Removed the dynamic TypeToken reflection in FileIOService, replacing it with standard Java function parsing via the LogType enum.

    Removed Method Invocation: Replaced the reflective invoke call with a direct client.getAccountHash() API call in the new AbstractLogger base class.
Let me know if everything looks good to go!
…nd avoid any hacky workarounds, I realized the plugin's core architecture needed a refactor.

I have made the following changes;

    Removed Dynamic Class Loading: Overhauled the UI routing by removing the reflection-based panel instantiation and replacing it with explicit Guice bindings and a safe switch statement in DataLoggerPanel.

    Removed Gson TypeToken Reflection: Removed the dynamic TypeToken reflection in FileIOService, replacing it with standard Java function parsing via the LogType enum.

    Removed Method Invocation: Replaced the reflective invoke call with a direct client.getAccountHash() API call in the new AbstractLogger base class.

Let me know if everything looks good to go!
# Conflicts:
#	plugins/data-logger
Extends item prices in the bank interface to unowned placeholders, showing a tooltip with item name, GE and HA prices for them as well
Plugin that draws current the line of sight around the player. 
Line of sight can be based on the current active weapon, the manual spell cast range, as well as up to 5 custom, predefined ranges (next to the manual spell cast range and the active weapon range).
All lines of sight with the exception of the manual spell cast range are affected by Myopia tier in fortis colosseum.
Allows NPC lines of sight in Fight caves, Inferno and Fortis Colosseum to be drawn
Allows the player line of sight to be drawn under the cursor, while the configured button is pressed.
@runelite-github-app
Copy link
Copy Markdown

runelite-github-app Bot commented May 7, 2026

@runelite-github-app
Copy link
Copy Markdown

Internal use only: Reviewer details Maintainer details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant