public PlayerWindow(BaseFrameMgr frameMgr) : base(frameMgr, 0, "Player") { Location = new Point(100, 100); Size = new Size(100, 100); Text = "Player Name"; BorderSize = 0; BackgroundColor = Color.Silver; }
public WaypointWindow(BaseFrameMgr frameMgr) : base(frameMgr, 2, "Waypoint") { Text = "Waypoints"; Location = new Point(75, 75); Size = new Size(100, 50); BorderSize = 1; lstWaypoint.Items = new string[] { "ListItem0", "ListItem1", "ListItem2", "ListItem3", "ListItem4", "ListItem5", "ListItem6", "ListItem7", "ListItem8" }; }
public RadarWindow(BaseFrameMgr frameMgr) : base(frameMgr, 1, "Radar") { BackgroundColor = Color.PaleGoldenrod; BorderColor = Color.PaleGoldenrod; TitleColor = Color.PaleGoldenrod; Location = new Point(200, 200); Size = new Size(100, 100); Text = "Radar"; }
public BaseFrame(BaseFrameMgr frameMgr, byte windowType, string name) : base(frameMgr, null) { this.frameMgr = frameMgr; this.windowType = windowType; this.name = name; TitleColor = BorderColor; this.titleFont = frameMgr.TitleBarFont; this.frameMgr.AddWindow(this); }
public Game() { game = this; this.Width = 800; this.Height = 600; this.Title = "OOGL Example"; this.VSync = VSyncMode.Off; ResourceLocator.RootPath = System.Environment.CurrentDirectory + "/../../../Media/"; ShaderProgram positionColorShader = new ShaderProgram(ResourceLocator.GetFullPath("Shaders/guiColored.vs"), ResourceLocator.GetFullPath("Shaders/guiColored.fs")); ShaderProgram positionTextureShader = new ShaderProgram(ResourceLocator.GetFullPath("Shaders/guiTextured.vs"), ResourceLocator.GetFullPath("Shaders/guiTextured.fs")); this.frameMgr = new BaseFrameMgr(this, positionColorShader, positionTextureShader); this.Keyboard.KeyDown += new EventHandler<KeyboardKeyEventArgs>(Game_KeyDown); this.Keyboard.KeyUp += new EventHandler<KeyboardKeyEventArgs>(Game_KeyUp); this.Mouse.ButtonDown += new EventHandler<MouseButtonEventArgs>(Game_MouseDown); this.Mouse.ButtonUp += new EventHandler<MouseButtonEventArgs>(Game_MouseUp); this.Mouse.Move += new EventHandler<MouseMoveEventArgs>(Game_MouseMove); this.Mouse.WheelChanged += new EventHandler<MouseWheelEventArgs>(Game_WheelChanged); new DemoWindow(this.frameMgr); new PlayerWindow(this.frameMgr); new RadarWindow(this.frameMgr); new WaypointWindow(this.frameMgr); this.frameMgr.LoadWorkspace(); Ms3dLoader.File ms3dFile = new Ms3dLoader.File(ResourceLocator.GetFullPath("Models/Beta_Kamujin/Beta_Kamujin.ms3d")); Sample[] tracks = Sample.Load(ResourceLocator.GetFullPath("Models/Beta_Kamujin/Beta_Kamujin.animations")); ShaderProgram modelShader = new ShaderProgram(ResourceLocator.GetFullPath("Shaders/skeletalAnimation.vs"), ResourceLocator.GetFullPath("Shaders/skeletalAnimation.fs")); this.model = ms3dFile.ToModel(modelShader, tracks); this.controller = new Controller(model); }
public BaseDialog(BaseFrameMgr frameMgr, byte windowType, string name, ResultHandlerDelegate resultHandler) : base(frameMgr, windowType, name) { this.resultHandler = resultHandler; }
public ProgressBar(BaseFrameMgr frameMgr, BaseControl parent) : base(frameMgr, parent) { }
public ScrollBar(BaseFrameMgr frameMgr, BaseControl parent) : base(frameMgr, parent) { }
public Picture(BaseFrameMgr frameMgr, BaseControl parent) : base(frameMgr, parent) { }
public Textbox(BaseFrameMgr frameMgr, BaseControl parent) : base(frameMgr, parent) { }
public CheckBox(BaseFrameMgr frameMgr, BaseControl parent) : base(frameMgr, parent) { }
public DemoWindow(BaseFrameMgr frameMgr) : base (frameMgr, 0, "DemoWindow") { this.Location = new Point(10 ,10); this.Size = new Size(400, 400); }
public ListBox(BaseFrameMgr frameMgr, BaseControl parent) : base(frameMgr, parent) { }
public Label(BaseFrameMgr frameMgr, BaseControl parent) : base(frameMgr, parent) { }
public Button(BaseFrameMgr frameMgr, BaseControl parent) : base(frameMgr, parent) { }