Definition at line 46 of file GUI_TopMenubar.h.
|
| const float | MENU_Y_OFFSET = 2.5f |
| |
| const float | PANEL_HOVERBOX_HEIGHT = 3.125f |
| |
| const ImVec4 | GRAY_HINT_TEXT = ImVec4(0.62f, 0.62f, 0.61f, 1.f) |
| |
| const ImVec4 | WHITE_TEXT = ImVec4(0.9f, 0.9f, 0.9f, 1.f) |
| |
| const ImVec4 | GREEN_TEXT = ImVec4(0.0f, 0.9f, 0.0f, 1.f) |
| |
| const ImVec4 | ORANGE_TEXT = ImVec4(0.9f, 0.6f, 0.0f, 1.f) |
| |
| const ImVec4 | RED_TEXT = ImVec4(1.00f, 0.00f, 0.00f, 1.f) |
| |
| const ImVec2 | MENU_HOVERBOX_PADDING = ImVec2(1.5625f, 0.625f) |
| |
| const int | TUNING_SUBJECTID_USE_NAME = -2 |
| |
| std::vector< ai_events > | ai_waypoints |
| |
| int | ai_num = 1 |
| |
| int | ai_speed = 50 |
| |
| int | ai_times = 1 |
| |
| int | ai_altitude = 1000 |
| |
| int | ai_distance = 20 |
| |
| int | ai_position_scheme = 0 |
| |
| Ogre::String | ai_fname = "95bbUID-agoras.truck" |
| |
| Ogre::String | ai_dname = "Bus RVI Agora S" |
| |
| Ogre::String | ai_sectionconfig = "" |
| |
| std::string | ai_skin = "" |
| |
| bool | ai_select = false |
| |
| bool | ai_rec = false |
| |
| int | ai_mode = 0 |
| |
| bool | ai_menu = false |
| |
| bool | ai_select2 = false |
| |
| Ogre::String | ai_fname2 = "95bbUID-agoras.truck" |
| |
| Ogre::String | ai_dname2 = "Bus RVI Agora S" |
| |
| Ogre::String | ai_sectionconfig2 = "" |
| |
| std::string | ai_skin2 = "" |
| |
| int | ai_num_prev = 1 |
| |
| int | ai_speed_prev = 50 |
| |
| int | ai_position_scheme_prev = 0 |
| |
| int | ai_times_prev = 1 |
| |
| int | ai_mode_prev = 0 |
| |
| rapidjson::Document | ai_presets_all |
| |
| rapidjson::Document | ai_presets_extern |
| |
| bool | ai_presets_extern_fetching = false |
| |
| std::string | ai_presets_extern_error |
| |
| rapidjson::Document | ai_presets_bundled |
| |
| ActorPtr | tuning_actor |
| |
| std::vector< CacheEntryPtr > | tuning_addonparts |
| |
| std::vector< bool > | tuning_addonparts_conflict_w_used |
| |
| AddonPartConflictVec | tuning_conflicts |
| |
| CacheQuery | tuning_saves |
| |
| Str< 200 > | tuning_savebox_buf |
| |
| bool | tuning_savebox_visible = false |
| |
| bool | tuning_savebox_overwrite = false |
| |
| const ImVec4 | TUNING_HOLDTOCONFIRM_COLOR = ImVec4(0.25f, 0.15f, 0.2f, 0.5f) |
| |
| const float | TUNING_HOLDTOCONFIRM_TIMELIMIT = 1.5f |
| |
| float | tuning_rwidget_cursorx_min = 0.f |
| |
| CacheEntryPtr | tuning_hovered_addonpart |
| |
◆ StateBox
| Enumerator |
|---|
| STATEBOX_NONE | |
| STATEBOX_REPLAY | |
| STATEBOX_RACE | |
| STATEBOX_LIVE_REPAIR | |
| STATEBOX_QUICK_REPAIR | |
| STATEBOX_IMPORT_TERRAIN | |
| STATEBOX_OVERWRITE_TERRAIN | |
Definition at line 60 of file GUI_TopMenubar.h.
◆ TopMenu
| Enumerator |
|---|
| TOPMENU_NONE | |
| TOPMENU_SIM | |
| TOPMENU_ACTORS | |
| TOPMENU_SAVEGAMES | |
| TOPMENU_SETTINGS | |
| TOPMENU_TOOLS | |
| TOPMENU_AI | |
| TOPMENU_TUNING | |
Definition at line 59 of file GUI_TopMenubar.h.
◆ TopMenubar()
| TopMenubar::TopMenubar |
( |
| ) |
|
◆ ~TopMenubar()
| TopMenubar::~TopMenubar |
( |
| ) |
|
◆ Draw()
| void TopMenubar::Draw |
( |
float |
dt | ) |
|
◆ DrawActorListSinglePlayer()
| void TopMenubar::DrawActorListSinglePlayer |
( |
| ) |
|
|
private |
◆ DrawMpUserToActorList()
◆ DrawSpecialStateBox()
| void TopMenubar::DrawSpecialStateBox |
( |
float |
top_offset | ) |
|
|
private |
◆ DrawTuningBoxedSubjectIdInline()
| void TopMenubar::DrawTuningBoxedSubjectIdInline |
( |
int |
subject_id | ) |
|
|
private |
◆ DrawTuningForceRemoveControls()
◆ DrawTuningProtectedChkRightAligned()
◆ FetchExternAiPresetsOnBackground()
| void TopMenubar::FetchExternAiPresetsOnBackground |
( |
| ) |
|
Initiate threaded (down)load of 'extern' waypoints from GitHub repo.
Definition at line 2599 of file GUI_TopMenubar.cpp.
◆ IsMenuEnabled()
| bool TopMenubar::IsMenuEnabled |
( |
TopMenu |
which | ) |
|
|
private |
◆ IsVisible()
| bool RoR::GUI::TopMenubar::IsVisible |
( |
| ) |
|
|
inline |
◆ LoadBundledAiPresets()
| void TopMenubar::LoadBundledAiPresets |
( |
TerrainPtr |
terrain | ) |
|
Loads JSON files from [AI Presets] section in .terrn2 file format.
Definition at line 2560 of file GUI_TopMenubar.cpp.
◆ RefreshAiPresets()
| void TopMenubar::RefreshAiPresets |
( |
| ) |
|
Refresh the list of presets, used for display. Needs to be called when terrain is loaded.
Definition at line 2608 of file GUI_TopMenubar.cpp.
◆ RefreshTuningMenu()
| void TopMenubar::RefreshTuningMenu |
( |
| ) |
|
◆ ShouldDisplay()
| bool TopMenubar::ShouldDisplay |
( |
ImVec2 |
window_pos | ) |
|
◆ ai_altitude
| int RoR::GUI::TopMenubar::ai_altitude = 1000 |
◆ ai_distance
| int RoR::GUI::TopMenubar::ai_distance = 20 |
◆ ai_dname
| Ogre::String RoR::GUI::TopMenubar::ai_dname = "Bus RVI Agora S" |
◆ ai_dname2
| Ogre::String RoR::GUI::TopMenubar::ai_dname2 = "Bus RVI Agora S" |
◆ ai_fname
| Ogre::String RoR::GUI::TopMenubar::ai_fname = "95bbUID-agoras.truck" |
◆ ai_fname2
| Ogre::String RoR::GUI::TopMenubar::ai_fname2 = "95bbUID-agoras.truck" |
◆ ai_menu
| bool RoR::GUI::TopMenubar::ai_menu = false |
◆ ai_mode
| int RoR::GUI::TopMenubar::ai_mode = 0 |
◆ ai_mode_prev
| int RoR::GUI::TopMenubar::ai_mode_prev = 0 |
◆ ai_num
| int RoR::GUI::TopMenubar::ai_num = 1 |
◆ ai_num_prev
| int RoR::GUI::TopMenubar::ai_num_prev = 1 |
◆ ai_position_scheme
| int RoR::GUI::TopMenubar::ai_position_scheme = 0 |
◆ ai_position_scheme_prev
| int RoR::GUI::TopMenubar::ai_position_scheme_prev = 0 |
◆ ai_presets_all
| rapidjson::Document RoR::GUI::TopMenubar::ai_presets_all |
The full list of presets, used for display. Needs to be refreshed when terrain is loaded.
Definition at line 104 of file GUI_TopMenubar.h.
◆ ai_presets_bundled
| rapidjson::Document RoR::GUI::TopMenubar::ai_presets_bundled |
Presets bundled with the terrain, see [AI Presets] section in .terrn2 file format.
Definition at line 108 of file GUI_TopMenubar.h.
◆ ai_presets_extern
| rapidjson::Document RoR::GUI::TopMenubar::ai_presets_extern |
Externally provided presets (GitHub repo or local 'savegames/waypoints.json' file).
Definition at line 105 of file GUI_TopMenubar.h.
◆ ai_presets_extern_error
| std::string RoR::GUI::TopMenubar::ai_presets_extern_error |
Error message from the (down)load of 'extern' waypoints.
Definition at line 107 of file GUI_TopMenubar.h.
◆ ai_presets_extern_fetching
| bool RoR::GUI::TopMenubar::ai_presets_extern_fetching = false |
True if the (down)load of 'extern' waypoints is in progress.
Definition at line 106 of file GUI_TopMenubar.h.
◆ ai_rec
| bool RoR::GUI::TopMenubar::ai_rec = false |
◆ ai_sectionconfig
| Ogre::String RoR::GUI::TopMenubar::ai_sectionconfig = "" |
◆ ai_sectionconfig2
| Ogre::String RoR::GUI::TopMenubar::ai_sectionconfig2 = "" |
◆ ai_select
| bool RoR::GUI::TopMenubar::ai_select = false |
◆ ai_select2
| bool RoR::GUI::TopMenubar::ai_select2 = false |
◆ ai_skin
| std::string RoR::GUI::TopMenubar::ai_skin = "" |
◆ ai_skin2
| std::string RoR::GUI::TopMenubar::ai_skin2 = "" |
◆ ai_speed
| int RoR::GUI::TopMenubar::ai_speed = 50 |
◆ ai_speed_prev
| int RoR::GUI::TopMenubar::ai_speed_prev = 50 |
◆ ai_times
| int RoR::GUI::TopMenubar::ai_times = 1 |
◆ ai_times_prev
| int RoR::GUI::TopMenubar::ai_times_prev = 1 |
◆ ai_waypoints
| std::vector<ai_events> RoR::GUI::TopMenubar::ai_waypoints |
◆ GRAY_HINT_TEXT
| const ImVec4 RoR::GUI::TopMenubar::GRAY_HINT_TEXT = ImVec4(0.62f, 0.62f, 0.61f, 1.f) |
◆ GREEN_TEXT
| const ImVec4 RoR::GUI::TopMenubar::GREEN_TEXT = ImVec4(0.0f, 0.9f, 0.0f, 1.f) |
◆ m_confirm_remove_all
| bool RoR::GUI::TopMenubar::m_confirm_remove_all = false |
|
private |
◆ m_daytime
| float RoR::GUI::TopMenubar::m_daytime = 0.f |
|
private |
◆ m_open_menu
◆ m_open_menu_hoverbox_max
| ImVec2 RoR::GUI::TopMenubar::m_open_menu_hoverbox_max |
|
private |
◆ m_open_menu_hoverbox_min
| ImVec2 RoR::GUI::TopMenubar::m_open_menu_hoverbox_min |
|
private |
◆ m_quickload
| bool RoR::GUI::TopMenubar::m_quickload = false |
|
private |
◆ m_quicksave_name
| std::string RoR::GUI::TopMenubar::m_quicksave_name |
|
private |
◆ m_savegame_names
| std::vector<std::string> RoR::GUI::TopMenubar::m_savegame_names |
|
private |
◆ m_state_box
◆ m_state_box_hoverbox_max
| ImVec2 RoR::GUI::TopMenubar::m_state_box_hoverbox_max |
|
private |
◆ m_state_box_hoverbox_min
| ImVec2 RoR::GUI::TopMenubar::m_state_box_hoverbox_min |
|
private |
◆ m_terrn_import_started
| bool RoR::GUI::TopMenubar::m_terrn_import_started = false |
|
private |
◆ m_waves_height
| float RoR::GUI::TopMenubar::m_waves_height |
|
private |
◆ MENU_HOVERBOX_PADDING
| const ImVec2 RoR::GUI::TopMenubar::MENU_HOVERBOX_PADDING = ImVec2(1.5625f, 0.625f) |
◆ MENU_Y_OFFSET
| const float RoR::GUI::TopMenubar::MENU_Y_OFFSET = 2.5f |
◆ ORANGE_TEXT
| const ImVec4 RoR::GUI::TopMenubar::ORANGE_TEXT = ImVec4(0.9f, 0.6f, 0.0f, 1.f) |
◆ PANEL_HOVERBOX_HEIGHT
| const float RoR::GUI::TopMenubar::PANEL_HOVERBOX_HEIGHT = 3.125f |
◆ RED_TEXT
| const ImVec4 RoR::GUI::TopMenubar::RED_TEXT = ImVec4(1.00f, 0.00f, 0.00f, 1.f) |
◆ tuning_actor
| ActorPtr RoR::GUI::TopMenubar::tuning_actor |
Detecting actor change to update cached values.
Definition at line 111 of file GUI_TopMenubar.h.
◆ tuning_addonparts
| std::vector<CacheEntryPtr> RoR::GUI::TopMenubar::tuning_addonparts |
Addonparts eligible for current actor, both matched by GUID and force-installed by user via [browse all] button.
Definition at line 112 of file GUI_TopMenubar.h.
◆ tuning_addonparts_conflict_w_used
| std::vector<bool> RoR::GUI::TopMenubar::tuning_addonparts_conflict_w_used |
1:1 with tuning_addonparts; True means the eligible (not used) addonpart conflicts with an used addonpart.
Definition at line 113 of file GUI_TopMenubar.h.
◆ tuning_conflicts
Conflicts between eligible addonparts tweaking the same element.
Definition at line 114 of file GUI_TopMenubar.h.
◆ TUNING_HOLDTOCONFIRM_COLOR
| const ImVec4 RoR::GUI::TopMenubar::TUNING_HOLDTOCONFIRM_COLOR = ImVec4(0.25f, 0.15f, 0.2f, 0.5f) |
◆ TUNING_HOLDTOCONFIRM_TIMELIMIT
| const float RoR::GUI::TopMenubar::TUNING_HOLDTOCONFIRM_TIMELIMIT = 1.5f |
Delete button must be held for several sec to confirm.
Definition at line 120 of file GUI_TopMenubar.h.
◆ tuning_hovered_addonpart
◆ tuning_rwidget_cursorx_min
| float RoR::GUI::TopMenubar::tuning_rwidget_cursorx_min = 0.f |
Avoid drawing right-side widgets ('Delete' button or 'Protected' chk) over saved tuneup names.
Definition at line 121 of file GUI_TopMenubar.h.
◆ tuning_savebox_buf
| Str<200> RoR::GUI::TopMenubar::tuning_savebox_buf |
◆ tuning_savebox_overwrite
| bool RoR::GUI::TopMenubar::tuning_savebox_overwrite = false |
◆ tuning_savebox_visible
| bool RoR::GUI::TopMenubar::tuning_savebox_visible = false |
◆ tuning_saves
Tuneups saved by user, with category ID RoR::CID_AddonpartUser
Definition at line 115 of file GUI_TopMenubar.h.
◆ TUNING_SUBJECTID_USE_NAME
| const int RoR::GUI::TopMenubar::TUNING_SUBJECTID_USE_NAME = -2 |
◆ WHITE_TEXT
| const ImVec4 RoR::GUI::TopMenubar::WHITE_TEXT = ImVec4(0.9f, 0.9f, 0.9f, 1.f) |
The documentation for this class was generated from the following files: