public virtual void Start(GameMode mode) { if (AssetDirectory != "") { Images = LoadAssets(AssetDirectory, filePath => new Bitmap(filePath), "bmp gif exif jpg png tiff".Split()); } UiElements = new Dictionary <string, UiElement>(); LastMouseUpArgs = null; MouseUpListener = new MouseEventHandler((_, args) => LastMouseUpArgs = args); StaticMouse.AddMouseUpListener(MouseUpListener); }
public void Start(GameMode mode) { StaticDisplay.AddResizeListener(Resize); StaticMouse.AddMouseDownListener(MouseDown); StaticMouse.AddMouseUpListener(MouseUp); StaticMouse.AddMouseWheelListener(MouseWheel); StaticKeyboard.AddKeyDownListener(KeyDown); StaticKeyboard.AddKeyUpListener(KeyUp); ChangeScreen(GuiGameMenu); }