Files
maszyna/launcher/keymapper.h
jakubg1 c217081823 Launcher improvements
Launcher windows are more Starter-like now:
- The scenery picker, vehicle list and keymapper buttons are now tied to the top portion of the screen.
- The current window is spanning the entire rest of the screen.
- Scenarios are now grouped into categories in the exact same way as Starter does.
- Some drawbacks include:
  - Currently you cannot edit the current trainset, as the vehicle picker window overwrites the scenario list window.
  - The GUI doesn't update when the screen resolution is changed.
2025-09-09 16:40:04 +02:00

22 lines
404 B
C++

#pragma once
#include "uilayer.h"
#include "driverkeyboardinput.h"
namespace ui
{
class keymapper_panel : public ui_panel
{
public:
keymapper_panel();
void render_contents() override;
bool key(int key);
private:
driverkeyboard_input keyboard;
user_command bind_active = user_command::none;
const std::string panelname = (title.empty() ? m_name : title) + "###" + m_name;
};
} // namespace ui