/**
* Adds the buttons (and other controls) to the screen in question.
*/
public void initGui()
{
UserProfileData profile = null;
boolean enableProfileButton = false;
if (Minecraft.getMinecraft().vrRenderer != null &&
Minecraft.getMinecraft().hmdInfo != null)
{
// Gets the current profile
profile = Minecraft.getMinecraft().hmdInfo.getProfileData();
if (profile != null)
{
this.guivrSettings.setOculusProfileIpd(profile._ipd);
this.guivrSettings.setOculusProfilePlayerEyeHeight(profile._eyeHeight);
this.guivrSettings.oculusProfileName = profile._name;
this.guivrSettings.oculusProfileGender = profile.getGenderString();
enableProfileButton = true;
}
}
if (profile == null)