コード例 #1
0
ファイル: Mode.cs プロジェクト: Booser/radegast
        internal Mode(PluginControl pc)
        {
            // One copy of the context menu manager is shared by all conversations.
            if (menu==null)
            {
                menu = new TalkingContextMenu(pc);
            }

            control = pc;

            // Default position right rear
            SessionPosition = new Vector3(-2.0f, -2.0f, 0.0f);
            Title = "Un-named conversation";

            if (BadNameChars == null)
                BadNameChars = new Regex(@"[0-9]+", RegexOptions.IgnoreCase);
        }
コード例 #2
0
ファイル: Mode.cs プロジェクト: tbutiu/radegast
        internal Mode(PluginControl pc)
        {
            // One copy of the context menu manager is shared by all conversations.
            if (menu == null)
            {
                menu = new TalkingContextMenu(pc);
            }

            control = pc;

            // Default position right rear
            SessionPosition = new Vector3(-2.0f, -2.0f, 0.0f);
            Title           = "Un-named conversation";

            if (BadNameChars == null)
            {
                BadNameChars = new Regex(@"[0-9]+", RegexOptions.IgnoreCase);
            }
        }