当前位置: 首页>>代码示例>>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;未经允许,请勿转载。