Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
maintooltip.h
Go to the documentation of this file.
1/* Conquer Space
2 * Copyright (C) 2021-2025 Conquer Space
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
16 */
17#pragma once
18
19#include <string>
20
23
26 public:
29 void Update(double delta_time) override;
30 void OpenDocument() override;
31 void ReloadWindow() override;
32 void SetupContent();
33
34 private:
35 void ProvinceTooltipProvider(entt::entity entity);
36 bool SetEntityTooltip(entt::entity entity);
37 std::string file_name = "../data/core/gui/mainscene/tooltipwindow.rml";
39 double itemX;
40 double itemY;
41 Rml::Element* tooltip_content = nullptr;
42 Rml::Element* right_click_content = nullptr;
44
45 bool to_right_click = false;
46};
47} // namespace cqsp::client::systems::rmlui
double last_tooltip_change
Definition: maintooltip.h:38
double itemY
Definition: maintooltip.h:40
void OpenDocument() override
Definition: maintooltip.cpp:138
void ProvinceTooltipProvider(entt::entity entity)
Definition: maintooltip.cpp:95
bool to_right_click
Definition: maintooltip.h:45
Rml::Element * right_click_content
Definition: maintooltip.h:42
void ReloadWindow() override
Definition: maintooltip.cpp:40
ctx::SelectedItem last_hover
Definition: maintooltip.h:43
double itemX
Definition: maintooltip.h:39
void SetupContent()
Definition: maintooltip.cpp:45
void Update(double delta_time) override
Definition: maintooltip.cpp:47
ToolTipWindow(engine::Application &_app)
Definition: maintooltip.h:27
bool SetEntityTooltip(entt::entity entity)
Definition: maintooltip.cpp:125
std::string file_name
Definition: maintooltip.h:37
Rml::Element * tooltip_content
Definition: maintooltip.h:41
~ToolTipWindow()
Definition: maintooltip.cpp:28
Definition: application.h:61
std::variant< std::monostate, entt::entity, std::string > SelectedItem
Definition: rightclick.h:16
Definition: countryselectionmenu.cpp:19