Example #1
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");
    
		}
Example #2
0
        public Guilddata(Cryptomat c, string m) 
        { 
            this.cry = c;
            this.modfolder = m;
            this.getGoogleDataKey();

        }