Merge pull request #3688 from Abextm/oculus-master
runelite-client: add detached camera devtool
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -627,4 +627,8 @@ public interface RSClient extends RSGameEngine, Client
|
||||
|
||||
@Import("widgetSpriteCache")
|
||||
RSNodeCache getWidgetSpriteCache();
|
||||
|
||||
@Import("oculusOrbState")
|
||||
@Override
|
||||
void setOculusOrbState(int state);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user