Merge pull request #3702 from deathbeam/add-rs-mappings-oculus-normal-speed-public
Set oculus speed to 36 (x3) in DevTools
This commit is contained in:
@@ -1395,4 +1395,11 @@ public interface Client extends GameEngine
|
|||||||
* @param state boolean enabled value
|
* @param state boolean enabled value
|
||||||
*/
|
*/
|
||||||
void setOculusOrbState(int state);
|
void setOculusOrbState(int state);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets the normal moving speed when using oculus orb (default value is 12)
|
||||||
|
*
|
||||||
|
* @param speed speed
|
||||||
|
*/
|
||||||
|
void setOculusOrbNormalSpeed(int speed);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -228,7 +228,9 @@ public class DevToolsPanel extends PluginPanel
|
|||||||
oculusOrbBtn.addActionListener(e ->
|
oculusOrbBtn.addActionListener(e ->
|
||||||
{
|
{
|
||||||
highlightButton(oculusOrbBtn);
|
highlightButton(oculusOrbBtn);
|
||||||
client.setOculusOrbState(oculusOrbBtn.getBackground().equals(Color.GREEN) ? 1 : 0);
|
boolean enabled = oculusOrbBtn.getBackground().equals(Color.GREEN);
|
||||||
|
client.setOculusOrbState(enabled ? 1 : 0);
|
||||||
|
client.setOculusOrbNormalSpeed(enabled ? 36 : 12);
|
||||||
});
|
});
|
||||||
container.add(oculusOrbBtn);
|
container.add(oculusOrbBtn);
|
||||||
|
|
||||||
|
|||||||
@@ -640,4 +640,8 @@ public interface RSClient extends RSGameEngine, Client
|
|||||||
@Import("oculusOrbState")
|
@Import("oculusOrbState")
|
||||||
@Override
|
@Override
|
||||||
void setOculusOrbState(int state);
|
void setOculusOrbState(int state);
|
||||||
|
|
||||||
|
@Import("oculusOrbNormalSpeed")
|
||||||
|
@Override
|
||||||
|
void setOculusOrbNormalSpeed(int state);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user