Inheritance: IDisposable
示例#1
0
 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;
 }
示例#2
0
        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" };
        }
示例#3
0
 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";
 }
示例#4
0
文件: BaseFrame.cs 项目: tpb3d/TPB3D
        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);            
        }
示例#5
0
文件: Game.cs 项目: tpb3d/TPB3D
        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);
		}
示例#6
0
文件: BaseDialog.cs 项目: tpb3d/TPB3D
 public BaseDialog(BaseFrameMgr frameMgr, byte windowType, string name, ResultHandlerDelegate resultHandler)
     : base(frameMgr, windowType, name)
 {
     this.resultHandler = resultHandler;
 }
示例#7
0
 public ProgressBar(BaseFrameMgr frameMgr, BaseControl parent)
     : base(frameMgr, parent)
 {
 }
示例#8
0
文件: ScrollBar.cs 项目: tpb3d/TPB3D
        public ScrollBar(BaseFrameMgr frameMgr, BaseControl parent)
            : base(frameMgr, parent)
        {

        }
示例#9
0
文件: Picture.cs 项目: tpb3d/TPB3D
 public Picture(BaseFrameMgr frameMgr, BaseControl parent)
     : base(frameMgr, parent)
 {
 }
示例#10
0
文件: TextBox.cs 项目: tpb3d/TPB3D
 public Textbox(BaseFrameMgr frameMgr, BaseControl parent)
     : base(frameMgr, parent)
 {
 }
示例#11
0
文件: CheckBox.cs 项目: tpb3d/TPB3D
 public CheckBox(BaseFrameMgr frameMgr, BaseControl parent)
     : base(frameMgr, parent)
 {
 }
示例#12
0
文件: DemoWindow.cs 项目: tpb3d/TPB3D
		public DemoWindow(BaseFrameMgr frameMgr) : base (frameMgr, 0, "DemoWindow")
		{
			this.Location = new Point(10 ,10);
			this.Size = new Size(400, 400);				
		}
示例#13
0
文件: ListBox.cs 项目: tpb3d/TPB3D
 public ListBox(BaseFrameMgr frameMgr, BaseControl parent)
     : base(frameMgr, parent)
 {
 }
示例#14
0
文件: Label.cs 项目: tpb3d/TPB3D
 public Label(BaseFrameMgr frameMgr, BaseControl parent)
     : base(frameMgr, parent)
 {
 }
示例#15
0
文件: Button.cs 项目: tpb3d/TPB3D
 public Button(BaseFrameMgr frameMgr, BaseControl parent)
     : base(frameMgr, parent)
 {
 }