yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
palette_utility.h
Go to the documentation of this file.
1#ifndef YAZE_APP_EDITOR_PALETTE_UTILITY_H
2#define YAZE_APP_EDITOR_PALETTE_UTILITY_H
3
4#include <string>
5
8#include "imgui/imgui.h"
9#include "app/rom.h"
10
11namespace yaze {
12namespace editor {
13
14class PaletteEditor; // Forward declaration
15
19namespace palette_utility {
20
29bool DrawPaletteJumpButton(const char* label, const std::string& group_name,
30 int palette_index, PaletteEditor* editor);
31
42bool DrawInlineColorEdit(const char* label, gfx::SnesColor* color,
43 const std::string& group_name, int palette_index,
44 int color_index, PaletteEditor* editor);
45
54bool DrawPaletteIdSelector(const char* label, int* palette_id,
55 const std::string& group_name,
56 PaletteEditor* editor);
57
62void DrawColorInfoTooltip(const gfx::SnesColor& color);
63
70void DrawPalettePreview(const std::string& group_name, int palette_index,
71 class Rom* rom);
72
73} // namespace palette_utility
74
75} // namespace editor
76} // namespace yaze
77
78#endif // YAZE_APP_EDITOR_PALETTE_UTILITY_H
79
bool DrawPaletteJumpButton(const char *label, const std::string &group_name, int palette_index, PaletteEditor *editor)
Draw a palette selector button that opens palette editor.
bool DrawPaletteIdSelector(const char *label, int *palette_id, const std::string &group_name, PaletteEditor *editor)
Draw a compact palette ID selector with preview.
bool 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.
void DrawPalettePreview(const std::string &group_name, int palette_index, Rom *rom)
Draw a small palette preview (8 colors in a row)
void DrawColorInfoTooltip(const gfx::SnesColor &color)
Draw color info tooltip on hover.
Main namespace for the application.
Definition controller.cc:20