Merge pull request #3688 from Abextm/oculus-master

runelite-client: add detached camera devtool
This commit is contained in:
Adam
2018-06-08 17:13:21 -04:00
committed by GitHub
3 changed files with 19 additions and 0 deletions

View File

@@ -1374,4 +1374,11 @@ public interface Client extends GameEngine
* @return the types for current world
*/
EnumSet<WorldType> getWorldType();
/**
* Sets the enabled state for the Oculus orb state
*
* @param state boolean enabled value
*/
void setOculusOrbState(int state);
}

View File

@@ -224,6 +224,14 @@ public class DevToolsPanel extends PluginPanel
});
container.add(tileLocationBtn);
final JButton oculusOrbBtn = new JButton("Detached camera");
oculusOrbBtn.addActionListener(e ->
{
highlightButton(oculusOrbBtn);
client.setOculusOrbState(oculusOrbBtn.getBackground().equals(Color.GREEN) ? 1 : 0);
});
container.add(oculusOrbBtn);
return container;
}

View File

@@ -627,4 +627,8 @@ public interface RSClient extends RSGameEngine, Client
@Import("widgetSpriteCache")
RSNodeCache getWidgetSpriteCache();
@Import("oculusOrbState")
@Override
void setOculusOrbState(int state);
}