protected void setRevealActivity(bool active) { if (MediumButton != null) { if (!active) { MediumButton.setState(Panel.PanelState.INACTIVE, false); } else if (MediumButton.getState() == Panel.PanelState.INACTIVE) { MediumButton.setState(Panel.PanelState.IDLE, false); } } }
protected void setLaserActivity(bool active) { if (LaserButton != null) { if (!active) { LaserButton.setState(Panel.PanelState.INACTIVE, false); } else if (LaserButton.getState() == Panel.PanelState.INACTIVE) { LaserButton.setState(Panel.PanelState.IDLE, false); } } }