Exemplo n.º 1
0
        public void InitBHAV(BHAV bhav, EditorScope scope)
        {
            var mainCont = new UIExternalContainer(1024, 768);
            Editor = new UIBHAVEditor(bhav, scope);
            mainCont.Add(Editor);
            GameFacade.Screens.AddExternal(mainCont);

            SetUI(mainCont);
        }
Exemplo n.º 2
0
 public void SetUI(UIExternalContainer ui)
 {
     lock (ui)
     {
         FSOUI = ui;
         FSOUI.Width = Width;
         FSOUI.Height = Height;
         FSOUI.OnFrame += FSOUIFrame;
     }
 }
Exemplo n.º 3
0
        public void ShowAnim(string anim)
        {
            if (FSOUI == null)
            {
                var mainCont = new UIExternalContainer(128, 128);
                Renderer = new UIAvatarAnimator();
                mainCont.Add(Renderer);
                GameFacade.Screens.AddExternal(mainCont);

                SetUI(mainCont);
            }
            Renderer.SetAnimation(anim);
        }
Exemplo n.º 4
0
        public void ShowObject(uint GUID)
        {
            if (FSOUI == null)
            {
                var mainCont = new UIExternalContainer(128, 128);
                Renderer = new UIThumbnailRenderer(GUID);
                mainCont.Add(Renderer);
                GameFacade.Screens.AddExternal(mainCont);

                SetUI(mainCont);
            }
            else
            {
                //reuse existing
                lock (FSOUI)
                {
                    Renderer.SetGUID(GUID);
                }
            }
        }
Exemplo n.º 5
0
        public void InitBHAV(BHAV bhav, EditorScope scope, VMEntity debugEnt, VMStackFrame debugFrame, BHAVPrimSelect callback)
        {
            if (FSOUI == null)
            {
                var mainCont = new UIExternalContainer(1024, 768);
                Editor = new UIBHAVEditor(bhav, scope, debugEnt);
                mainCont.Add(Editor);
                GameFacade.Screens.AddExternal(mainCont);

                SetUI(mainCont);
                Editor.BHAVView.OnSelectedChanged += callback;
            } else
            {
                //reuse existing
                lock (FSOUI)
                {
                    Editor.QueueCommand(new ChangeBHAVCommand(bhav, scope, debugFrame, callback));
                }
            }
        }
Exemplo n.º 6
0
 public void RemoveExternal(UIExternalContainer cont)
 {
     lock (m_ExtContainers)
     {
         //todo: release resources?
         m_ExtContainers.Remove(cont);
     }
 }
Exemplo n.º 7
0
 public void AddExternal(UIExternalContainer cont)
 {
     //todo: init?
     lock (m_ExtContainers)
     {
         m_ExtContainers.Add(cont);
     }
 }