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 "rom/rom.h"
10#include "zelda3/game_data.h"
11
12namespace yaze {
13namespace editor {
14
15class PaletteEditor; // Forward declaration
16
20namespace palette_utility {
21
30bool DrawPaletteJumpButton(const char* label, const std::string& group_name,
31 int palette_index, PaletteEditor* editor);
32
43bool DrawInlineColorEdit(const char* label, gfx::SnesColor* color,
44 const std::string& group_name, int palette_index,
45 int color_index, PaletteEditor* editor);
46
55bool DrawPaletteIdSelector(const char* label, int* palette_id,
56 const std::string& group_name,
57 PaletteEditor* editor);
58
63void DrawColorInfoTooltip(const gfx::SnesColor& color);
64
71void DrawPalettePreview(const std::string& group_name, int palette_index,
72 zelda3::GameData* game_data);
73
74} // namespace palette_utility
75
76} // namespace editor
77} // namespace yaze
78
79#endif // YAZE_APP_EDITOR_PALETTE_UTILITY_H
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.
void DrawPalettePreview(const std::string &group_name, int palette_index, zelda3::GameData *game_data)
Draw a small palette preview (8 colors in a row)
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 DrawColorInfoTooltip(const gfx::SnesColor &color)
Draw color info tooltip on hover.