• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            08年04月21日

            Posted on 2008-04-21 18:09 RichardHe 閱讀(142) 評論(0)  編輯 收藏 引用
            在老版本0.40上修改模式對話框功能.在ceguiwindow.h頭文件中添加setModalState方法.參數為bool
             1 void Window::setModalState(bool state)
             2 {
             3     bool already_modal = getModalState();
             4 
             5     // do nothing is state is'nt changing
             6     if (state != already_modal)
             7     {
             8         // if going modal
             9         if (state)
            10         {
            11             activate();
            12             System::getSingleton().setModalTarget(this);
            13         }
            14         // clear the modal target
            15         else
            16         {
            17             System::getSingleton().setModalTarget(0);
            18         }
            19     }
            獲得狀態
            1 bool getModalState(voidconst
            2     {return (System::getSingleton().getModalTarget() == this);}
            在CEGUISystem.h中同樣添加兩個方法
            1 Window* getModalTarget(voidconst        {return d_modalTarget;}
            2 void setModalTarget(Window* target)        {d_modalTarget = target;}
            windows* d_modalTarget//!< Pointer to the window that is the current modal target. NULL is there is no modal target.
            在方法后面單獨處理模式窗口
             1 /*************************************************************************
             2     Return window that should get mouse inouts when mouse it at 'pt'
             3 *************************************************************************/
             4 Window*    System::getTargetWindow(const Point& pt) const
             5 {
                    .....
                    ......

                    ....
                    ....    
            11     // modal target overrules
            12     if (d_modalTarget != 0 && dest_window != d_modalTarget)
            13     {
            14         if (!dest_window->isAncestor(d_modalTarget))
            15         {
            16             dest_window = d_modalTarget;
            17         }
            18 
            19     }
            20 
            21     return dest_window;
            22 }
            23 

            再在腳本中和LUA綁定.在登陸服務器和角色選擇時模式對話框都可以用.但在進入游戲主界面時所以操作不能使用,包括MOUSE和KEYBOARD
            問題還沒解決?

            posts - 94, comments - 138, trackbacks - 0, articles - 94

            Copyright © RichardHe

            久久99精品久久久久久齐齐| 亚洲国产成人精品久久久国产成人一区二区三区综 | 久久人人爽人人爽人人片AV东京热| 狠狠人妻久久久久久综合| 久久国产AVJUST麻豆| 久久精品国产网红主播| 武侠古典久久婷婷狼人伊人| 欧美黑人激情性久久| 久久成人精品| 97久久国产亚洲精品超碰热 | 久久99热精品| 亚州日韩精品专区久久久| 新狼窝色AV性久久久久久| 久久久久99精品成人片三人毛片 | 久久精品国产久精国产思思| 久久青青草原精品国产软件| 精品久久久久久中文字幕| 久久人妻AV中文字幕| 久久精品国产99国产精品| 久久久久久久综合日本亚洲| 亚洲国产精品高清久久久| 伊人久久五月天| 久久久久久国产精品无码下载 | 久久久久人妻一区精品性色av| 国产无套内射久久久国产| 久久久久高潮毛片免费全部播放| 亚洲综合久久夜AV | 久久丝袜精品中文字幕| 久久99热这里只有精品国产| 久久精品国产久精国产| 久久成人精品视频| 热久久国产精品| 亚洲国产天堂久久综合网站| 久久人人爽人人爽人人AV | 日韩AV无码久久一区二区| 97精品依人久久久大香线蕉97 | 色欲av伊人久久大香线蕉影院| 7777精品伊人久久久大香线蕉| 久久99这里只有精品国产| 久久久久波多野结衣高潮| 久久久久亚洲av成人网人人软件 |