Big changes to use the new lel-guecs setup but now almost everything works. Only thing missing is Issue #16 in quecs.

This commit is contained in:
Zed A. Shaw 2025-07-23 14:03:41 -04:00
parent 86ddfc460f
commit d93bc1615c
14 changed files with 51 additions and 59 deletions

View file

@ -41,7 +41,7 @@ namespace gui {
$log_to = $gui.entity("log_view");
$gui.set<Rectangle>($log_to, {10, THEME.DARK_MID, THEME.BORDER_COLOR, 10});
$gui.set<Textual>($log_to, {L"Welcome to the Game!", 25, THEME.TEXT_COLOR, 10});
$gui.set<Text>($log_to, {L"Welcome to the Game!", 25, THEME.TEXT_COLOR, 10});
auto map_cell = lel::center(MAP_TILE_DIM * MAP_WIDTH, MAP_TILE_DIM * MAP_HEIGHT, $gui.cell_for("map_grid"));
$map_sprite.setPosition({(float)map_cell.x, (float)map_cell.y + 30});
@ -59,7 +59,7 @@ namespace gui {
}
void MapViewUI::update() {
if(auto text = $gui.get_if<Textual>($log_to)) {
if(auto text = $gui.get_if<Text>($log_to)) {
//BUG: I'm calling this what it is, fix it
wstring log_garbage;
for(auto msg : $messages) {