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.


Topics - dalhome3

Pages: [1]
1
Window / Save current Events
« on: August 03, 2016, 08:26:15 am »
Hey,  :)

I'm currently working on a project with a friend and we are both stumped on how we could remember what methods are currently being fired in events. I'm wondering if anyone knows a way to save all the current event methods into an array or delegate variables so that we can switch between two sets of event methods quickly.

The problem with just hard coding the methods is that we don't know what the other methods may be as we are working on an engine so the methods can be user specified.

Thanks

2
Graphics / .net change from Close to Fullscreen
« on: January 21, 2016, 01:04:34 pm »
I'm trying to move from a window to fullscreen my game I can do this successfully using the code
if (e.Code == Keyboard.Key.F11)
{
      fullscreen = !fullscreen
      if (fullscreen)
      {
            renderWindow = new new RenderWindow(new VideoMode(PrimaryScreen.X, PrimaryScreen.Y), "RogueLike 2D " + context.MajorVersion + "." + context.MinorVersion, Styles.Fullscreen, context);
      }
      else
      {
      renderWindow = new new RenderWindow(new VideoMode(1280, 720), "RogueLike 2D " + context.MajorVersion + "." + context.MinorVersion, Styles.Close, context);
      }
}

But I lose all of my setup events when I do this. Is there any other way then re declaring my events?

Pages: [1]
anything