mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 06:55:02 +01:00
24 lines
579 B
C++
24 lines
579 B
C++
#pragma once
|
|
|
|
#include "application/uilayer.h"
|
|
#include "utilities/translation.h"
|
|
#include "input/command.h"
|
|
#include "rendering/renderer.h"
|
|
|
|
namespace ui
|
|
{
|
|
class vehicleparams_panel : public ui_panel
|
|
{
|
|
std::string m_vehicle_name;
|
|
command_relay m_relay;
|
|
texture_handle vehicle_mini;
|
|
|
|
void draw_infobutton(const char *str, ImVec2 pos = ImVec2(-1.0f, -1.0f), const ImVec4 color = ImVec4(1.0f, 1.0f, 0.0f, 1.0f));
|
|
void draw_mini(const TMoverParameters &mover);
|
|
public:
|
|
vehicleparams_panel(const std::string &vehicle);
|
|
|
|
void render_contents() override;
|
|
};
|
|
} // namespace ui
|