Exemplo 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;
 }
Exemplo 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);
 }
Exemplo 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;
        }
Exemplo 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();
        }
Exemplo n.º 5
0
 public ResizeableBox(UserInput keyboard, Vector2f size, Camera camera)
     : base(keyboard, size, camera)
 {
     keyboard.MouseDown += MouseDownHandler;
     keyboard.MouseUp += MouseUpHandler;
 }
Exemplo n.º 6
0
 public MoveableTextBox(UserInput input, Vector2f size, Camera camera)
     : base(input, size, camera)
 {
 }
Exemplo n.º 7
0
 public TickBox(UserInput input, Camera camera)
     : base(input, new Vector2f(1,1), camera)
 {
     Pressed += ToggleTicked;
 }
Exemplo n.º 8
0
 public ColourTextBox(UserInput input, Vector2f size, Camera camera)
     : base(input, size, camera)
 {
 }
Exemplo n.º 9
0
 public NumberBox(UserInput input, Vector2f size, Camera camera)
     : base(input, size, camera)
 {
 }
Exemplo n.º 10
0
 private MoveablePoint(UserInput keyboard, Vector2f size, Camera camera)
     : base(keyboard, size, camera)
 {
     keyboard.MouseDown += MouseDownHandler;
     keyboard.MouseUp += MouseUpHandler;
 }
Exemplo n.º 11
0
 public MoveablePoint(UserInput keyboard, Camera camera)
     : this(keyboard, new Vector2f(2), camera)
 {
 }