97 if (BeginTable(
"##BlocksetTable", sheet_only ? 1 : 2,
98 ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable,
101 TableSetupColumn(
"Inputs", ImGuiTableColumnFlags_WidthStretch,
102 GetContentRegionAvail().x);
105 TableSetupColumn(
"Sheets", ImGuiTableColumnFlags_WidthFixed, 256);
112 for (
int i = 0; i < 8; i++) {
113 SetNextItemWidth(100.f);
123 for (
int i = 0; i < 8; i++) {
125 auto sheet =
rom()->gfx_sheets().at(sheet_id);
127 0x20,
true,
false, 22);
136 Text(
"Values - Overwrites 4 of main blockset");
137 if (BeginTable(
"##Roomstable", 3,
138 ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable,
140 TableSetupColumn(
"List", ImGuiTableColumnFlags_WidthFixed, 100);
141 TableSetupColumn(
"Inputs", ImGuiTableColumnFlags_WidthStretch,
142 GetContentRegionAvail().x);
143 TableSetupColumn(
"Sheets", ImGuiTableColumnFlags_WidthFixed, 256);
149 BeginChild(
"##RoomsetList");
150 for (
int i = 0; i < 0x51; i++) {
152 std::string roomset_label = absl::StrFormat(
"0x%02X", i);
153 rom()->resource_label()->SelectableLabelWithNameEdit(
154 false,
"roomset", roomset_label,
"Roomset " + roomset_label);
155 if (IsItemClicked()) {
166 for (
int i = 0; i < 4; i++) {
167 SetNextItemWidth(100.f);
176 for (
int i = 0; i < 4; i++) {
178 auto sheet =
rom()->gfx_sheets().at(sheet_id);
180 0x20,
true,
false, 23);
189 if (BeginTable(
"##SpritesTable", sheet_only ? 1 : 2,
190 ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable,
193 TableSetupColumn(
"Inputs", ImGuiTableColumnFlags_WidthStretch,
194 GetContentRegionAvail().x);
196 TableSetupColumn(
"Sheets", ImGuiTableColumnFlags_WidthFixed, 256);
203 for (
int i = 0; i < 4; i++) {
204 SetNextItemWidth(100.f);
214 for (
int i = 0; i < 4; i++) {
216 auto sheet =
rom()->gfx_sheets().at(115 + sheet_id);
218 0x20,
true,
false, 24);
252 rom()->resource_label()->SelectableLabelWithNameEdit(
256 uint8_t &dungeon_main_palette_val =
258 uint8_t &dungeon_spr_pal_1_val =
260 uint8_t &dungeon_spr_pal_2_val =
262 uint8_t &dungeon_spr_pal_3_val =
267 rom()->resource_label()->SelectableLabelWithNameEdit(
269 std::to_string(dungeon_main_palette_val),
"Unnamed dungeon palette");
270 auto &palette = *
rom()->mutable_palette_group()->dungeon_main.mutable_palette(
272 DrawPaletteFromPaletteGroup(palette);
277 *
rom()->mutable_palette_group()->sprites_aux1.mutable_palette(
279 DrawPaletteFromPaletteGroup(spr_aux_pal1);
281 rom()->resource_label()->SelectableLabelWithNameEdit(
283 std::to_string(dungeon_spr_pal_1_val),
"Dungeon Spr Pal 1");
288 *
rom()->mutable_palette_group()->sprites_aux2.mutable_palette(
290 DrawPaletteFromPaletteGroup(spr_aux_pal2);
292 rom()->resource_label()->SelectableLabelWithNameEdit(
294 std::to_string(dungeon_spr_pal_2_val),
"Dungeon Spr Pal 2");
299 *
rom()->mutable_palette_group()->sprites_aux3.mutable_palette(
301 DrawPaletteFromPaletteGroup(spr_aux_pal3);
303 rom()->resource_label()->SelectableLabelWithNameEdit(
305 std::to_string(dungeon_spr_pal_3_val),
"Dungeon Spr Pal 3");
void BitmapCanvasPipeline(gui::Canvas &canvas, const gfx::Bitmap &bitmap, int width, int height, int tile_size, bool is_loaded, bool scrollbar, int canvas_id)