88 if (BeginTable(
"##BlocksetTable", sheet_only ? 1 : 2,
89 ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable,
92 TableSetupColumn(
"Inputs", ImGuiTableColumnFlags_WidthStretch,
93 GetContentRegionAvail().x);
96 TableSetupColumn(
"Sheets", ImGuiTableColumnFlags_WidthFixed, 256);
103 for (
int i = 0; i < 8; i++) {
104 SetNextItemWidth(100.f);
114 for (
int i = 0; i < 8; i++) {
116 auto sheet =
rom()->gfx_sheets().at(sheet_id);
118 0x20,
true,
false, 22);
127 Text(
"Values - Overwrites 4 of main blockset");
128 if (BeginTable(
"##Roomstable", 3,
129 ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable,
131 TableSetupColumn(
"List", ImGuiTableColumnFlags_WidthFixed, 100);
132 TableSetupColumn(
"Inputs", ImGuiTableColumnFlags_WidthStretch,
133 GetContentRegionAvail().x);
134 TableSetupColumn(
"Sheets", ImGuiTableColumnFlags_WidthFixed, 256);
140 BeginChild(
"##RoomsetList");
141 for (
int i = 0; i < 0x51; i++) {
143 std::string roomset_label = absl::StrFormat(
"0x%02X", i);
144 rom()->resource_label()->SelectableLabelWithNameEdit(
145 false,
"roomset", roomset_label,
"Roomset " + roomset_label);
146 if (IsItemClicked()) {
157 for (
int i = 0; i < 4; i++) {
158 SetNextItemWidth(100.f);
167 for (
int i = 0; i < 4; i++) {
169 auto sheet =
rom()->gfx_sheets().at(sheet_id);
171 0x20,
true,
false, 23);
180 if (BeginTable(
"##SpritesTable", sheet_only ? 1 : 2,
181 ImGuiTableFlags_Borders | ImGuiTableFlags_Resizable,
184 TableSetupColumn(
"Inputs", ImGuiTableColumnFlags_WidthStretch,
185 GetContentRegionAvail().x);
187 TableSetupColumn(
"Sheets", ImGuiTableColumnFlags_WidthFixed, 256);
194 for (
int i = 0; i < 4; i++) {
195 SetNextItemWidth(100.f);
205 for (
int i = 0; i < 4; i++) {
207 auto sheet =
rom()->gfx_sheets().at(115 + sheet_id);
209 0x20,
true,
false, 24);
243 rom()->resource_label()->SelectableLabelWithNameEdit(
247 uint8_t &dungeon_main_palette_val =
249 uint8_t &dungeon_spr_pal_1_val =
251 uint8_t &dungeon_spr_pal_2_val =
253 uint8_t &dungeon_spr_pal_3_val =
258 rom()->resource_label()->SelectableLabelWithNameEdit(
260 std::to_string(dungeon_main_palette_val),
"Unnamed dungeon palette");
261 auto &palette = *
rom()->mutable_palette_group()->dungeon_main.mutable_palette(
263 DrawPaletteFromPaletteGroup(palette);
268 *
rom()->mutable_palette_group()->sprites_aux1.mutable_palette(
270 DrawPaletteFromPaletteGroup(spr_aux_pal1);
272 rom()->resource_label()->SelectableLabelWithNameEdit(
274 std::to_string(dungeon_spr_pal_1_val),
"Dungeon Spr Pal 1");
279 *
rom()->mutable_palette_group()->sprites_aux2.mutable_palette(
281 DrawPaletteFromPaletteGroup(spr_aux_pal2);
283 rom()->resource_label()->SelectableLabelWithNameEdit(
285 std::to_string(dungeon_spr_pal_2_val),
"Dungeon Spr Pal 2");
290 *
rom()->mutable_palette_group()->sprites_aux3.mutable_palette(
292 DrawPaletteFromPaletteGroup(spr_aux_pal3);
294 rom()->resource_label()->SelectableLabelWithNameEdit(
296 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)