public Element(int _positionX, int _positionY, int _sizeX, int _sizeY, WindowManager _WM) { x = _positionX; y = _positionY; sizeX = _sizeX; sizeY = _sizeY; WM = _WM; }
public Window(WindowManager _WM,State _parentState, int _X,int _Y, int _SizeX, int _SizeY,string _Title,BorderType Btype) : base(_X,_Y,_SizeX,_SizeY,_WM) { bordType = Btype; ParentState = _parentState; Widgets = new List<Widget>(); GenerateBorder(); Title = new Text(_Title, WM.font); SetSize(_SizeX, _SizeY); SetPosition(_X, _Y); }
public Game() { RWindow = new RenderWindow(new VideoMode(800, 600),"",Styles.Close); //RWindow.SetFramerateLimit(60); RWindow.MouseMoved += RWindow_MouseMoved; RWindow.KeyPressed += RWindow_KeyPressed; RWindow.KeyReleased += RWindow_KeyReleased; RWindow.MouseButtonPressed += RWindow_MouseButtonPressed; RWindow.MouseButtonReleased += RWindow_MouseButtonReleased; RWindow.MouseLeft += RWindow_MouseLeft; RWindow.MouseEntered += RWindow_MouseEntered; RWindow.MouseWheelMoved += RWindow_MouseWheelMoved; RWindow.TextEntered += RWindow_TextEntered; RWindow.Closed += RWindow_Closed; RWindow.LostFocus += RWindow_LostFocus; RWindow.GainedFocus += RWindow_GainedFocus; MainView = new View(RWindow.DefaultView); RWindow.SetView(MainView); //SM = new UI.ScreenManager(this); WM = new DystopiaUI.WindowManager(this); GameLoop(); }
public State(WindowManager _WM) : base(0,0,0,0, _WM) { }
public Widget(WindowManager _WM, int _X,int _Y, int _SizeX, int _SizeY) : base(_X,_Y,_SizeX,_SizeY, _WM) { }