Beispiel #1
0
        public guildGui(Rectomat r, Guilddata g)
        {
            gdata = g;
            recto = r;

            this.setskins((GUISkin)Resources.Load("_GUISkins/CardListPopup"), (GUISkin)Resources.Load("_GUISkins/CardListPopupGradient"), (GUISkin)Resources.Load("_GUISkins/CardListPopupBigLabel"), (GUISkin)Resources.Load("_GUISkins/CardListPopupLeftButton"));
           
        }
Beispiel #2
0
		//initialize everything here, Game is loaded at this point
        public guildchat()
        {
            cry = new Cryptomat();
            this.modfolder = this.OwnFolder() + Path.DirectorySeparatorChar;
            gdata = new Guilddata(cry, this.modfolder);


            
            recto = Rectomat.Instance;
            ggui = new guildGui(recto, gdata);
            this.targetchathightinfo = typeof(ChatUI).GetField("targetChatHeight", BindingFlags.Instance | BindingFlags.NonPublic);
            chatmsg = typeof(ChatUI).GetField("chatMsg", BindingFlags.Instance | BindingFlags.NonPublic);
            //addroom = typeof(ChatRooms).GetMethod("AddActiveRoom", BindingFlags.Instance | BindingFlags.NonPublic);
            vs = new versionchecker();
            try
            {
                App.Communicator.addListener(this);
            }
            catch { }

            if (gdata.googledatakey != "")
            {
                new Thread(new ThreadStart(gdata.workthread)).Start();
                
            }
            

            
            this.lobbyskin=(GUISkin)Resources.Load("_GUISkins/Lobby");
             chatLogStyleinfo = typeof(ChatUI).GetField("chatMsgStyle", BindingFlags.Instance | BindingFlags.NonPublic);

            Console.WriteLine("loadet guildchat");
    
		}