Пример #1
0
        //PropertiesQueue propRequester;

        public SimObjectsConsole(RadegastInstance instance, CogbotRadegastPlugin plugin)
        {
            this.instance = instance;
            InitializeComponent();
            Plugin     = plugin;
            addObjects = new TaskQueueHandler(plugin.TheBot, "SimObjectsConsole", TimeSpan.Zero, false);
            Disposed  += new EventHandler(frmObjects_Disposed);

            //propRequester = new PropertiesQueue(instance);
            //propRequester.OnTick += new PropertiesQueue.TickCallback(propRequester_OnTick);

            nudRadius.Value         = (decimal)searchRadius;
            nudRadius.ValueChanged += nudRadius_ValueChanged;
            nudRadius.KeyUp        += nudRadius_KeyUp;
            nudRadius.KeyDown      += nudRadius_KeyDown;

            lstPrims.ListViewItemSorter = new SimObjectSorter(client.Self);
            lstPrims.MouseUp           += lstPrims_MouseUp;

            AddObjectType(typeof(SimObjectImpl));
            AddObjectType(typeof(Primitive));
            AddObjectType(typeof(Primitive.ObjectProperties));
            // Callbacks
            client.Network.Disconnected     += Network_OnDisconnected;
            instance.Netcom.ClientConnected += Network_OnConnected;
            if (instance.Netcom.IsLoggedIn)
            {
                RegisterWorldSystemEvents();
            }
            client.Objects.KillObject += Objects_OnObjectKilled;
            //client.Objects.OnObjectProperties += new ObjectManager.ObjectPropertiesCallback(Objects_OnObjectProperties);
            client.Network.SimChanged        += Network_OnCurrentSimChanged;
            client.Avatars.UUIDNameReply     += Avatars_OnAvatarNames;
            instance.State.OnWalkStateCanged += new StateManager.WalkStateCanged(State_OnWalkStateCanged);
        }
Пример #2
0
 public SimUsageContextAction(RadegastInstance radegastInstance, CogbotRadegastPlugin plugin)
     : base(radegastInstance)
 {
     ContextType = typeof(Object);
     Label = "SimUsageContextAction...";
     Plugin = plugin;
 }
 public SimUsageContextAction(RadegastInstance radegastInstance, CogbotRadegastPlugin plugin)
     : base(radegastInstance)
 {
     ContextType = typeof(Object);
     Label = "SimUsageContextAction...";
     Plugin = plugin;
 }
Пример #4
0
 public CommandContextAction(RadegastInstance radegastInstance, CogbotRadegastPlugin plugin)
     : base(radegastInstance)
 {
     ContextType = typeof(Object);
     Label = "commands...";
     Plugin = plugin;
 }
Пример #5
0
 public CommandContextAction(RadegastInstance radegastInstance, CogbotRadegastPlugin plugin)
     : base(radegastInstance)
 {
     ContextType = typeof(Object);
     Label       = "commands...";
     Plugin      = plugin;
 }
Пример #6
0
        //PropertiesQueue propRequester;

        public SimObjectsConsole(RadegastInstance instance, CogbotRadegastPlugin plugin)
        {
            this.instance = instance;
            InitializeComponent();
            Plugin = plugin;
            addObjects = new TaskQueueHandler(plugin.TheBot, "SimObjectsConsole", TimeSpan.Zero, false);
            Disposed += new EventHandler(frmObjects_Disposed);

            //propRequester = new PropertiesQueue(instance);
            //propRequester.OnTick += new PropertiesQueue.TickCallback(propRequester_OnTick);

            nudRadius.Value = (decimal)searchRadius;
            nudRadius.ValueChanged += nudRadius_ValueChanged;
            nudRadius.KeyUp += nudRadius_KeyUp;
            nudRadius.KeyDown += nudRadius_KeyDown;

            lstPrims.ListViewItemSorter = new SimObjectSorter(client.Self);
            lstPrims.MouseUp += lstPrims_MouseUp;

            AddObjectType(typeof (SimObjectImpl));
            AddObjectType(typeof(Primitive));
            AddObjectType(typeof(Primitive.ObjectProperties));
            // Callbacks
            client.Network.Disconnected += Network_OnDisconnected;
            instance.Netcom.ClientConnected += Network_OnConnected;
            if (instance.Netcom.IsLoggedIn)
            {
                RegisterWorldSystemEvents();
            }
            client.Objects.KillObject +=  Objects_OnObjectKilled;
            //client.Objects.OnObjectProperties += new ObjectManager.ObjectPropertiesCallback(Objects_OnObjectProperties);
            client.Network.SimChanged +=  Network_OnCurrentSimChanged;
            client.Avatars.UUIDNameReply += Avatars_OnAvatarNames;
            instance.State.OnWalkStateCanged += new StateManager.WalkStateCanged(State_OnWalkStateCanged);
        }
Пример #7
0
 public AspectContextAction(RadegastInstance radegastInstance, CogbotRadegastPlugin plugin)
     : base(radegastInstance)
 {
     ContextType = typeof (Object);
     Label = "cogbot...";
     Client.Network.LoginProgress += aspectLogin;
     Plugin = plugin;
 }
 public AspectContextAction(RadegastInstance radegastInstance, CogbotRadegastPlugin plugin)
     : base(radegastInstance)
 {
     ContextType = typeof(Object);
     Label       = "cogbot...";
     Client.Network.LoginProgress += aspectLogin;
     Plugin = plugin;
 }
Пример #9
0
        public CogbotTabWindow(RadegastInstance instance, CogbotRadegastPlugin man)
        {
            InitializeComponent();
            this.instance = instance;
            Disposed     += new EventHandler(ChatConsole_Disposed);

            if (!instance.advancedDebugging)
            {
//                tbtnAnim.Visible = false;
//              tbtnTextures.Visible = false;

                ctxAnim.Visible     = false;
                ctxTextures.Visible = false;
            }

            ctxAnim.Visible     = true;
            ctxTextures.Visible = true;
            writeLock           = new TaskQueueHandler(man.TheBot, "FormWriter", TimeSpan.Zero, false);


            // Callbacks
            netcom.ClientLoginStatus += new EventHandler <LoginProgressEventArgs>(netcom_ClientLoginStatus);
            //netcom.ClientLoggedOut += new EventHandler(netcom_ClientLoggedOut);
            //  netcom.ChatReceived += new EventHandler<ChatEventArgs>(netcom_ChatReceived);
            //netcom.InstantMessageReceived += new EventHandler<InstantMessageEventArgs>(netcom_InstantMessageReceived);
            //this.instance.Config.ConfigApplied += new EventHandler<ConfigAppliedEventArgs>(Config_ConfigApplied);
            // client.Grid.OnCoarseLocationUpdate += new GridManager.CoarseLocationUpdateCallback(Grid_OnCoarseLocationUpdate);
            //client.Avatars.OnAvatarProperties += new AvatarManager.AvatarPropertiesCallback(Avatars_OnAvatarProperties);

            // movement = new SleekMovement(client);
            printer     = new RichTextBoxPrinter(rtbChat);
            chatManager = man;
            //chatManager.PrintStartupMessage();

            this.instance.MainForm.Load += new EventHandler(MainForm_Load);
            this.VisibleChanged         += Form_VisibleChanged;

            simObjectSorterClass          = new SimObjectSorterClass();
            lvwObjects.ListViewItemSorter = simObjectSorterClass;

            //Alice = new AIMLbot.Bot();
            //Alice.isAcceptingUserInput = false;

            //try {
            //    Alice.loadSettings();
            //    AIMLbot.Utils.AIMLLoader loader = new AIMLbot.Utils.AIMLLoader(Alice);
            //    Alice.isAcceptingUserInput = false;
            //    loader.loadAIML(Alice.PathToAIML);
            //    Alice.isAcceptingUserInput = true;
            //} catch (Exception ex) {
            //    System.Console.WriteLine("Failed loading ALICE: " + ex.Message);
            //}
            //instance.Client.Self.Movement.UseOnlyThreads.Add(Thread.CurrentThread);
            // ApplyConfig(this.instance.Config.CurrentConfig);
            //ClientManager.SingleInstance.Clients[]
            //BotClien.OnlyOneCurrentBotClient
            this.cbxInput.Enabled = true;
        }
 public CogbotRadegastInterpreter(CogbotRadegastPlugin manager)
 {
     cogbotRadegastPlugin = manager;//
     //clientManager = manager;
     //botClient = manager.LastBotClient;
 }
Пример #11
0
 public CommandContextMenu(RadegastInstance radegastInstance, CogbotRadegastPlugin plugin) : base(radegastInstance,plugin)
 {
     Enabled = true;
 }
Пример #12
0
        public CogbotTabWindow(RadegastInstance instance, CogbotRadegastPlugin man)
        {
            InitializeComponent();
            this.instance = instance;
            Disposed += new EventHandler(ChatConsole_Disposed);

            if (!instance.advancedDebugging)
            {
//                tbtnAnim.Visible = false;
  //              tbtnTextures.Visible = false;

                ctxAnim.Visible = false;
                ctxTextures.Visible = false;
            }

            ctxAnim.Visible = true;
            ctxTextures.Visible = true;
            writeLock = new TaskQueueHandler(man.TheBot, "FormWriter", TimeSpan.Zero, false);


            // Callbacks
            netcom.ClientLoginStatus += new EventHandler<LoginProgressEventArgs>(netcom_ClientLoginStatus);
            //netcom.ClientLoggedOut += new EventHandler(netcom_ClientLoggedOut);
            //  netcom.ChatReceived += new EventHandler<ChatEventArgs>(netcom_ChatReceived);
            //netcom.InstantMessageReceived += new EventHandler<InstantMessageEventArgs>(netcom_InstantMessageReceived);
            //this.instance.Config.ConfigApplied += new EventHandler<ConfigAppliedEventArgs>(Config_ConfigApplied);
            // client.Grid.OnCoarseLocationUpdate += new GridManager.CoarseLocationUpdateCallback(Grid_OnCoarseLocationUpdate);
            //client.Avatars.OnAvatarProperties += new AvatarManager.AvatarPropertiesCallback(Avatars_OnAvatarProperties);

            // movement = new SleekMovement(client);
            printer = new RichTextBoxPrinter(rtbChat);
            chatManager = man;
            //chatManager.PrintStartupMessage();

            this.instance.MainForm.Load += new EventHandler(MainForm_Load);
            this.VisibleChanged += Form_VisibleChanged;

            simObjectSorterClass = new SimObjectSorterClass();
            lvwObjects.ListViewItemSorter = simObjectSorterClass;

            //Alice = new AIMLbot.Bot();
            //Alice.isAcceptingUserInput = false;
            
            //try {
            //    Alice.loadSettings();
            //    AIMLbot.Utils.AIMLLoader loader = new AIMLbot.Utils.AIMLLoader(Alice);
            //    Alice.isAcceptingUserInput = false;
            //    loader.loadAIML(Alice.PathToAIML);
            //    Alice.isAcceptingUserInput = true;
            //} catch (Exception ex) {
            //    System.Console.WriteLine("Failed loading ALICE: " + ex.Message);
            //}
            //instance.Client.Self.Movement.UseOnlyThreads.Add(Thread.CurrentThread);
           // ApplyConfig(this.instance.Config.CurrentConfig);
            //ClientManager.SingleInstance.Clients[]
            //BotClien.OnlyOneCurrentBotClient
            this.cbxInput.Enabled = true;
        }
 public CogbotRadegastInterpreter(CogbotRadegastPlugin manager)
 {
     cogbotRadegastPlugin = manager;//
     //clientManager = manager;
     //botClient = manager.LastBotClient;
 }
Пример #14
0
 public CommandContextMenu(RadegastInstance radegastInstance, CogbotRadegastPlugin plugin) : base(radegastInstance, plugin)
 {
     Enabled = true;
 }