예제 #1
0
        public static void Initialize()
        {
            WaterMarkFont = new Font(Drawing.Direct3DDevice,
                                     new FontDescription
            {
                FaceName        = "微软雅黑",
                Height          = 28,
                OutputPrecision = FontPrecision.Default,
                Quality         = FontQuality.Default
            });

            Menu = new Menu("FrozenGJ设置", "Common.FrozenGJ");
            CommonMenu.Instance.AddSubMenu(Menu);

            Info = Menu.AddSubMenu(new Menu("信息设置", "信息设置"));
            Info.AddItem(new MenuItem("水印", "载入屏显示FrozenGJ水印").SetValue(true));
            Info.AddItem(new MenuItem("logo类型", "选择显示的logo的类型").SetValue(new StringList(new[] { "logo1", "logo2" })));
            Info.AddItem(new MenuItem("新闻", "显示FrozenGJ新闻").SetValue(true));
            Info.AddItem(new MenuItem("加群", "点击复制FrozenGJ脚本群号").SetValue(false).DontSave()).ValueChanged += (sender, args) =>
            {
                //System.Diagnostics.Process.Start("http://jq.qq.com/?_wv=1027&k=2EAsP8x");
                //System.Windows.Forms.Clipboard.SetText("FrozenGJ脚本群:10642347");
                //Game.PrintChat("[FrozenGJ]:".ToHtml(Color.RoyalBlue) + "群号已经复制,记得出游戏后添加。FrozenGJ脚本群:10642347".ToUTF8());
            };
            Info.AddItem(new MenuItem("Info0", ""));
            Info.AddItem(new MenuItem("Info1", "版权归属L#,部分代码归代码作者"));

            CustomEvents.Game.OnGameLoad += Game_OnGameLoad;
            Drawing.OnDraw += Drawing_OnDraw;
        }