Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
Readd Seated Mode | Fix Later!
Browse files Browse the repository at this point in the history
  • Loading branch information
CADIndie committed Sep 10, 2024
1 parent 797f110 commit e96c5f7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ public class GuiMainVRSettings extends GuiVROptionsBase {
new VROptionLayout(GuiOtherHUDSettings.class, VROptionLayout.Position.POS_RIGHT, 2.0F, true, "vivecraft.options.screen.guiother.button"),
new VROptionLayout(VRSettings.VrOptions.WORLD_SCALE, VROptionLayout.Position.POS_LEFT, 6.0F, true, null),
new VROptionLayout(VRSettings.VrOptions.WORLD_ROTATION, VROptionLayout.Position.POS_RIGHT, 6.0F, true, null),
new VROptionLayout(VRSettings.VrOptions.PLAY_MODE_SEATED, (button, mousePos) -> {
this.reinit = true;

if (!this.dataholder.vrSettings.seated) {
this.isConfirm = true;
return true;
} else {
return false;
}
}, VROptionLayout.Position.POS_LEFT, 0.0F, true, null),
new VROptionLayout(VRSettings.VrOptions.VR_HOTSWITCH, VROptionLayout.Position.POS_RIGHT, 0.0F, true, null),
new VROptionLayout(VRSettings.VrOptions.LOW_HEALTH_INDICATOR, VROptionLayout.Position.POS_RIGHT, 7.0F, true, null)
};
Expand All @@ -38,7 +48,7 @@ public class GuiMainVRSettings extends GuiVROptionsBase {
return false;
}, VROptionLayout.Position.POS_RIGHT, 2.0F, true, "gui.cancel"),
new VROptionLayout((button, mousePos) -> {
// this.dataholder.vrSettings.seated = true;
this.dataholder.vrSettings.seated = true;
this.settings.saveOptions();
this.reinit = true;
this.isConfirm = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,13 +456,13 @@ public enum UpdateType implements OptionEnum<UpdateType> {
@SettingField(VrOptions.CHAT_MESSAGE_STENCIL)
public boolean showChatMessageStencil = true;
@SettingField(value = VrOptions.VR_ENABLED, config = "vrEnabled")
public boolean vrEnabled = true;
public boolean vrEnabled = false;
@SettingField(VrOptions.VR_REMEMBER_ENABLED)
public boolean rememberVr = true;
@SettingField(VrOptions.VR_HOTSWITCH)
public boolean vrHotswitchingEnabled = false;
public boolean vrHotswitchingEnabled = true;
@SettingField(value = VrOptions.VR_TOGGLE_BUTTON_VISIBLE, config = "vrToggleButtonEnabled")
public boolean vrToggleButtonEnabled = false;
public boolean vrToggleButtonEnabled = true;
@SettingField(value = VrOptions.VR_SETTINGS_BUTTON_VISIBLE, config = "vrSettingsButtonEnabled")
public boolean vrSettingsButtonEnabled = true;
@SettingField(value = VrOptions.VR_SETTINGS_BUTTON_POSITION, config = "vrSettingsButtonPositionLeft")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ uniform mat4 ProjMat;
out vec2 texCoordinates;
void main() {
gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0);
texCoordinates = vec2(UV0.s, 1.0 - UV0.t);
texCoordinates = UV0;
}

0 comments on commit e96c5f7

Please sign in to comment.