public ReactiveHud() { mWorldAxesDisplay = new WorldAxesDisplay(); mCurrentObjectHighlight = Polygon.CreateRectangle(1, 1); ShapeManager.AddPolygon(mCurrentObjectHighlight); mCurrentObjectHighlight.Visible = false; }
public static void Initialize() { mWorldAxesDisplay = new WorldAxesDisplay(); mEditingLogic = new EditingLogic(); #if FRB_MDX Form1.TitleText = "AIEditor - Editing unsaved file"; #else FlatRedBallServices.Owner.Text = "AIEditor - Editing unsaved file"; #endif }
public static void Initialize() { #region FRB engine managers and data Camera = GameForm.camera; GameForm.camera.Name = "Main View Camera"; Cursor = GameForm.cursor; #endregion mWorldAxesDisplay = new WorldAxesDisplay(); SpriteManager.Camera.BackgroundColor = System.Drawing.Color.Gray; try { if (System.IO.File.Exists("settings/guiSettings.txt")) { GuiManager.LoadSettingsFromText("settings/guiSettings.txt"); } } catch { // no big deal, just ignore it } tempTargetBoxLayer = SpriteManager.AddLayer(); BoundsCamera = new Camera(FlatRedBallServices.GlobalContentManager); BoundsCamera.Z = -40; BoundsCamera.FieldOfView = (float)System.Math.PI / 4.0f; BoundsCamera.AspectRatio = 4.0f / 3.0f; BoundsCamera.OrthogonalWidth = 800; BoundsCamera.OrthogonalHeight = 600; BoundsCamera.Name = "Bounds Camera"; EditorProperties = new EditorProperties(); sesgMan = new SESpriteGridManager(); sfMan = new SpriteFrameManager(); Camera.FarClipPlane = 3900; Cursor.Initialize(); ModelManager.ModelLightSetup = ModelManager.LightSetup.FullAmbient; }