Skip to content

Commit

Permalink
Update VRGIN.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eusth committed Feb 14, 2017
1 parent 0032cdb commit 4f1fad8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion HoneySelectVR/HoneySeatedMode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ class HoneySeatedMode : SeatedMode
protected override IEnumerable<IShortcut> CreateShortcuts()
{
return base.CreateShortcuts().Concat(new IShortcut[] {
new MultiKeyboardShortcut(new KeyStroke("Ctrl + C"), new KeyStroke("Ctrl + C"), ChangeModeOnControllersDetected ),
new MultiKeyboardShortcut(VR.Settings.Shortcuts.ChangeMode, ChangeModeOnControllersDetected ),
});
}

protected override void ChangeModeOnControllersDetected()
{

VR.Manager.SetMode<HoneyStandingMode>();
}
protected override void OnLevel(int level)
Expand Down
14 changes: 14 additions & 0 deletions HoneySelectVR/HoneySettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Text;
using System.Xml.Serialization;
using VRGIN.Core;
using VRGIN.Helpers;

namespace HoneySelectVR
{
Expand All @@ -17,5 +18,18 @@ public class HoneySettings : VRSettings
[XmlComment("Blacklist of effects that are to be disable (because they don't look good in VR).")]
public string[] EffectBlacklist { get { return _EffectBlacklist; } set { _EffectBlacklist = value; } }
private string[] _EffectBlacklist = { "BloomAndFlares", "DepthOfField" };

//[XmlElement(Type = typeof(HoneyShortcuts))]
//[XmlComment("Shortcuts used by VRGIN. Refer to https://docs.unity3d.com/ScriptReference/KeyCode.html for a list of available keys.")]
//public override Shortcuts Shortcuts { get { return _Shortcuts; } protected set { _Shortcuts = value; } }
//private Shortcuts _Shortcuts = new HoneyShortcuts();

//[XmlIgnore]
//public HoneyShortcuts HShortcuts { get { return Shortcuts as HoneyShortcuts; } }
}

//public class HoneyShortcuts : Shortcuts
//{
// public XmlKeyStroke ChangeMode = new XmlKeyStroke("Ctrl+C, Ctrl+C", KeyMode.PressUp);
//}
}

0 comments on commit 4f1fad8

Please sign in to comment.