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