Example #1
0
 //---------------------------------------------------------------------------	HOTSPOT EVENTS
 public void OnHotspotEvent(EHotSpotEvent eHotSpotEvent, object o)
 {
     if (eHotSpotEvent == EHotSpotEvent.ContextMenu)
         _oHotSpot.WndPopup_Create(null, new CObject[] { _oObj });
 }
Example #2
0
 public void OnHotspotEvent(EHotSpotEvent eHotSpotEvent, object o)
 {
     //###IMPROVE: Make this work by clicking on head? _oBody.SelectBody();			// Doing anything with a body's hotspot (head) selects the body
     if (eHotSpotEvent == EHotSpotEvent.ContextMenu)
         _oHotSpot.WndPopup_Create(FindClosestCanvas(), new CObject[] { _oObj /*, _oFace._oObj*/ });		//###TEMP: Face??
 }
Example #3
0
 public void OnHotspotEvent(EHotSpotEvent eHotSpotEvent, object o)
 {
     if (eHotSpotEvent == EHotSpotEvent.Activation) {
         ConnectHandToHandTarget(CGame.GetSelectedBody()._oActor_ArmL);
     } else if (eHotSpotEvent == EHotSpotEvent.Deactivation) {
         ConnectHandToHandTarget(null);
     }
 }
Example #4
0
 public void OnHotspotEvent(EHotSpotEvent eHotSpotEvent, object o)
 {
     //###DESIGN? Currently an interface call... but if only GUI interface occurs through CObject just have cursor directly invoke the GUI_Create() method??
     if (eHotSpotEvent == EHotSpotEvent.ContextMenu)
         _oHotSpot.WndPopup_Create(_oBodyBase._oBody.FindClosestCanvas(), new CObject[] { _oObj });
 }
Example #5
0
 public virtual void OnHotspotEvent(EHotSpotEvent eHotSpotEvent, object o)
 {
     //###DESIGN!!: Do these stubs have any value???
     if (_iHotSpotMgr != null)
         _iHotSpotMgr.OnHotspotEvent(eHotSpotEvent, o);
 }
Example #6
0
 public void OnHotspotEvent(EHotSpotEvent eHotSpotEvent, object o)
 {
     //###BROKEN#11: What GUI does CGame has?  Options??
     //if (eHotSpotEvent == EHotSpotEvent.ContextMenu)
     //	_oHotSpot.WndPopup_Create(_aBodyBases[0], new CObject[] { _oObj });        //###DESIGN: What to do??  ###U
 }
Example #7
0
 //public void OnPropSet_RotX(float nValueOld, float nValueNew) { Vector3 vecEuler = transform.localRotation.eulerAngles; vecEuler.x = nValueNew; transform.localRotation = Quaternion.Euler(vecEuler); }
 //public void OnPropSet_RotY(float nValueOld, float nValueNew) { Vector3 vecEuler = transform.localRotation.eulerAngles; vecEuler.y = nValueNew; transform.localRotation = Quaternion.Euler(vecEuler); }
 //public void OnPropSet_RotZ(float nValueOld, float nValueNew) { Vector3 vecEuler = transform.localRotation.eulerAngles; vecEuler.z = nValueNew; transform.localRotation = Quaternion.Euler(vecEuler); }
 //---------------------------------------------------------------------------	HOTSPOT EVENTS
 public void OnHotspotEvent(EHotSpotEvent eHotSpotEvent, object o)
 {
     //_oBody.SelectBody();			// Manipulating a body's hotspot automatically selects this body.	###CHECK: Hotspot triggers throw this off??
     if (eHotSpotEvent == EHotSpotEvent.ContextMenu)
         _oHotSpot.WndPopup_Create(_oBody.FindClosestCanvas(), new CObject[] { _oObj });
 }