mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
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.
22 lines
404 B
C++
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
|