yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
catalog_tile_browser.cc File Reference
#include "app/editor/graphics/catalog_tile_browser.h"
#include <algorithm>
#include <array>
#include <cctype>
#include <cstdlib>
#include <iterator>
#include <optional>
#include <string>
#include <utility>
#include "app/editor/graphics/graphics_editor_state.h"
#include "app/editor/graphics/graphics_palette_preview.h"
#include "app/editor/graphics/graphics_sheet_sync.h"
#include "app/editor/graphics/palette_controls_panel.h"
#include "app/gfx/resource/arena.h"
#include "app/gui/automation/widget_auto_register.h"
#include "app/gui/core/style.h"
#include "app/platform/asset_loader.h"
#include "app/platform/sdl_compat.h"
#include "imgui/imgui.h"
#include "imgui/misc/cpp/imgui_stdlib.h"
#include "util/file_util.h"
#include "util/macro.h"
#include "zelda3/game_data.h"
#include "zelda3/graphics_sheet_store.h"

Go to the source code of this file.

Classes

struct  yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::KindFilterOption
 

Namespaces

namespace  yaze
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 
namespace  yaze::editor::anonymous_namespace{catalog_tile_browser.cc}
 

Typedefs

using yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::Colors = std::array<ImU32, 16>
 

Functions

bool yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::SameRect (const CatalogArtRect &a, const CatalogArtRect &b)
 
const CatalogSheetSource * yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::SelectedSource (const CatalogTileBrowserState &browser)
 
absl::Status yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::EnsureAssetPreview (CatalogTileBrowserState &browser)
 
void yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::ResetSourceSelection (CatalogTileBrowserState &browser, int source)
 
bool yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::SameSourcePattern (const GraphicsEditContext &a, const GraphicsEditContext &b)
 
bool yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::Matches (std::string value, std::string filter)
 
int yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::DrawSheet (const char *id, const std::vector< uint8_t > &pixels, const Colors &colors, const std::set< int > &selected={}, int *hovered_tile=nullptr)
 
void yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::DrawLogicalAsset (CatalogTileBrowserState &browser, const Colors &colors)
 
void yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::DrawStagedPreview (CatalogTileBrowserState &browser)
 
CatalogSourceFilter yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::BrowserFilter (const CatalogTileBrowserState &browser)
 
void yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::DrawKindFilter (CatalogTileBrowserState &browser)
 
ImU32 yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::Bgr555Color (uint16_t color)
 
void yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::DrawPaletteSwatches (const std::vector< uint16_t > &palette)
 
void yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::DrawProvenance (const CatalogSheetSource &source)
 
bool yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::DrawMetadataFilter (const char *label, std::string &selected, const std::set< std::string > &values)
 
void yaze::editor::CancelCatalogArtPreview (CatalogTileBrowserState &browser)
 
absl::Status yaze::editor::LoadCatalogTileBrowser (CatalogTileBrowserState &browser, const std::string &filename)
 
absl::Status yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::ValidateCatalogArtPreviewInputs (CatalogTileBrowserState &browser, const GraphicsEditorState &destination, bool resolve_pattern)
 
absl::Status yaze::editor::ValidateCatalogArtPreview (CatalogTileBrowserState &browser, const GraphicsEditorState &destination)
 
absl::Status yaze::editor::TryCatalogArtOnObject (CatalogTileBrowserState &browser, GraphicsEditorState &destination)
 
absl::Status yaze::editor::ApplyCatalogArtToObject (CatalogTileBrowserState &browser, GraphicsEditorState &destination, UndoManager &history)
 
void yaze::editor::DrawCatalogTileBrowser (CatalogTileBrowserState &browser, GraphicsEditorState &destination, UndoManager *undo_manager, const std::string &destination_usage)
 

Variables

constexpr KindFilterOption yaze::editor::anonymous_namespace{catalog_tile_browser.cc}::kKindFilterOptions []