internal void HandleMouseDown(MouseEventArgs e) { if (CaptureTool != null) { MouseEventArgs args = ConvertMouseEventArgs(e, CurrentPane); CaptureTool.HandleMouseDown(args); } else { CurrentPane = FindPane(e.X, e.Y); MouseEventArgs args2 = ConvertMouseEventArgs(e, CurrentPane); if (!PaneFrameTool.HandleMouseDown(args2)) { foreach (InteractivityTool tool in List) { if (tool.Enabled) { tool.HandleMouseDown(args2); if (CaptureTool != null) { break; } } } } } }
protected override void OnDragComplete(Vector3 downPos, Vector3 upPos) { Vector2 regularizedPos1 = GetRegularizedPos(Vector2.Min(downPos, upPos), true); Vector2 regularizedPos2 = GetRegularizedPos(Vector2.Max(downPos, upPos), false); AttackTool.MarkForAttack(regularizedPos1, regularizedPos2, false); CaptureTool.MarkForCapture(regularizedPos1, regularizedPos2, false); }
/// <summary> /// Returns captureTool for the specified ActorHQ, null if not present /// </summary> /// <param name="actorHQ"></param> /// <returns></returns> public CaptureTool GetCaptureTool(ActorHQ actorHQ) { CaptureTool tool = null; switch (actorHQ) { case ActorHQ.Boss: tool = innocence_0; break; case ActorHQ.SubBoss1: tool = innocence_1; break; case ActorHQ.SubBoss2: tool = innocence_2; break; case ActorHQ.SubBoss3: tool = innocence_3; break; default: Debug.LogWarningFormat("Unrecognised actorHQ \"{0}\"", actorHQ); break; } return(tool); }
// // - - - Capture Tools // /// <summary> /// Returns captureTool for the specific innocence level, null if not present /// </summary> /// <param name="innocenceLevel"></param> /// <returns></returns> public CaptureTool GetCaptureTool(int innocenceLevel) { CaptureTool tool = null; switch (innocenceLevel) { case 0: tool = innocence_0; break; case 1: tool = innocence_1; break; case 2: tool = innocence_2; break; case 3: tool = innocence_3; break; default: Debug.LogWarningFormat("Unrecognised innocenceLevel \"{0}\"", innocenceLevel); break; } return(tool); }
private void HookIntoLocalUISystems() { if (hasAuthority) { playerAtThisComputer = ClientInstance.ReturnClientInstance(); uim = FindObjectOfType <UIManager>(); shiftKnob = uim.GetShiftKnob(playerAtThisComputer); uim.GetShiftPositions(playerAtThisComputer, out gearShiftPositions[0], out gearShiftPositions[1], out gearShiftPositions[2]); tpd = uim.GetTPD(playerAtThisComputer); iff = GetComponent <IFF>(); int myIFF = playerAtThisComputer.GetComponent <FactionLeader>().GetMasterIFFAllegiance(); iff.SetIFFAllegiance(myIFF); flagImage = uim.GetFlagUIElement(playerAtThisComputer); flagImage.sprite = am.GetFlagOfAllegiance(myIFF); tm = playerAtThisComputer.GetComponent <TurretMaker>(); ct = GetComponentInChildren <CaptureTool>(); } }
static void Main(string[] args) { CaptureTool runCaptureTool = new CaptureTool(); /*Console.WriteLine(Session.UtilityTools.CheckPath(Context.windowMapLocation)); * * foreach (var x in Session.WindowRoutes) * { * Console.WriteLine($"Key: {x.Key}"); * * Console.WriteLine($"Value: {x.Value.label}"); * * * } * * Console.ReadKey(); */ }
protected CaptureTool.CaptureResult Capture() { Camera _camera = this.camera == null ? Camera.main : this.camera; int[] gameViewResolution = GetGameViewResolution(); int _imageWidth = (int)((this.imageWidth == 0 ? gameViewResolution[0] : this.imageWidth) * this.imageScale); int _imageHeight = (int)((this.imageHeight == 0 ? gameViewResolution[1] : this.imageHeight) * this.imageScale); CaptureTool.CaptureResult result = CaptureTool.Capture(_camera, textureFormat, outputFileExtension, _imageWidth, _imageHeight, this.clearBack, this.outputDirectory, this.outputFileName + this.outputFileNameIndex.ToString()); if (result.success) { this.ShowNotification(new GUIContent("SUCCESS : " + result.outputPath)); this.outputFileNameIndex++; } else { if (camera == null) { this.ShowNotification(new GUIContent("ERROR : " + "Camera in null (also MainCamera is null)")); } else { this.ShowNotification(new GUIContent("ERROR : " + result.outputPath)); } } return(result); }
public void SetCapturer(CaptureTool captool) { capturer = captool; }
public void ResetCaptureStatus() { isCaptured = false; timeSpentCapturing = 0; capturer = null; }
void friend_RequestShare(CaptureTool.StartShareEventArgs e) { OnRequestShare(e); }