Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Gonzilla

Pages: [1] 2
1
DotNet / Re: My situation with events
« on: August 16, 2013, 10:48:52 am »
I hope you have planned a "deregister" method to remove the event handlers otherwise you'll get memory leaks after some time.  ;)

2
DotNet / Re: Keyboard.IsKeyPressed: How to detect 'dead' keys?
« on: June 13, 2012, 09:37:25 am »
Ah okay, already reported  ;) Maybe this article help you with this problem http://www.luminance.org/blog/gruedorf/2009/08/14/supporting-alternate-keyboard-layouts-in-xna-games. Although it is about XNA but maybe it helps.

3
DotNet / Re: Keyboard.IsKeyPressed: How to detect 'dead' keys?
« on: June 13, 2012, 09:21:21 am »
@Laurent:
In many games you can show a game console with that key. I would like to have a such functionality in my game too.

@eXpl0it3r:
I use the QWERTZ / german layout.

But I see "the problem":
http://en.wikipedia.org/wiki/Keyboard_layout#United_States the key is tilde
http://en.wikipedia.org/wiki/Keyboard_layout#Austria_and_Germany the key is circumflex

This explaine why it work with some games, but how they are "transforming" the keys that they work with us and german layout?

4
DotNet / Keyboard.IsKeyPressed: How to detect 'dead' keys?
« on: June 12, 2012, 04:00:33 pm »
How can I detect if the user press the circumflex-key [^]?

When I press the [^]-Key I got following Code:
{[KeyEventArgs] Code(BackSlash) Alt(False) Control(False) Shift(False) System(False)}

The other dead keys like the ยด (LBrackets) and ` (RBrackets) working fine.

5
DotNet / Re: Transform... a class? or maybe an struct?
« on: May 11, 2012, 03:25:08 pm »
Structures can only inherit from interfaces and by default they have a internal constructor that initialize the members to their default value.

public struct DemoStruct
{
    private Vector2f Position;
}

DemoStruct demo = new DemoStruct();
//demo.Position is {[Vector2f] X(0) Y(0)}

Constructor with parameters:
public struct DemoStruct
{
    private Vector2f Position;

    public DemoStruct(Vector2f position) :this()
    {
        Position = position;
    }
}

6
DotNet / Re: Image constructor crash
« on: May 11, 2012, 11:15:59 am »
Yes please. In .NET every exception is nicer than an immediate close/crash of the application ;)

7
DotNet / Re: Image constructor crash
« on: May 11, 2012, 10:55:08 am »
Also I found a bug in the Image class.

var colors = new Color[2,2];
colors[0, 0] = Color.Red;
colors[0, 1] = Color.Yellow;
colors[1, 0] = Color.Green;
colors[1, 1] = Color.Black;

var image = new Image(colors);

//Working
var pixel = image.GetPixel(0, 1);
//Crash without any message because it's out of bound
var pixel2 = image.GetPixel(0, 2);

//Working
image.SetPixel(0, 1, Color.White);

//Crash without any message because it's out of bound
image.SetPixel(0, 2, Color.White);
 

8
DotNet / Image constructor crash
« on: May 10, 2012, 10:20:33 pm »
Image img = new Image(0,0); //crash without any error message
Image img = new Image(0,0, Color.Red); //crash without any error message
Image img = new Image(0,0, null); //working
 

9
DotNet / Re: Dual monitors: Fullscreen push away windows
« on: May 10, 2012, 12:05:30 pm »
Oh I didn't now that. Thanks for the explanation.

10
DotNet / Re: Display errors with text/font
« on: May 10, 2012, 11:20:08 am »
What if you use another font than the default one?

Also I see sf::Font is kind of buggy, missing characters, displaying noise on the edges crashing SFML with default font...
Is there no way that would make this all go away?

I have tested different kind of fonts (Arial, Comic Sans, Verdana, ...) and all have the problems. For simplicity I use the default font.

11
DotNet / Re: Dual monitors: Fullscreen push away windows
« on: May 10, 2012, 11:05:33 am »
@eXpl0it3r
Why no question? I think this is a bug. The window go to fullscreen on the monitor I start the application, that's not the bug. The bug I think is that the SFML window push the Microsoft Windows windows away on the monitor 2.

Following constellation is very interessting:
VideoMode = 640x480 fullscreen => Push windows away
VideoMode = 1024x768 fullscreen => All windows are normal, just one window on the second monitor is resized

12
DotNet / Dual monitors: Fullscreen push away windows
« on: May 10, 2012, 10:33:12 am »
I have a dual monitor and when I set fullscreen, the SFML window (Monitor 1) push all the other windows on the other monitor (Monitor 2).

When I press WindowsKey + E the explorer normally opens on monitor 1 but after fullscreen it opens on monitor 2!?

Here are my monitor settings. Monitor 1 is the primary monitor.



13
DotNet / Re: Display errors with text/font
« on: May 10, 2012, 09:52:43 am »
Sorry, no message.

14
DotNet / Display errors with text/font
« on: May 10, 2012, 09:41:52 am »
I found a bug with the Text/Font class.

Font size 100 [Working]
var work = new Text("a b c", Font.DefaultFont, 100);
 


Font size 170 [Working but with a dot at character b]
var work = new Text("a b c", Font.DefaultFont, 170);
 


Font size 200 [Not working character b is missing]
var work = new Text("a b c", Font.DefaultFont, 200);
 

15
DotNet / Re: CircleShape Drawing issues (C#)
« on: May 10, 2012, 09:03:07 am »
...use CircleShape(radius, pointCount) or SetPointCount).

I have not recompile SFML and use the RC version.

CircleShape s = new CircleShape();
s.SetPointCount(60); //Doesn't work

CircleShape s = new CircleShape();
s.Radius = 60; //Work
 

Pages: [1] 2