Canvas Gui and styling improvements, helper fns

This commit is contained in:
scawful
2024-01-23 10:14:52 -05:00
parent db51acd12a
commit d183f1d784
8 changed files with 113 additions and 53 deletions

View File

@@ -81,7 +81,7 @@ void GraphicsBinCanvasPipeline(int width, int height, int tile_size,
if (key >= 1) {
top_left_y = canvas.zero_point().y + height * key;
}
canvas.GetDrawList()->AddImage(
canvas.draw_list()->AddImage(
(void*)value.texture(),
ImVec2(canvas.zero_point().x + 2, top_left_y),
ImVec2(canvas.zero_point().x + 0x100,
@@ -113,7 +113,7 @@ void GraphicsManagerCanvasPipeline(int width, int height, int tile_size,
if (key >= 1) {
top_left_y = canvas.zero_point().y + height * key;
}
canvas.GetDrawList()->AddImage(
canvas.draw_list()->AddImage(
(void*)value->texture(),
ImVec2(canvas.zero_point().x + 2, top_left_y),
ImVec2(canvas.zero_point().x + 0x100,