~armagetronad-dev/armagetronad/trunk-armagetronad-fortress_ai

« back to all changes in this revision

Viewing changes to src/ui/uMenu.h

  • Committer: Manuel Moos
  • Date: 2010-08-07 21:08:56 UTC
  • mfrom: (890.1.89 armagetronad)
  • Revision ID: z-man@users.sf.net-20100807210856-93ljrijn34c77p5v
MergingĀ fromĀ mainline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
    void SetCenter(REAL c) {center=c;}
91
91
    void SetTop(REAL t) {menuTop=t;}
92
92
    void SetBot(REAL b) {menuBot=b;spaceBelow=1+menuBot;}
 
93
    REAL GetTop() const {return menuTop;}
 
94
    REAL GetBot() const {return menuBot;}
93
95
    void SetSelected(int s) {selected = s;}
94
96
    int  NumItems()         {return items.Len();}
95
97
    uMenuItem* Item(int i)  { return items[i]; }
108
110
    void ReverseItems();
109
111
 
110
112
    // paints a nice background
111
 
    static void GenericBackground();
 
113
    static void GenericBackground(REAL top=1.0);
112
114
 
113
115
    // marks the menu for exit
114
116
    inline void Exit(){OnExit();}
491
493
 
492
494
    virtual bool Event(SDL_Event &e); //!< Handles an event
493
495
    virtual void Render(REAL x,REAL y,REAL alpha=1,bool selected=0); //!< Renders the search suggestion if needed and calls uMenuItemString::Render()
 
496
    virtual void RenderBackground(){
 
497
        menu->GenericBackground(menu->GetTop());
 
498
    };
494
499
};
495
500
 
496
501
// *****************************************************