dumb regex stuff and snestileskitten code. almost there though

This commit is contained in:
Justin Scofield
2022-06-11 23:41:05 -04:00
parent 6bf720e0e6
commit b26720f14d
4 changed files with 78 additions and 92 deletions

View File

@@ -25,6 +25,7 @@ void OverworldEditor::Update() {
surface = current_scene_.buildSurface(
rom_.ExtractTiles(4, 2048), palette_, current_set_.tilesPattern);
gfx_texture = SDL_CreateTextureFromSurface(Core::renderer, surface);
doneLoaded = true;
}
@@ -257,7 +258,7 @@ void OverworldEditor::DrawOverworldCanvas() {
draw_list->PopClipRect();
}
void OverworldEditor::DrawTileSelector() {
if (ImGui::BeginTabBar("##TabBar")) {
if (ImGui::BeginTabBar("##TabBar", ImGuiTabBarFlags_FittingPolicyScroll)) {
if (ImGui::BeginTabItem("Tile8")) {
if (rom_.isLoaded()) {
ImGui::Image((void *)(intptr_t)gfx_texture, ImVec2(128, 7104));