mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
core.get_bindings
This commit is contained in:
parent
0838208fb6
commit
aa243ba852
2 changed files with 19 additions and 3 deletions
|
|
@ -66,9 +66,10 @@ static void create_controls_panel(Engine* engine) {
|
|||
panel->add(trackbar);
|
||||
}
|
||||
|
||||
auto scrollPanel = std::make_shared<Panel>(glm::vec2(400, 200), glm::vec4(2.0f), 1.0f);
|
||||
scrollPanel->setColor(glm::vec4(0.0f, 0.0f, 0.0f, 0.3f));
|
||||
scrollPanel->setMaxLength(400);
|
||||
auto scrollPanel = std::dynamic_pointer_cast<Panel>(guiutil::create(
|
||||
"<panel size='400,200' padding='2' interval='1' max-length='400' color='#0000004C'>"
|
||||
"</panel>"
|
||||
));
|
||||
for (auto& entry : Events::bindings){
|
||||
std::string bindname = entry.first;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue