Class LogOverlayComponent


  • public class LogOverlayComponent
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addTo​(net.runelite.client.ui.overlay.components.PanelComponent panelComponent)
      Appends a log section directly to the given panel.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogOverlayComponent

        @Inject
        public LogOverlayComponent​(PluginLogger pluginLogger)
    • Method Detail

      • addTo

        public void addTo​(net.runelite.client.ui.overlay.components.PanelComponent panelComponent)
        Appends a log section directly to the given panel. Call this at the end of your overlay's render() method.
        Parameters:
        panelComponent - The panel component to add to
           @Override
           public Dimension render(Graphics2D graphics) {
               // ... your existing stats ...
               logOverlayComponent.addTo(panelComponent);
               return super.render(graphics);
           }