コード例 #1
0
ファイル: SettingsUI.cs プロジェクト: noHero123/auction.mod
 private SettingsUI()
 {
     this.helpf = Helpfunktions.Instance;
     this.mssgprsr = Messageparser.Instance;
     this.recto = Rectomat.Instance;
     this.prcs = Prices.Instance;
     this.crdvwr = Cardviewer.Instance;
     this.srchsvr = Searchsettings.Instance;
     this.sttngs = Settings.Instance;
 }
コード例 #2
0
 private SettingsUI()
 {
     this.helpf    = Helpfunktions.Instance;
     this.mssgprsr = Messageparser.Instance;
     this.recto    = Rectomat.Instance;
     this.prcs     = Prices.Instance;
     this.crdvwr   = Cardviewer.Instance;
     this.srchsvr  = Searchsettings.Instance;
     this.sttngs   = Settings.Instance;
 }
コード例 #3
0
        public AuctionMod()
        {
            pppmngr = PopupManager.Instance;
            vc      = new VersionCheck();
            DateTime itze = DateTime.Now;

            helpf = Helpfunktions.Instance;
            helpf.ownmodfolder = this.OwnFolder() + System.IO.Path.DirectorySeparatorChar;
            helpf.setOwnAucPath(this.OwnFolder() + System.IO.Path.DirectorySeparatorChar + "auc" + System.IO.Path.DirectorySeparatorChar);
            sttngs    = Settings.Instance;
            srchsvr   = Searchsettings.Instance;
            crdvwr    = Cardviewer.Instance;
            prcs      = Prices.Instance;
            recto     = Rectomat.Instance;
            mssgprsr  = Messageparser.Instance;
            ahui      = AuctionHouseUI.Instance;
            generator = Generator.Instance;
            genui     = GeneratorUI.Instance;
            setui     = SettingsUI.Instance;
            twb       = TradingWithBots.Instance;

            drawsubmenu      = typeof(Store).GetMethod("drawSubMenu", BindingFlags.Instance | BindingFlags.NonPublic);
            chatLogStyleinfo = typeof(ChatUI).GetField("chatMsgStyle", BindingFlags.Instance | BindingFlags.NonPublic);

            if (Directory.GetFiles(helpf.ownmodfolder, "*.txt").Contains(helpf.ownmodfolder + "settingsauc.txt"))//File.Exists() was slower
            {
                sttngs.loadsettings(helpf.deleteTime);
            }

            Directory.CreateDirectory(helpf.ownaucpath);
            this.aucfiles = Directory.GetFiles(helpf.ownaucpath, "*auc.txt");
            if (aucfiles.Contains(helpf.ownaucpath + "wtsauc.txt"))//File.Exists() was slower
            {
                helpf.canLoadWTSmsg = true;
            }
            if (aucfiles.Contains(helpf.ownaucpath + "wtbauc.txt"))//File.Exists() was slower
            {
                helpf.canLoadWTBmsg = true;
            }
            if (aucfiles.Contains(helpf.ownaucpath + "nicauc.txt"))//File.Exists() was slower
            {
                helpf.nicks = true;
            }

            try
            {
                App.Communicator.addListener(this);
            }
            catch
            {
                Console.WriteLine("cant add listener");
            }
            Console.WriteLine("### not an Auction House loaded in " + (DateTime.Now.Subtract(itze)).TotalMilliseconds + " ms ###");
        }
コード例 #4
0
 private AuctionHouseUI()
 {
     this.helpf = Helpfunktions.Instance;
     this.recto = Rectomat.Instance;
     this.prcs = Prices.Instance;
     this.crdvwr = Cardviewer.Instance;
     this.srchsvr = Searchsettings.Instance;
     this.sttngs = Settings.Instance;
     this.ah = AuctionHouse.Instance;
     this.ps = PlayerStore.Instance;
     this.gglthngs = GetGoogleThings.Instance;
 }
コード例 #5
0
ファイル: GeneratorUI.cs プロジェクト: noHero123/auction.mod
        public GeneratorUI()
        {
            this.helpf    = Helpfunktions.Instance;
            this.mssgprsr = Messageparser.Instance;

            this.recto               = Rectomat.Instance;
            this.prcs                = Prices.Instance;
            this.crdvwr              = Cardviewer.Instance;
            this.srchsvr             = Searchsettings.Instance;
            this.sttngs              = Settings.Instance;
            this.generator           = Generator.Instance;
            systemCopyBufferProperty = T.GetProperty("systemCopyBuffer", BindingFlags.Static | BindingFlags.NonPublic);
        }
コード例 #6
0
ファイル: GeneratorUI.cs プロジェクト: noHero123/auction.mod
        public GeneratorUI()
        {
            this.helpf = Helpfunktions.Instance;
            this.mssgprsr = Messageparser.Instance;

            this.recto = Rectomat.Instance;
            this.prcs = Prices.Instance;
            this.crdvwr = Cardviewer.Instance;
            this.srchsvr = Searchsettings.Instance;
            this.sttngs = Settings.Instance;
            this.generator = Generator.Instance;
            systemCopyBufferProperty = T.GetProperty("systemCopyBuffer", BindingFlags.Static | BindingFlags.NonPublic);
        }
コード例 #7
0
ファイル: AuctionMod.cs プロジェクト: noHero123/auction.mod
        public AuctionMod()
        {
            pppmngr = PopupManager.Instance;
            DateTime itze= DateTime.Now;
            helpf = Helpfunktions.Instance;
            helpf.setOwnAucPath(this.OwnFolder() + System.IO.Path.DirectorySeparatorChar + "auc" + System.IO.Path.DirectorySeparatorChar);
            sttngs = Settings.Instance;
            srchsvr = Searchsettings.Instance;
            crdvwr = Cardviewer.Instance;
            prcs = Prices.Instance;
            recto = Rectomat.Instance;
            mssgprsr = Messageparser.Instance;
            ahui = AuctionHouseUI.Instance;
            generator = Generator.Instance;
            genui = GeneratorUI.Instance;
            setui = SettingsUI.Instance;
            
            drawsubmenu = typeof(Store).GetMethod("drawSubMenu", BindingFlags.Instance | BindingFlags.NonPublic);
            chatLogStyleinfo = typeof(ChatUI).GetField("chatMsgStyle", BindingFlags.Instance | BindingFlags.NonPublic);

            Directory.CreateDirectory(helpf.ownaucpath);
            this.aucfiles = Directory.GetFiles(helpf.ownaucpath, "*auc.txt");
            if (aucfiles.Contains(helpf.ownaucpath + "wtsauc.txt"))//File.Exists() was slower
            {
                helpf.canLoadWTSmsg = true;
            }
            if (aucfiles.Contains(helpf.ownaucpath + "wtbauc.txt"))//File.Exists() was slower
            {
                helpf.canLoadWTBmsg = true;
            }
            if (aucfiles.Contains(helpf.ownaucpath + "nicauc.txt"))//File.Exists() was slower
            {
                helpf.nicks = true;
            }

            if (aucfiles.Contains(helpf.ownaucpath + "settingsauc.txt"))//File.Exists() was slower
            {
                sttngs.loadsettings(helpf.ownaucpath,helpf.deleteTime);
            }

            try
            {
                App.Communicator.addListener(this);
            }
            catch 
            {
                Console.WriteLine("cant add listener");
            }
            Console.WriteLine("### not an Auction House loaded in "+(DateTime.Now.Subtract(itze)).TotalMilliseconds + " ms ###");
        }