Exemple #1
0
 public ShakeEvent(Camera camera, float shakiness, Trigger trigger, ObjectHouse house)
     : base(trigger)
 {
     m_house = house;
     fx_buffer.SetHUD(camera);
     m_shakiness = shakiness;
 }
Exemple #2
0
 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);
 }
Exemple #3
0
        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;
        }
Exemple #4
0
        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();
        }
Exemple #5
0
 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)
 {
 }
Exemple #7
0
 public TickBox(UserInput input, Camera camera)
     : base(input, new Vector2f(1,1), camera)
 {
     Pressed += ToggleTicked;
 }
Exemple #8
0
 public ColourTextBox(UserInput input, Vector2f size, Camera camera)
     : base(input, size, camera)
 {
 }
Exemple #9
0
 public NumberBox(UserInput input, Vector2f size, Camera camera)
     : base(input, size, camera)
 {
 }
Exemple #10
0
 private MoveablePoint(UserInput keyboard, Vector2f size, Camera camera)
     : base(keyboard, size, camera)
 {
     keyboard.MouseDown += MouseDownHandler;
     keyboard.MouseUp += MouseUpHandler;
 }
Exemple #11
0
 public MoveablePoint(UserInput keyboard, Camera camera)
     : this(keyboard, new Vector2f(2), camera)
 {
 }