public virtual void OnMouseMove(object oSender, EPMouseEventArgs eArgs) { if (NWN2AreaViewer.MouseMode == MouseMode.PaintTerrain) { MousePanel panel = oSender as MousePanel; painter.Move(panel); } }
/// <summary> /// The code called when the multibrush is activated. The painter should only work when we are in paint mode and the /// CTRL button is not held down (otherwise it becomes inconvinient for the user to move around). /// </summary> /// <param name="oSender"></param> /// <param name="ctrlDown">Whether the CTRL button is held down</param> public void runTextureCode(object oSender, bool ctrlDown) { MousePanel cPanel = oSender as MousePanel; if (cPanel.ButtonHeld && cPanel.LeftButton && NWN2AreaViewer.MouseMode == MouseMode.PaintTerrain && !ctrlDown) { if (data.mode == paintmode.paint) { TerrianCode(cPanel.MouseX, cPanel.MouseY); } else if (data.mode == paintmode.eyedrop) { eyeDropCode(); } else { makePoint(cPanel.MouseX, cPanel.MouseY); } setOuterInner(this.data); } }
/// <summary> /// This is called when the mousecurser moves around on the area so that we can either /// show the circle normally seen, or stop viewing it /// </summary> /// <param name="panel">The information from the </param> public void Move(MousePanel panel) { areaViewer = getAreaViewer(); if (!panel.ButtonHeld || areaViewer == null || areaViewer.Area == null) { SFX.YATT.Tools.Vector <float> coor = findAreaCoor(panel.MouseX, panel.MouseY, areaViewer.Area); if (coor != null) { showBrush(coor); } else { stopShowingCircle(); } } else { stopShowingCircle(); } }
/// <summary> /// This is called when the mousecurser moves around on the area so that we can either /// show the circle normally seen, or stop viewing it /// </summary> /// <param name="panel">The information from the </param> public void Move(MousePanel panel) { areaViewer = getAreaViewer(); if (!panel.ButtonHeld || areaViewer == null || areaViewer.Area == null) { SFX.YATT.Tools.Vector<float> coor = findAreaCoor(panel.MouseX, panel.MouseY, areaViewer.Area); if (coor != null) { showBrush(coor); } else { stopShowingCircle(); } } else { stopShowingCircle(); } }
public virtual void OnMouseDrag(MousePanel cPanel, ref bool bCancel) { }