![]() |
RigsofRods
Soft-body Physics Simulation
|
In-game map widget Has 3 display modes (see SurveyMapMode
), cycled using input SURVEY_MAP_TOGGLE_VIEW
More...
#include <GUI_SurveyMap.h>
Public Member Functions | |
void | CreateTerrainTextures () |
void | Draw () |
bool | IsVisible () const |
bool | IsHovered () const |
void | CycleMode () |
void | ToggleMode () |
Data Fields | |
const float | WINDOW_PADDING = 4.f |
const float | WINDOW_ROUNDING = 2.f |
Protected Types | |
enum | SurveyMapMode { SurveyMapMode::NONE, SurveyMapMode::SMALL, SurveyMapMode::BIG } |
Protected Member Functions | |
void | setMapZoom (float zoom) |
void | setMapZoomRelative (float dt_sec) |
const char * | getTypeByDriveable (const ActorPtr &actor) |
const char * | getAIType (const ActorPtr &actor) |
void | CacheMapIcon (SurveyMapEntity &e) |
void | DrawMapIcon (const SurveyMapEntity &e, ImVec2 view_pos, ImVec2 view_size, Ogre::Vector2 view_origin) |
ImVec2 | DrawWaypoint (ImVec2 view_pos, ImVec2 view_size, Ogre::Vector2 view_origin, std::string const &caption, int idx) |
ImVec2 | CalcWaypointMapPos (ImVec2 view_pos, ImVec2 view_size, Ogre::Vector2 view_origin, int idx) |
void | CacheIcons () |
Protected Attributes | |
SurveyMapMode | mMapMode = SurveyMapMode::NONE |
SurveyMapMode | mMapLastMode = SurveyMapMode::NONE |
bool | mWindowMouseHovered = false |
bool | mMouseClicked = false |
int | mWaypointNum = 0 |
Ogre::Vector2 | mTerrainSize = Ogre::Vector2::ZERO |
Ogre::Vector2 | mMapCenterOffset = Ogre::Vector2::ZERO |
float | mMapZoom = 0.f |
Ogre::TexturePtr | mMapTexture |
bool | m_icons_cached = false |
Ogre::TexturePtr | m_left_mouse_button |
Ogre::TexturePtr | m_middle_mouse_button |
Ogre::TexturePtr | m_middle_mouse_scroll_button |
Ogre::TexturePtr | m_right_mouse_button |
ImVec2 | m_circle_center |
float | m_circle_radius = 0.f |
In-game map widget Has 3 display modes (see SurveyMapMode
), cycled using input SURVEY_MAP_TOGGLE_VIEW
SURVEY_MAP_ZOOM_[IN|OUT]
EV_SURVEY_MAP_TOGGLE_ICONS
Definition at line 48 of file GUI_SurveyMap.h.
|
strongprotected |
Enumerator | |
---|---|
NONE | |
SMALL | |
BIG |
Definition at line 64 of file GUI_SurveyMap.h.
|
protected |
|
protected |
Definition at line 683 of file GUI_SurveyMap.cpp.
|
protected |
void SurveyMap::CreateTerrainTextures | ( | ) |
Definition at line 440 of file GUI_SurveyMap.cpp.
void SurveyMap::CycleMode | ( | ) |
void SurveyMap::Draw | ( | ) |
Definition at line 46 of file GUI_SurveyMap.cpp.
|
protected |
|
protected |
|
protected |
Definition at line 518 of file GUI_SurveyMap.cpp.
|
protected |
Definition at line 497 of file GUI_SurveyMap.cpp.
|
inline |
|
inline |
|
protected |
Definition at line 481 of file GUI_SurveyMap.cpp.
|
protected |
Definition at line 491 of file GUI_SurveyMap.cpp.
void SurveyMap::ToggleMode | ( | ) |
|
protected |
Definition at line 107 of file GUI_SurveyMap.h.
|
protected |
Definition at line 108 of file GUI_SurveyMap.h.
|
protected |
Definition at line 99 of file GUI_SurveyMap.h.
|
protected |
Definition at line 100 of file GUI_SurveyMap.h.
|
protected |
Definition at line 101 of file GUI_SurveyMap.h.
|
protected |
Definition at line 102 of file GUI_SurveyMap.h.
|
protected |
Definition at line 103 of file GUI_SurveyMap.h.
|
protected |
Definition at line 94 of file GUI_SurveyMap.h.
|
protected |
Definition at line 87 of file GUI_SurveyMap.h.
|
protected |
Definition at line 86 of file GUI_SurveyMap.h.
|
protected |
Definition at line 96 of file GUI_SurveyMap.h.
|
protected |
Definition at line 95 of file GUI_SurveyMap.h.
|
protected |
Definition at line 89 of file GUI_SurveyMap.h.
|
protected |
Definition at line 93 of file GUI_SurveyMap.h.
|
protected |
Definition at line 90 of file GUI_SurveyMap.h.
|
protected |
Definition at line 88 of file GUI_SurveyMap.h.
const float RoR::GUI::SurveyMap::WINDOW_PADDING = 4.f |
Definition at line 52 of file GUI_SurveyMap.h.
const float RoR::GUI::SurveyMap::WINDOW_ROUNDING = 2.f |
Definition at line 53 of file GUI_SurveyMap.h.