コード例 #1
0
ファイル: scoreboard.cpp プロジェクト: zot/CubeCreate
 void show(bool on)
 {
     if(!showing && on)
     {
         menupos = menuinfrontofplayer();
         menustart = starttime();
     }
     showing = on;
 }
コード例 #2
0
ファイル: rpg.cpp プロジェクト: pmcoder/sauerbraten
 void show(int n)
 {
     if((time && n==which) || !n)
         time = 0;
     else
     {
         time = starttime();
         pos  = menuinfrontofplayer();        
         which = n;
     }
 }
コード例 #3
0
ファイル: menus.cpp プロジェクト: acidbarrel/Torment
void showgui(char *name)
{
    int pos = guistack.find(name);
    if(pos<0)
    {
        if(!guis.access(name)) return;
        if(guistack.empty()) menupos = menuinfrontofplayer();
        guistack.add(newstring(name));
    }
    else
    {
        pos = guistack.length()-pos-1;
        loopi(pos) delete[] guistack.pop();
    };
    menutab = 1;
    menustart = lastmillis;
};