當前位置: 首頁>>代碼示例>>C#>>正文


C# Radegast.RadegastInstance類代碼示例

本文整理匯總了C#中Radegast.RadegastInstance的典型用法代碼示例。如果您正苦於以下問題:C# RadegastInstance類的具體用法?C# RadegastInstance怎麽用?C# RadegastInstance使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


RadegastInstance類屬於Radegast命名空間,在下文中一共展示了RadegastInstance類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: ntfPermissions

        public ntfPermissions(RadegastInstance instance, Simulator simulator, UUID taskID, UUID itemID, string objectName, string objectOwner, ScriptPermission questions)
            : base(NotificationType.PermissionsRequest)
        {
            InitializeComponent();

            this.instance = instance;
            this.simulator = simulator;
            this.taskID = taskID;
            this.itemID = itemID;
            this.objectName = objectName;
            this.objectOwner = objectOwner;
            this.questions = questions;

            txtMessage.BackColor = instance.MainForm.NotificationBackground;
            txtMessage.Text = "Object " + objectName + " owned by " + objectOwner + " is asking permission to " + questions.ToString() + ". Do you accept?";

            // Fire off event
            NotificationEventArgs args = new NotificationEventArgs(instance);
            args.Text = txtMessage.Text;
            args.Buttons.Add(btnYes);
            args.Buttons.Add(btnNo);
            args.Buttons.Add(btnMute);
            FireNotificationCallback(args);

            Radegast.GUI.GuiHelpers.ApplyGuiFixes(this);
        }
開發者ID:nooperation,項目名稱:radegast,代碼行數:26,代碼來源:PermissionsNotification.cs

示例2: Notecard

        public Notecard(RadegastInstance instance, InventoryNotecard notecard, Primitive prim)
        {
            InitializeComponent();
            Disposed += new EventHandler(Notecard_Disposed);

            this.instance = instance;
            this.notecard = notecard;
            this.prim = prim;

            Text = notecard.Name;

            rtbContent.DetectUrls = false;

            if (notecard.AssetUUID == UUID.Zero)
            {
                UpdateStatus("Blank");
            }
            else
            {
                rtbContent.Text = " ";
                UpdateStatus("Loading...");

                if (prim == null)
                {
                    client.Assets.RequestInventoryAsset(notecard, true, Assets_OnAssetReceived);
                }
                else
                {
                    client.Assets.RequestInventoryAsset(notecard.AssetUUID, notecard.UUID, prim.ID, prim.OwnerID, notecard.AssetType, true, Assets_OnAssetReceived);
                }
            }
        }
開發者ID:TooheyPaneer,項目名稱:radegast,代碼行數:32,代碼來源:Notecard.cs

示例3: OutfitTextures

        public OutfitTextures(RadegastInstance instance, Avatar avatar)
        {
            InitializeComponent();

            this.instance = instance;
            this.avatar = avatar;
        }
開發者ID:Nuriat,項目名稱:radegast,代碼行數:7,代碼來源:OutfitTextures.cs

示例4: SimUsageContextAction

 public SimUsageContextAction(RadegastInstance radegastInstance, CogbotRadegastPlugin plugin)
     : base(radegastInstance)
 {
     ContextType = typeof(Object);
     Label = "SimUsageContextAction...";
     Plugin = plugin;
 }
開發者ID:drzo,項目名稱:opensim4opencog,代碼行數:7,代碼來源:SimUsageContextAction.cs

示例5: CycBrowser

        public CycBrowser(RadegastInstance i)
        {
            InitializeComponent();
            Disposed += new EventHandler(frmMap_Disposed);

            instance = i;
            try
            {
                map = new WebBrowser();
                map.Dock = DockStyle.Fill;
                map.AllowWebBrowserDrop = false;
                map.Navigate(cycURL);
                map.WebBrowserShortcutsEnabled = true;
                map.ScriptErrorsSuppressed = false;
                map.ObjectForScripting = this;
                map.AllowNavigation = true;
                if (instance.MonoRuntime)
                {
                    map.Navigating += new WebBrowserNavigatingEventHandler(map_Navigating);
                }
                pnlMap.Controls.Add(map);
            }
            catch (Exception e)
            {
                Logger.Log(e.Message, Helpers.LogLevel.Warning, client, e);
                pnlMap.Visible = false;
                map = null;
            }

            // Register callbacks
            //TODO client.Network.OnCurrentSimChanged += new NetworkManager.CurrentSimChangedCallback(Network_OnCurrentSimChanged);
        }
開發者ID:drzo,項目名稱:opensim4opencog,代碼行數:32,代碼來源:CycBrowser.cs

示例6: DebugConsole

 public DebugConsole(RadegastInstance instance)
     : base(instance)
 {
     InitializeComponent();
     Disposed += new EventHandler(DebugConsole_Disposed);
     RadegastAppender.Log += new EventHandler<LogEventArgs>(RadegastAppender_Log);
 }
開發者ID:Nuriat,項目名稱:radegast,代碼行數:7,代碼來源:DebugConsole.cs

示例7: frmKeyboardShortcuts

        public frmKeyboardShortcuts(RadegastInstance instance)
        {
            InitializeComponent();
            this.instance = instance;

            Radegast.GUI.GuiHelpers.ApplyGuiFixes(this);
        }
開發者ID:nooperation,項目名稱:radegast,代碼行數:7,代碼來源:KeyboardShortcuts.cs

示例8: GroupInvite

        public GroupInvite(RadegastInstance instance, Group group, Dictionary<UUID, GroupRole> roles)
            : base(instance)
        {
            InitializeComponent();
            Disposed += new EventHandler(GroupInvite_Disposed);
            AutoSavePosition = true;

            this.instance = instance;
            this.roles = roles;
            this.group = group;
            this.netcom = instance.Netcom;

            picker = new AvatarPicker(instance) { Dock = DockStyle.Fill };
            Controls.Add(picker);
            picker.SelectionChaged += new EventHandler(picker_SelectionChaged);
            picker.BringToFront();

            netcom.ClientDisconnected += new EventHandler<DisconnectedEventArgs>(Netcom_ClientDisconnected);

            cmbRoles.Items.Add(roles[UUID.Zero]);
            cmbRoles.SelectedIndex = 0;

            foreach (KeyValuePair<UUID, GroupRole> role in roles)
                if (role.Key != UUID.Zero)
                    cmbRoles.Items.Add(role.Value);
        }
開發者ID:RevolutionSmythe,項目名稱:radegast,代碼行數:26,代碼來源:GroupInvite.cs

示例9: LoginConsole

        public LoginConsole(RadegastInstance instance)
        {
            InitializeComponent();
            Disposed += new EventHandler(MainConsole_Disposed);

            this.instance = instance;
            AddNetcomEvents();

            if (instance.GlobalSettings["hide_login_graphics"].AsBoolean())
                pnlSplash.BackgroundImage = null;
            else
                pnlSplash.BackgroundImage = Properties.Resources.radegast_main_screen2;

            if (!instance.GlobalSettings.ContainsKey("remember_login"))
            {
                instance.GlobalSettings["remember_login"] = true;
            }

            instance.GlobalSettings.OnSettingChanged += new Settings.SettingChangedCallback(GlobalSettings_OnSettingChanged);

            lblVersion.Text = Properties.Resources.RadegastTitle + "." + RadegastBuild.CurrentRev;

            Load += new EventHandler(LoginConsole_Load);

            Radegast.GUI.GuiHelpers.ApplyGuiFixes(this);
        }
開發者ID:SignpostMarv,項目名稱:radegast,代碼行數:26,代碼來源:LoginConsole.cs

示例10: CommandContextAction

 public CommandContextAction(RadegastInstance radegastInstance, CogbotRadegastPlugin plugin)
     : base(radegastInstance)
 {
     ContextType = typeof(Object);
     Label = "commands...";
     Plugin = plugin;
 }
開發者ID:drzo,項目名稱:opensim4opencog,代碼行數:7,代碼來源:CommandContextAction.cs

示例11: StartPlugin

        public void StartPlugin(RadegastInstance inst)
        {
            return;
            Instance = inst;
            XmlConfigurator.Configure();

            ArgvConfigSource configSource = new ArgvConfigSource(new string[0]);
            configSource.Alias.AddAlias("On", true);
            configSource.Alias.AddAlias("Off", false);
            configSource.Alias.AddAlias("True", true);
            configSource.Alias.AddAlias("False", false);

            idealistUserControl = new IdealistUserControl();
            IV = new RadegastViewer(inst, configSource, idealistUserControl);
            IV.Startup();
            inst.TabConsole.AddTab("Idealist", "Idealist", idealistUserControl);
            //while (true)
            //{
            //    if (MainConsole.Instance != null)
            //    {
            //        MainConsole.Instance.Prompt();
            //        Thread.Sleep(100);
            //    }
            //}
        }
開發者ID:Booser,項目名稱:radegast,代碼行數:25,代碼來源:IdealistPlugin.cs

示例12: RadegastMovement

 public RadegastMovement(RadegastInstance instance)
 {
     this.instance = instance;
     timer = new System.Timers.Timer(100);
     timer.Elapsed +=new ElapsedEventHandler(timer_Elapsed);
     timer.Enabled = false;
 }
開發者ID:niel,項目名稱:radegast,代碼行數:7,代碼來源:RadegastMovement.cs

示例13: RelayConsole

        public RelayConsole(RadegastInstance instance)
            : base(instance)
        {
            InitializeComponent();
            Disposed += new EventHandler(RelayConsole_Disposed);
            textPrinter = new RichTextBoxPrinter(rtbChatText);

            irc = new IrcClient();
            irc.SendDelay = 200;
            irc.AutoReconnect = true;
            irc.CtcpVersion = Properties.Resources.RadegastTitle;
            irc.Encoding = Encoding.UTF8;

            TC.OnTabAdded += new TabsConsole.TabCallback(TC_OnTabAdded);
            TC.OnTabRemoved += new TabsConsole.TabCallback(TC_OnTabRemoved);
            irc.OnError += new ErrorEventHandler(irc_OnError);
            irc.OnRawMessage += new IrcEventHandler(irc_OnRawMessage);
            irc.OnChannelMessage += new IrcEventHandler(irc_OnChannelMessage);
            irc.OnConnected += new EventHandler(irc_OnConnected);
            irc.OnDisconnected += new EventHandler(irc_OnDisconnected);

            client.Self.IM += new EventHandler<InstantMessageEventArgs>(Self_IM);

            RefreshGroups();
        }
開發者ID:TooheyPaneer,項目名稱:radegast,代碼行數:25,代碼來源:RelayConsole.cs

示例14: ConferenceIMTabWindow

        public ConferenceIMTabWindow(RadegastInstance instance, UUID session, string sessionName)
        {
            InitializeComponent();
            Disposed += new EventHandler(IMTabWindow_Disposed);

            this.instance = instance;
            this.client = instance.Client;
            this.SessionName = sessionName;
            netcom = this.instance.Netcom;

            this.session = session;

            textManager = new IMTextManager(this.instance, new RichTextBoxPrinter(rtbIMText), IMTextManagerType.Conference, this.session, sessionName);

            // Callbacks
            netcom.ClientLoginStatus += new EventHandler<LoginProgressEventArgs>(netcom_ClientLoginStatus);
            netcom.ClientDisconnected += new EventHandler<DisconnectedEventArgs>(netcom_ClientDisconnected);
            instance.GlobalSettings.OnSettingChanged += new Settings.SettingChangedCallback(GlobalSettings_OnSettingChanged);

            if (!client.Self.GroupChatSessions.ContainsKey(session))
            {
                client.Self.ChatterBoxAcceptInvite(session);
            }

            Radegast.GUI.GuiHelpers.ApplyGuiFixes(this);
        }
開發者ID:nooperation,項目名稱:radegast,代碼行數:26,代碼來源:ConferenceIMTabWindow.cs

示例15: AvatarSpeechAction

 public AvatarSpeechAction(RadegastInstance inst, PluginControl pc)
     : base(inst)
 {
     control = pc;
     Label = "Speech...";
     ContextType = typeof(Avatar);
 }
開發者ID:niel,項目名稱:radegast,代碼行數:7,代碼來源:AvatarSpeechAction.cs


注:本文中的Radegast.RadegastInstance類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。