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.
recipeviewer.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 <array>
20
23
24namespace cqsp::client::systems {
26 public:
28
29 void Init();
30 void DoUI(int delta_time);
31 void DoUpdate(int delta_time);
32
33 private:
34 void RecipeViewerRight();
35 void ResetSelection();
36 void ResourceMapTable(common::components::ResourceLedger& ledger, const char* name);
37 entt::entity selected_recipe = entt::null;
38
39 std::array<char, 255> search_text;
41 const ImVec4 id_copy_color = ImVec4(0.921568627f, 0.392156863f, 0.203921569f, 1.f);
42};
43} // namespace cqsp::client::systems
Definition: recipeviewer.h:25
void ResourceMapTable(common::components::ResourceLedger &ledger, const char *name)
Definition: recipeviewer.cpp:74
void Init()
Definition: recipeviewer.cpp:30
std::array< char, 255 > search_text
Definition: recipeviewer.h:39
void DoUpdate(int delta_time)
Definition: recipeviewer.cpp:72
void DoUI(int delta_time)
Definition: recipeviewer.cpp:32
float expected_production
Definition: recipeviewer.h:40
SysRecipeViewer(engine::Application &app)
Definition: recipeviewer.h:27
entt::entity selected_recipe
Definition: recipeviewer.h:37
void RecipeViewerRight()
Definition: recipeviewer.cpp:111
void ResetSelection()
Definition: recipeviewer.cpp:169
const ImVec4 id_copy_color
Definition: recipeviewer.h:41
Definition: application.h:48
Definition: imguidebugger.cpp:19