Ejemplo n.º 1
0
 protected void connectEventHandlers()
 {
     //multi Inheritor problem
     CeguiDotNet.Window w = WindowManager.Instance.getWindow("ExitDemoBtn");
     mGuiBtnQuit = new PushButton(Window.getCPtr(w).Handle, false);
     mGuiBtnQuit.SubscribeEvents();
     mGuiBtnQuit.Clicked += new WindowEventDelegate(handelQuit);
 }
Ejemplo n.º 2
0
        public override void Dispose()
        {
            foreach (CeguiDotNet.Imageset imgset in mDebugRTTImageSets)
            {
                CeguiDotNet.ImagesetManager.getSingleton().destroyImageset(imgset);
            }
            mDebugRTTImageSets.Clear();
            mDebugRTTImageSets = null;


            mMainNode = null;
            mSpinny   = null;
            mhvListener.Dispose();
            mhvListener = null;
            mhdrListener.Dispose();
            mhdrListener = null;
            mCompositorSelectorViewManager = null;


            mGuiAvg            = null;
            mGuiCurr           = null;
            mGuiBest           = null;
            mGuiWorst          = null;
            mGuiTris           = null;
            mGuiDbg            = null;
            mGuiRoot           = null;
            mDebugRTTListbox   = null;
            mDebugRTTImageSets = null;



            if (WindowManager.Instance != null)
            {
                WindowManager.Instance.destroyAllWindows();
            }
            if (mGuiSystem != null)
            {
                mGuiSystem.Dispose();
            }
            mGuiSystem = null;
            if (mGuiRenderer != null)
            {
                mGuiRenderer.Dispose();
            }
            mGuiRenderer = null;

            if (mLog != null)
            {
                mLog.Dispose();
            }
            mLog = null;

            base.Dispose();
        }
Ejemplo n.º 3
0
        public ItemSelectorViewManager(string parentWindowName)
        {
            mItemSelectorContainer = new ArrayList();

            mParentWindow = WindowManager.Instance.getWindow(parentWindowName);
            // add a scrollable pane as a child to the parent
            mScrollablePane = new CeguiDotNet.ScrollablePane(CeguiDotNet.Window.getCPtr(
                                                                 WindowManager.Instance.CreateWindow("TaharezLook/ScrollablePane", "MainScrollPane")).Handle, false);
            mScrollablePane.setHorizontalAlignment(CeguiDotNet.HorizontalAlignment.HA_CENTRE);
            mScrollablePane.SetSize(0.9f, 0.75f);
            mParentWindow.AddChildWindow(mScrollablePane);
            mScrollablePane.SetPosition(WIDGET_XPOS, WIDGET_YSTART);
            // setup scrollable pane to resize to inside of parent window when parent resizes
            // scrollbars should only become visible when required
            // automatically handled by scrollable pane
        }
Ejemplo n.º 4
0
        protected override void CreateEventHandler()
        {
            //this function can be used as an equivalent to C++ FrameListener constructor or the App.CreateFrameListener
            base.CreateEventHandler();

            mGuiAvg   = WindowManager.Instance.getWindow("OPAverageFPS");
            mGuiCurr  = WindowManager.Instance.getWindow("OPCurrentFPS");
            mGuiBest  = WindowManager.Instance.getWindow("OPBestFPS");
            mGuiWorst = WindowManager.Instance.getWindow("OPWorstFPS");
            mGuiTris  = WindowManager.Instance.getWindow("OPTriCount");
            mGuiDbg   = WindowManager.Instance.getWindow("OPDebugMsg");
            mGuiRoot  = WindowManager.Instance.getWindow("root");

            registerCompositors();
            initDebugRTTWindow();
            connectEventHandlers();
        }