yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
palette_utility.cc File Reference
#include "palette_utility.h"
#include "absl/strings/str_format.h"
#include "app/editor/palette/palette_editor.h"
#include "app/gfx/types/snes_palette.h"
#include "app/gui/core/icons.h"
#include "app/rom.h"
#include "imgui/imgui.h"

Go to the source code of this file.

Namespaces

namespace  yaze
 Main namespace for the application.
 
namespace  yaze::editor
 Editors are the view controllers for the application.
 
namespace  yaze::editor::palette_utility
 Utility functions for palette operations across editors.
 

Functions

bool yaze::editor::palette_utility::DrawPaletteJumpButton (const char *label, const std::string &group_name, int palette_index, PaletteEditor *editor)
 Draw a palette selector button that opens palette editor.
 
bool yaze::editor::palette_utility::DrawInlineColorEdit (const char *label, gfx::SnesColor *color, const std::string &group_name, int palette_index, int color_index, PaletteEditor *editor)
 Draw inline color edit with jump to palette.
 
bool yaze::editor::palette_utility::DrawPaletteIdSelector (const char *label, int *palette_id, const std::string &group_name, PaletteEditor *editor)
 Draw a compact palette ID selector with preview.
 
void yaze::editor::palette_utility::DrawColorInfoTooltip (const gfx::SnesColor &color)
 Draw color info tooltip on hover.
 
void yaze::editor::palette_utility::DrawPalettePreview (const std::string &group_name, int palette_index, class Rom *rom)
 Draw a small palette preview (8 colors in a row)