
Public Member Functions | |
| WeaponInfoPanel (PG_Widget *parent, const Vehicle *veh, const VehicleType *vt) | |
| void | showWeapon (const SingleWeapon *weap=NULL) |
| bool | eventMouseButtonUp (const SDL_MouseButtonEvent *button) |
Static Public Member Functions | |
| static const ASCString & | WIP_Name () |
Protected Member Functions | |
| bool | onClick (PG_MessageObject *obj, const SDL_MouseButtonEvent *event) |
| void | painter (const PG_Rect &src, const ASCString &name, const PG_Rect &dst) |
| bool | eventMouseMotion (const SDL_MouseMotionEvent *motion) |
Definition at line 48 of file dashboard.cpp.
| WeaponInfoPanel::WeaponInfoPanel | ( | PG_Widget * | parent, | |
| const Vehicle * | veh, | |||
| const VehicleType * | vt | |||
| ) |
Definition at line 682 of file dashboard.cpp.
References Vehicle::ammo, assignWeaponInfo(), UnitWeapon::count, Panel::getDefaultWidgetParams(), IconRepository::getIcon(), SingleWeapon::getScalarWeaponType(), ContainerBaseType::hasFunction(), line(), ContainerBaseType::MoveAfterAttack, ASCGUI_Window::parsePanelASCTXT(), WeaponInfoLine::registerSpecialDisplay(), ASCGUI_Window::setLabelText(), ASCGUI_Window::textPropertyGroup, VehicleType::wait, UnitWeapon::weapon, and VehicleType::weapons.
| bool WeaponInfoPanel::onClick | ( | PG_MessageObject * | obj, | |
| const SDL_MouseButtonEvent * | event | |||
| ) | [protected] |
| void WeaponInfoPanel::painter | ( | const PG_Rect & | src, | |
| const ASCString & | name, | |||
| const PG_Rect & | dst | |||
| ) | [protected] |
| bool WeaponInfoPanel::eventMouseMotion | ( | const SDL_MouseMotionEvent * | motion | ) | [protected] |
Definition at line 832 of file dashboard.cpp.
| void WeaponInfoPanel::showWeapon | ( | const SingleWeapon * | weap = NULL |
) |
Definition at line 739 of file dashboard.cpp.
References getheightdelta().
Referenced by WeaponInfoLine::activate(), WeaponInfoLine::eventMouseEnter(), and WeaponInfoLine::eventMouseLeave().
| bool WeaponInfoPanel::eventMouseButtonUp | ( | const SDL_MouseButtonEvent * | button | ) |
Definition at line 819 of file dashboard.cpp.
| const ASCString & WeaponInfoPanel::WIP_Name | ( | ) | [static] |
1.5.1