示例#1
0
        public override bool onDeleteObject(SimObject objectx)
        {
            Creator.EWCreatorWindow EWCreatorWindow = "EWCreatorWindow";
            SimGroup MissionGroup = "MissionGroup";

            // Don't delete locked objects
            if (objectx["locked"].AsBool())
            {
                return(true);
            }

            if (objectx == EWCreatorWindow["objectGroup"])
            {
                EWCreatorWindow.setNewObjectGroup(MissionGroup);
            }

            // Append it to our list.
            this.undoDeleteList = this.undoDeleteList + '\t' + objectx;

            // We're gonna delete this ourselves in the
            // completion callback.
            return(true);
        }
示例#2
0
        public override void onAddGroupSelected(SimGroup @group)
        {
            Creator.EWCreatorWindow EWCreatorWindow = "EWCreatorWindow";

            EWCreatorWindow.setNewObjectGroup(group);
        }