mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
render refactoring
This commit is contained in:
parent
89d9447410
commit
88280f8002
6 changed files with 59 additions and 47 deletions
|
|
@ -125,7 +125,7 @@ HudRenderer::HudRenderer(Engine* engine,
|
|||
TextBox* box = new TextBox(L"");
|
||||
box->textSupplier([this, ax]() {
|
||||
Hitbox* hitbox = this->level->player->hitbox;
|
||||
return std::to_wstring((int)hitbox->position[ax]);
|
||||
return std::to_wstring(hitbox->position[ax]);
|
||||
});
|
||||
box->textConsumer([this, ax](wstring text) {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue