Exemplo n.º 1
0
        public SandboxControl(IKeyTableFactory tableFactory, IAsynchQueueFactory queueFactory, IPrimFactory primFactory, IModel model, IConfigSource config)
            : base(tableFactory, queueFactory, primFactory, model, config)
        {
            _tableFactory = tableFactory;

            //IsOn

            int chatChannel = ControlConfig.GetInt("PublicInputChannel", 46);

            if (chatChannel < 0)
            {
                chatChannel = 46;
            }
            Dialog.SetChatChannel(chatChannel);

            //Misc
            _reposition = ControlConfig.GetBoolean("RepositionControls", false);
            float scale = ControlConfig.GetFloat("DefaultScale", .5f);


            if (ControlConfig.GetBoolean("AutoRecord", false))
            {
                Record.StartRecording();
            }

            InitControls();
        }