Exemplo n.º 1
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;
 }
Exemplo n.º 2
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;
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 private TradingWithBots()
 {
     this.helpf = Helpfunktions.Instance; 
     this.sttngs = Settings.Instance;
     this.pppmngr = PopupManager.Instance;
     this.ps = PlayerStore.Instance;
     try
     {
         App.Communicator.addListener(this);
     }
     catch 
     {
         Console.WriteLine("cant add listener");
     }
 }
Exemplo n.º 5
0
        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 ###");
        }