public VR_GUI(VRConnector vr, string user, string host, string session, Bike bike = null) { InitializeComponent(); ConnLabel.Text = string.Format($"Connected to {user}@{host} with session {session}"); this.vr = vr; this.bike = bike; panel = new VRPanel(vr); MaximizeBox = false; FormBorderStyle = FormBorderStyle.FixedDialog; loadNodes(); }
/// <summary> /// a bruteforcer specific for the VR /// </summary> /// <param name="vrConnector"></param> /// <param name="bruteForce"></param> /// <param name="session"></param> /// <param name="threads"></param> public VRBruteForcer(VRConnector vrConnector, BruteForce bruteForce, string session, int threads = 10) { this.bruteForce = bruteForce; vr = vrConnector; this.threads = threads; this.session = session; for (var i = 0; i < threads; i++) { new Thread(tryNextKey).Start(); } }
public VRSceneHandler(VRConnector vr, Bike bike) { sceneLoaded = false; this.bike = bike; this.vr = vr; newMessage = " "; VRr = new VRRoute(vr); node = new VRNode(vr); panel = new VRPanel(vr); VRtime = new VRTime(vr); }
/// <summary> /// Starts the main program and the GUI /// </summary> /// <param name="args"></param> private static void Main(string[] args) { var vr = new VRConnector("145.48.6.10", 6666); var vrConnectorGui = new VRConnector_GUI(vr); Application.EnableVisualStyles(); vrConnectorGui.Show(); vrConnectorGui.Activate(); vrConnectorGui.Visible = true; vrConnectorGui.Show(); vrConnectorGui.SetDesktopLocation(0, 0); Application.Run(vrConnectorGui); }
public VRConnector_GUI(VRConnector vrConnector, bool showConnGUI = true) { vr = vrConnector; isAlreadyRunning = true; MaximizeBox = false; FormBorderStyle = FormBorderStyle.FixedDialog; InitializeComponent(); refresh(true); showconnGUI = showConnGUI; ConnectionList.DoubleClick += selected; panel1.MouseClick += showSecret; }
/// <summary> /// constructor of VRTerrain /// </summary> /// <param name="vr">VRConnector vr</param> /// <param name="node">VRNode node</param> /// <param name="width">int width : the width of the map !must be the same width as heightPath.width() </param> /// <param name="length">int length : the height of the map !must be the same width as heightPath.height()</param> /// <param name="heightPath"> /// string heightPath : the filepath to the image from where the height of the map can be /// determent /// </param> /// <param name="terrainPath">string terainPath : the filepath to the terrain file</param> /// <param name="normalPath">string normalPath : the filepath to the the normal terein texture</param> /// <param name="minHeight">int minHeight : the minimum height from where the texture should be applied</param> /// <param name="maxHeight">int maxHeight : the maximum height from where the texture should be applied</param> public VRTerrain(VRConnector vr, VRNode node, int width, int length, string heightPath, string terrainPath, string normalPath, int minHeight, int maxHeight) { node.deletePlane(); this.vr = vr; this.width = width; this.length = length; addTerrain(generateHeights(heightPath)); addTerrainRenderer(); //Thread.Sleep(2000); //Console.WriteLine(string.Join(",",node.parseAllnodes())); //Thread.Sleep(2000); addLayer(node.getUUID("terrainrenderer"), terrainPath, normalPath, minHeight, maxHeight); }
public SceneSelector(VRConnector vr, Bike bike) { updateTimer = new Timer(); progress = null; this.bike = bike; InitializeComponent(); string[] stringSeparators = { "bin" }; var dir = Environment.CurrentDirectory.Split(stringSeparators, StringSplitOptions.None); path = dir[0] + @"scenes\"; minButtonSize = new Size(50, 25); this.vr = vr; button2.Enabled = false; MaximizeBox = false; FormBorderStyle = FormBorderStyle.FixedDialog; }
public VRPanel(VRConnector vr) { this.vr = vr; }
/// <summary> /// Initializes a new instance of the <see cref="VRTime" /> class. /// </summary> /// <param name="vr">The vr</param> public VRTime(VRConnector vr) { this.vr = vr; }
public VRRoute(VRConnector vr) { this.vr = vr; routeID = null; routeNodes = new List <Dictionary <string, object> >(); }
public VRNode(VRConnector vr) { this.vr = vr; }