public override void UpdateDisplayedProperties()
        {
            base.UpdateDisplayedProperties();

            if (mListDisplayWindow != null)
            {
                mListDisplayWindow.UpdateToList();

                if (SelectedObject != null)
                {
                    (SelectedObject as InstructionBlueprintList).InsertionSortAscendingTimeToExecute();
                }
            }

            if (SelectedObject != null && SelectedObject.Count > 0 && InputManager.ReceivingInput != mSetSelectedInstructionTimeUpDown.textBox)
            {
                if (mListDisplayWindow.FloatingChildren.Count == 0 && mListDisplayWindow.GetFirstHighlightedItem() != null)
                {
                    mSetSelectedInstructionTimeUpDown.CurrentValue = (float)(mListDisplayWindow.GetFirstHighlightedObject() as InstructionBlueprint).Time;
                }
                else if (mListDisplayWindow.FloatingChildren.Count == 0)
                {
                    mSetSelectedInstructionTimeUpDown.CurrentValue = (float)(SelectedObject as InstructionBlueprintList)[0].Time;
                }
                else
                {
                    mSetSelectedInstructionTimeUpDown.CurrentValue =
                        (float)((mListDisplayWindow.FloatingChildren[0] as InstructionBlueprintPropertyGrid <Sprite>).SelectedObject as InstructionBlueprint).Time;
                }
            }
        }
示例#2
0
 private static void UpdateListDisplayWindow()
 {
     if (mInstructionListDisplayWindow != null)
     {
         mInstructionListDisplayWindow.UpdateToList();
     }
 }
        void AddAnimationOK(Window callingWindow)
        {
#if !FRB_MDX
            string sourceFile      = ((FileWindow)callingWindow).Results[0];
            string destinationFile = "";
            string extension       = FileManager.GetExtension(sourceFile);

            BuildToolAssociation toolForExtension = GetToolForExtension(extension);

            if (toolForExtension != null)
            {
                destinationFile =
                    FileManager.UserApplicationDataForThisApplication +
                    FileManager.RemovePath(FileManager.RemoveExtension(sourceFile)) + "." + toolForExtension.DestinationFileType;

                toolForExtension.PerformBuildOn(sourceFile, destinationFile, null, null, null);
            }
            else
            {
                destinationFile = sourceFile;
            }


            mAnimationListDisplayWindow.UpdateToList();
#endif
        }
示例#4
0
        public static void Update()
        {
            mAssembliesListDisplayWindow.UpdateToList();

            if (mObjectListDisplayWindow != null)
            {
                mObjectListDisplayWindow.UpdateToList();
            }

            if (mObjectPropertyGrid != null)
            {
                mObjectPropertyGrid.UpdateDisplayedProperties();
            }
        }
        public override void UpdateDisplayedProperties()
        {
            base.UpdateDisplayedProperties();

            if (mListDisplayWindow != null)
            {
                mListDisplayWindow.UpdateToList();
            }

            if (SelectedObject != null && SelectedObject.Count != 0 &&
                InputManager.ReceivingInput != mSetAllInstructionTimeUpDown.textBox)
            {
                mSetAllInstructionTimeUpDown.CurrentValue = (float)SelectedObject[0].TimeToExecute;
            }
        }
示例#6
0
        public void Update()
        {
            #region Update SpriteListBox
            if (SpriteListBox.Visible)
            {
                SpriteListBox.UpdateToList();

                if (SpriteListBox.AreHighlightsMatching(GameData.EditorLogic.CurrentSprites) == false)
                {
                    SpriteListBox.HighlightItem(null, false);
                    foreach (Sprite sprite in GameData.EditorLogic.CurrentSprites)
                    {
                        SpriteListBox.HighlightObject(sprite, true);
                    }
                }
            }
            #endregion

            #region Update ModelListBox

            if (mModelListBox.Visible)
            {
                mModelListBox.UpdateToList();

                if (mModelListBox.AreHighlightsMatching(GameData.EditorLogic.CurrentPositionedModels) == false)
                {
                    mModelListBox.HighlightItem(null, false);
                    foreach (PositionedModel model in GameData.EditorLogic.CurrentPositionedModels)
                    {
                        mModelListBox.HighlightObject(model, true);
                    }
                }
            }
            #endregion

            #region Update TextListBox

            if (mTextListBox.Visible)
            {
                mTextListBox.UpdateToList();

                if (mTextListBox.AreHighlightsMatching(GameData.EditorLogic.CurrentTexts) == false)
                {
                    mTextListBox.HighlightItem(null, false);
                    foreach (Text text in GameData.EditorLogic.CurrentTexts)
                    {
                        mTextListBox.HighlightObject(text, true);
                    }
                }
            }

            #endregion

            #region Update SpriteFrameListBox

            if (SpriteFrameListBox.Visible)
            {
                SpriteFrameListBox.UpdateToList();

                if (SpriteFrameListBox.AreHighlightsMatching(GameData.EditorLogic.CurrentSpriteFrames) == false)
                {
                    SpriteFrameListBox.HighlightItem(null, false);
                    foreach (SpriteFrame spriteFrame in GameData.EditorLogic.CurrentSpriteFrames)
                    {
                        SpriteFrameListBox.HighlightObject(spriteFrame, true);
                    }
                }
            }

            #endregion

            #region Update SpriteGridListBox

            if (SpriteGridListBox.Visible)
            {
                SpriteGridListBox.UpdateToList();

                if (SpriteGridListBox.GetFirstHighlightedObject() != SESpriteGridManager.CurrentSpriteGrid)
                {
                    // Update this if multiple SpriteGrids can ever be selected at once.
                    SpriteGridListBox.HighlightObject(SESpriteGridManager.CurrentSpriteGrid, false);
                }
            }

            #endregion

            #region Update AnimationChainListBox

            if (mAnimationChainListWindow.Visible)
            {
                mAnimationChainListWindow.UpdateToList();
            }

            #endregion
        }
 void UpdateListDisplayWindow(Window callingWindow)
 {
     mListDisplayWindow.UpdateToList();
 }