public static void xPosTextBoxLoseFocus(FRB.Gui.Window callingWindow) { if(gameData.currentEmitter == null) return; gameData.currentEmitter.x = (float)System.Convert.ToDouble( ((TextBox)callingWindow).text); gameData.updateMarkerPosition(); }
public static void rotZFixedOrRangeItemClick(FRB.Gui.Window callingWindow) { //if(gameData.currentEmitter == null) return; //if( ((ComboBox)callingWindow).text == "Fixed") // gameData.currentEmitter.RotZRange = false; //else // gameData.currentEmitter.RotZRange = true; }
public static void wedgeOrFullItemClick(FRB.Gui.Window callingWindow) { //if(gameData.currentEmitter == null) return; //gameData.currentEmitter.OutwardVelocityStyle = guiData.propWindow.wedgeOrFull.text; }
public static void outwardVelocityTextBoxMaxLoseFocus(FRB.Gui.Window callingWindow) { //if(gameData.currentEmitter == null) return; //gameData.currentEmitter.MaxOutwardVelocity = (float)(System.Convert.ToDouble((( TextBox)callingWindow).text)); //guiData.propWindow.outwardVelocityTextBox.text = gameData.currentEmitter.MinOutwardVelocity.ToString(); }
public static void outwardVelocityRangeOrFixedItemClicked(FRB.Gui.Window callingWindow) { //if(gameData.currentEmitter == null) return; //if( ((ComboBox)callingWindow).text == "Range") // gameData.currentEmitter.OutwardVelocityRange = true; }
public static void velocityLossTextBoxLoseFocus(FRB.Gui.Window callingWindow) { //if(gameData.currentEmitter == null) return; //gameData.currentEmitter.Drag = (float)(System.Convert.ToDouble(((TextBox)callingWindow).text)); }
public static void zAccelerationTypeSelectItem(FRB.Gui.Window callingWindow) { //if(gameData.currentEmitter == null) return; //if( ((ComboBox)callingWindow).text == "Range") // gameData.currentEmitter.ZAccelerationRange = true; //else // gameData.currentEmitter.ZAccelerationRange = false; }
public static void spreadStyleComboBoxItemClick(FRB.Gui.Window callingWindow) { //if(gameData.currentEmitter == null) // return; //gameData.currentEmitter.SpreadStyle = ((ComboBox)callingWindow).text; }
public static void regularBlendClick(FRB.Gui.Window callingWindow) { if(gameData.currentEmitter == null) return; gameData.currentEmitter.ParticleBlueprint.blend = Sprite.BlendTypes.REGULAR; }
public static void subtractColorOpClick(FRB.Gui.Window callingWindow) { if(gameData.currentEmitter == null) return; gameData.currentEmitter.ParticleBlueprint.colorOperation = Microsoft.DirectX.Direct3D.TextureOperation.Subtract; }
public static void fadeRateTextBoxLoseFocus(FRB.Gui.Window callingWindow) { if(gameData.currentEmitter == null) return; gameData.currentEmitter.ParticleBlueprint.fadeRate = (float)System.Convert.ToDouble(((UpDown)callingWindow).CurrentValue); }
public static void tintGreenRateChange(FRB.Gui.Window callingWindow) { if(gameData.currentEmitter != null) gameData.currentEmitter.ParticleBlueprint.tintGreenRate = (float)System.Convert.ToDouble(((UpDown)callingWindow).CurrentValue); }
public static void colorOperationWindowClose(FRB.Gui.Window callingWindow) { guiData.propWindow.particleColorOperations.Unpress(); }
public static void lastingTimeTextBoxLoseFocus(FRB.Gui.Window callingWindow) { if(gameData.currentEmitter == null) return; gameData.currentEmitter.SecondsLasting = (float)System.Convert.ToDouble(((TextBox)callingWindow).text); }
public static void removalEventComboBoxItemClick(FRB.Gui.Window callingWindow) { if(gameData.currentEmitter == null) return; string itemString = ((ComboBox)callingWindow).text; if(itemString == "Fade out") gameData.currentEmitter.RemovalEvent = Emitter.RemovalEventType.Fadeout; else if(itemString == "Out of screen") gameData.currentEmitter.RemovalEvent = Emitter.RemovalEventType.OutOfScreen; else if(itemString == "Timed") gameData.currentEmitter.RemovalEvent = Emitter.RemovalEventType.Timed; else if(itemString == "None") gameData.currentEmitter.RemovalEvent = Emitter.RemovalEventType.None; }
public static void additiveBlendClick(FRB.Gui.Window callingWindow) { if(gameData.currentEmitter == null) return; gameData.currentEmitter.ParticleBlueprint.blend = Sprite.BlendTypes.ALPHAADD; }
public static void spreadAngleTextBoxLoseFocus(FRB.Gui.Window callingWindow) { //if(gameData.currentEmitter == null) return; //gameData.currentEmitter.OutwardVelocitySpread = (float)System.Convert.ToDouble(((TextBox)callingWindow).text); }
public static void modulate2XBlendClick(FRB.Gui.Window callingWindow) { if(gameData.currentEmitter == null) return; gameData.currentEmitter.ParticleBlueprint.blend = Sprite.BlendTypes.MODULATE2X; }
public static void zMaxAccelerationValueLoseFocus(FRB.Gui.Window callingWindow) { //if(gameData.currentEmitter == null) return; //gameData.currentEmitter.MaxZAcceleration = (float)(System.Convert.ToDouble((( TextBox)callingWindow).text)); //guiData.propWindow.zMinAccelerationValue.text = gameData.currentEmitter.MinZAcceleration.ToString(); }
public static void yMaxValueLoseFocus(FRB.Gui.Window callingWindow) { //if(gameData.currentEmitter == null) return; //gameData.currentEmitter.MaxYVelocity = (float) System.Convert.ToDouble(((TextBox)callingWindow).text); //guiData.propWindow.yMinValue.text = gameData.currentEmitter.MinYVelocity.ToString(); }
public static void ySclVelocityTextBoxLoseFocus(FRB.Gui.Window callingWindow) { if(gameData.currentEmitter == null) return; gameData.currentEmitter.ParticleBlueprint.sclYVelocity = (float)(System.Convert.ToDouble(((TextBox)callingWindow).text)); }
public static void zVelocityTypeLoseFocus(FRB.Gui.Window callingWindow) { //if(gameData.currentEmitter == null) return; //if( ((ComboBox)callingWindow).text == "Range") // gameData.currentEmitter.ZVelocityRange = true; //else // gameData.currentEmitter.ZVelocityRange = false; }
public static void rotZMaxTextBoxLoseFocus(FRB.Gui.Window callingWindow) { //if(gameData.currentEmitter == null) return; //gameData.currentEmitter.RotZMax = (float)(System.Convert.ToDouble(((TextBox)callingWindow).text)); //guiData.propWindow.rotZMinTextBox.text = gameData.currentEmitter.RotZMin.ToString(); }
static Offset <FRB> build_body_observation(FlatBufferBuilder b, Vector3 vel, Vector3 ang) { FRB.StartFRB(b); FRB.AddBody(b, FBody.CreateFBody(b, vel.x, vel.y, vel.z, ang.x, ang.y, ang.z)); return(FRB.EndFRB(b)); }