Public Member Functions | |
ArmageTron_viewport_menuitem (uMenu *m) | |
virtual REAL | SpaceRight () |
virtual void | RenderBackground () |
virtual void | Render (REAL x, REAL y, REAL alpha=1, bool selected=0) |
Definition at line 686 of file gMenus.cpp.
ArmageTron_viewport_menuitem::ArmageTron_viewport_menuitem | ( | uMenu * | m | ) | [inline] |
Definition at line 688 of file gMenus.cpp.
References uMenu::RequestSpaceBelow().
00688 : 00689 uMenuItemInt(m,"$viewport_menu_title", 00690 "$viewport_menu_help", 00691 rViewportConfiguration::next_conf_num, 00692 0,rViewportConfiguration::s_viewportNumConfigurations-1){ 00693 m->RequestSpaceBelow(.9); 00694 }
virtual REAL ArmageTron_viewport_menuitem::SpaceRight | ( | ) | [inline, virtual] |
virtual void ArmageTron_viewport_menuitem::RenderBackground | ( | ) | [inline, virtual] |
Reimplemented from uMenuItem.
Definition at line 698 of file gMenus.cpp.
References rViewportConfiguration::DemonstrateViewport(), MAX_VIEWPORTS, rViewportConfiguration::next_conf_num, uMenuItem::RenderBackground(), and rViewportConfiguration::s_viewportNumConfigurations.
00698 { 00699 uMenuItem::RenderBackground(); 00700 00701 if (rViewportConfiguration::next_conf_num<0) rViewportConfiguration::next_conf_num=0; 00702 if (rViewportConfiguration::next_conf_num>=rViewportConfiguration::s_viewportNumConfigurations) 00703 rViewportConfiguration::next_conf_num=rViewportConfiguration::s_viewportNumConfigurations-1; 00704 00705 tString titles[MAX_VIEWPORTS]; 00706 00707 for(int i=MAX_VIEWPORTS-1;i>=0;i--) 00708 titles[i] << i+1; 00709 #ifndef DEDICATED 00710 rViewportConfiguration::DemonstrateViewport(titles); 00711 #endif 00712 }
virtual void ArmageTron_viewport_menuitem::Render | ( | REAL | x, | |
REAL | y, | |||
REAL | alpha = 1 , |
|||
bool | selected = 0 | |||
) | [inline, virtual] |
Reimplemented from uMenuItemInt.
Definition at line 714 of file gMenus.cpp.
References tOutput::AddSpace(), uMenuItem::DisplayText(), rViewportConfiguration::next_conf_num, rViewportConfiguration::s_viewportConfigurationNames, and rViewportConfiguration::s_viewportNumConfigurations.
00714 { 00715 if (rViewportConfiguration::next_conf_num<0) rViewportConfiguration::next_conf_num=0; 00716 if (rViewportConfiguration::next_conf_num>=rViewportConfiguration::s_viewportNumConfigurations) 00717 rViewportConfiguration::next_conf_num=rViewportConfiguration::s_viewportNumConfigurations-1; 00718 00719 tOutput disp; 00720 00721 disp << "$viewport_conf_text"; 00722 disp.AddSpace(); 00723 disp << rViewportConfiguration::s_viewportConfigurationNames[rViewportConfiguration::next_conf_num]; 00724 DisplayText(x-.02,y,disp,selected,alpha); 00725 }