Rigs of Rods 2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
GUI_NodeBeamUtils.h
Go to the documentation of this file.
1/*
2 This source file is part of Rigs of Rods
3 Copyright 2016-2020 Petr Ohlidal
4
5 For more information, see http://www.rigsofrods.org/
6
7 Rigs of Rods is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 3, as
9 published by the Free Software Foundation.
10
11 Rigs of Rods is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with Rigs of Rods. If not, see <http://www.gnu.org/licenses/>.
18*/
19
20#pragma once
21
22#include "Application.h"
23#include "OgreImGui.h"
24
25namespace RoR {
26namespace GUI {
27
29{
30public:
31 void Draw();
32
33 void SetVisible(bool visible);
34 bool IsVisible() const { return m_is_visible; }
35 bool IsHovered() const { return IsVisible() && m_is_hovered; }
36
37private:
38 bool m_is_visible = false;
39 bool m_is_hovered = false;
40 bool m_is_searching = false;
41
42 const ImVec4 GRAY_HINT_TEXT = ImVec4(0.62f, 0.62f, 0.61f, 1.f);
43
44 void DrawCreateProjectBanner(ActorPtr actor, bool& window_open);
45 void DrawMenubar(ActorPtr actor);
46 void DrawMassTab(ActorPtr actor);
47 void DrawSpringDampTab(ActorPtr actor);
48};
49
50} // namespace GUI
51} // namespace RoR
Central state/object manager and communications hub.
void DrawMassTab(ActorPtr actor)
void DrawCreateProjectBanner(ActorPtr actor, bool &window_open)
void DrawMenubar(ActorPtr actor)
void DrawSpringDampTab(ActorPtr actor)
void SetVisible(bool visible)