public ShakeEvent(Camera camera, float shakiness, Trigger trigger, ObjectHouse house) : base(trigger) { m_house = house; fx_buffer.SetHUD(camera); m_shakiness = shakiness; }
public FadeEvent(Camera camera, Colour start, Colour end, float duration, Trigger trigger, ObjectHouse house) : base(trigger) { m_house = house; fx_buffer.SetHUD(camera); fx_buffer.SetFading(1f/duration, start, end); }
public TextBox(UserInput input, Vector2f size, Camera camera) : base(input, size, camera) { Contents = new Text(""); if (camera != null) Contents.SetHUD(camera); m_keyboard.KeyDown += AddLetter; }
public GuiItem(UserInput keyboard, Vector2f size, Camera camera) { m_keyboard = keyboard; m_keyboard.MouseDown += MouseClicked; Size = size; backgroundColour = new Colour(1,0.4f,0.4f,0.5f); foregroundColour = new Colour(1,1,1,1); Hidden = false; if (camera != null) SetHUD(camera); Layer = Layer.Normal; Priority = Priority.Front; displayList = Gl.glGenLists(1); Gl.glNewList(1, Gl.GL_COMPILE); ConstantDraw(); Gl.glEndList(); }
public ResizeableBox(UserInput keyboard, Vector2f size, Camera camera) : base(keyboard, size, camera) { keyboard.MouseDown += MouseDownHandler; keyboard.MouseUp += MouseUpHandler; }
public MoveableTextBox(UserInput input, Vector2f size, Camera camera) : base(input, size, camera) { }
public TickBox(UserInput input, Camera camera) : base(input, new Vector2f(1,1), camera) { Pressed += ToggleTicked; }
public ColourTextBox(UserInput input, Vector2f size, Camera camera) : base(input, size, camera) { }
public NumberBox(UserInput input, Vector2f size, Camera camera) : base(input, size, camera) { }
private MoveablePoint(UserInput keyboard, Vector2f size, Camera camera) : base(keyboard, size, camera) { keyboard.MouseDown += MouseDownHandler; keyboard.MouseUp += MouseUpHandler; }
public MoveablePoint(UserInput keyboard, Camera camera) : this(keyboard, new Vector2f(2), camera) { }