Пример #1
0
        private void DoSettingUpdate()
        {
            foreach (LevelToolWindow ltw in mParent.GetAllOpenLevelToolWindows())
            {
                LevelEditor editor = ltw.LevelEditor;

                //editor.GridShowing = Settings.ShowGrid;
                //editor.GridSnap = (Settings.SnapToGrid & Settings.ShowGrid);
                //editor.GridSize = Settings.GridSize;
                //editor.GridSnapThreshold = Settings.SnapThreshold;

                editor.UpdateRedraw();
            }
        }
Пример #2
0
        private void mList_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (mSuspendChangeEvent)
            {
                return;
            }

            mEditor.SelectedEntries.Clear();
            foreach (int i in mList.SelectedIndices)
            {
                mEditor.SelectedEntries.Add(mEditor.Level.Entries[i]);
            }

            mEditor.UpdateRedraw();
        }