Example #1
0
       private bool setstuffup = false; // because we cant load resources on startup.

       private void setupstuff()
       {
           this.setstuffup = true;
           Helpfunktions.Instance.setskins((GUISkin)ResourceManager.Load("_GUISkins/CardListPopup"), (GUISkin)ResourceManager.Load("_GUISkins/CardListPopupGradient"), (GUISkin)ResourceManager.Load("_GUISkins/CardListPopupBigLabel"), (GUISkin)ResourceManager.Load("_GUISkins/CardListPopupLeftButton"));
           this.srchsvr = Searchsettings.Instance;
           GUISkin gUISkin = (GUISkin)ResourceManager.Load("_GUISkins/Lobby");
           gUIStyle = new GUIStyle(gUISkin.button);
           gUIStyle.normal.background = ResourceManager.LoadTexture("ChatUI/dropdown_arrow");
           GUIStyleState arg_13A_0 = gUIStyle.hover;
           Texture2D background = ResourceManager.LoadTexture("ChatUI/dropdown_arrow_mouseover");
           arg_13A_0.background = background;
           gUIStyle.active.background = background;
           GUISkin buttonSkin = (GUISkin)ResourceManager.Load("_GUISkins/Lobby");
           this.pulldownSkin = ScriptableObject.CreateInstance<GUISkin>();
           this.pulldownSkin.button = new GUIStyle(buttonSkin.button);
           this.pulldownSkin.label = new GUIStyle(buttonSkin.label);
           this.pulldownSkin.button.normal.background = ResourceManager.LoadTexture("ChatUI/button_160a");
           GUIStyle arg_162_0 = this.pulldownSkin.button;
           TextAnchor alignment = TextAnchor.MiddleLeft;
           this.pulldownSkin.label.alignment = alignment;
           arg_162_0.alignment = alignment;
           int num8 = Screen.height / 36;
           this.pulldownSkin.label.fontSize = num8;
           this.pulldownSkin.button.fontSize = num8;

       }
Example #2
0
        private Rectomat()
        {
            this.srchsvr = Searchsettings.Instance;
            GUISkin gUISkin = (GUISkin)Resources.Load("_GUISkins/Lobby");

            gUIStyle = new GUIStyle(gUISkin.button);
            gUIStyle.normal.background = ResourceManager.LoadTexture("ChatUI/dropdown_arrow");
            GUIStyleState arg_13A_0  = gUIStyle.hover;
            Texture2D     background = ResourceManager.LoadTexture("ChatUI/dropdown_arrow_mouseover");

            arg_13A_0.background       = background;
            gUIStyle.active.background = background;

            GUISkin buttonSkin = (GUISkin)Resources.Load("_GUISkins/Lobby");

            this.pulldownSkin        = ScriptableObject.CreateInstance <GUISkin>();
            this.pulldownSkin.button = new GUIStyle(buttonSkin.button);
            this.pulldownSkin.label  = new GUIStyle(buttonSkin.label);
            this.pulldownSkin.button.normal.background = ResourceManager.LoadTexture("ChatUI/button_160a");
            GUIStyle   arg_162_0 = this.pulldownSkin.button;
            TextAnchor alignment = TextAnchor.MiddleLeft;

            this.pulldownSkin.label.alignment = alignment;
            arg_162_0.alignment = alignment;
            int num8 = Screen.height / 36;

            this.pulldownSkin.label.fontSize  = num8;
            this.pulldownSkin.button.fontSize = num8;
        }
Example #3
0
        private bool setstuffup = false; // because we cant load resources on startup.

        private void setupstuff()
        {
            this.setstuffup = true;
            Helpfunktions.Instance.setskins((GUISkin)ResourceManager.Load("_GUISkins/CardListPopup"), (GUISkin)ResourceManager.Load("_GUISkins/CardListPopupGradient"), (GUISkin)ResourceManager.Load("_GUISkins/CardListPopupBigLabel"), (GUISkin)ResourceManager.Load("_GUISkins/CardListPopupLeftButton"));
            this.srchsvr = Searchsettings.Instance;
            GUISkin gUISkin = (GUISkin)ResourceManager.Load("_GUISkins/Lobby");

            gUIStyle = new GUIStyle(gUISkin.button);
            gUIStyle.normal.background = ResourceManager.LoadTexture("ChatUI/dropdown_arrow");
            GUIStyleState arg_13A_0  = gUIStyle.hover;
            Texture2D     background = ResourceManager.LoadTexture("ChatUI/dropdown_arrow_mouseover");

            arg_13A_0.background       = background;
            gUIStyle.active.background = background;
            GUISkin buttonSkin = (GUISkin)ResourceManager.Load("_GUISkins/Lobby");

            this.pulldownSkin        = ScriptableObject.CreateInstance <GUISkin>();
            this.pulldownSkin.button = new GUIStyle(buttonSkin.button);
            this.pulldownSkin.label  = new GUIStyle(buttonSkin.label);
            this.pulldownSkin.button.normal.background = ResourceManager.LoadTexture("ChatUI/button_160a");
            GUIStyle   arg_162_0 = this.pulldownSkin.button;
            TextAnchor alignment = TextAnchor.MiddleLeft;

            this.pulldownSkin.label.alignment = alignment;
            arg_162_0.alignment = alignment;
            int num8 = Screen.height / 36;

            this.pulldownSkin.label.fontSize  = num8;
            this.pulldownSkin.button.fontSize = num8;
        }
Example #4
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;
 }
Example #5
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;
 }
Example #6
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 ###");
        }
Example #7
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;
 }
Example #8
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);
        }
Example #9
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);
        }
Example #10
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 ###");
        }