103 if (ImGui::IsItemHovered()) {
104 ImGui::BeginTooltip();
105 ImGui::Text(
"Pencil (1)");
110 if (ImGui::IsItemHovered()) {
111 ImGui::BeginTooltip();
112 ImGui::Text(
"Eraser (2)");
117 if (ImGui::IsItemHovered()) {
118 ImGui::BeginTooltip();
119 ImGui::Text(
"Bucket (3)");
124 if (ImGui::IsItemHovered()) {
125 ImGui::BeginTooltip();
126 ImGui::Text(
"Picker (4)");
131 if (ImGui::IsItemHovered()) {
132 ImGui::BeginTooltip();
133 ImGui::Text(
"Select (5)");
143 keybinds.
Register(
"pencil", {
false,
false,
false, ImGuiKey_1});
144 keybinds.
Register(
"eraser", {
false,
false,
false, ImGuiKey_2});
145 keybinds.
Register(
"bucket", {
false,
false,
false, ImGuiKey_3});
146 keybinds.
Register(
"picker", {
false,
false,
false, ImGuiKey_4});
147 keybinds.
Register(
"select", {
false,
false,
false, ImGuiKey_5});
ImGui/OpenGL/GLFW integration utilities and file dialog wrapper.
Keyboard input system including key masks, shortcuts, and keybind registry.
Global handles for textures and audio used across FuncDoodle.
Logging system, assertion macros, platform utilities, and build/config macros.
Defines pixel color structures and frame/image data containers.
Stores and persists all keybinds used in FuncDoodle (default + user-defined).
Definition Keybinds.h:250
Shortcut Get(const char *id)
Returns the effective shortcut registered for an identifier.
Definition Keybinds.cc:191
void Register(const char *id, Shortcut shortcut)
Registers a default shortcut for an identifier.
Definition Keybinds.cc:200
The FuncDoodle C++ namespace.
Definition Common.h:12
uint32_t s_BucketTexId
Bucket tool icon texture.
Definition LoadedAssets.cc:13
uint32_t s_PencilTexId
Pencil tool icon texture.
Definition LoadedAssets.cc:10
static void Tooltips(ToolType tool)
Definition Tool.h:100
constexpr const char * ToolTypeName(ToolType t)
Returns the user-facing name of a tool type.
Definition Tool.h:58
static void ToolKeybindsRegister(KeybindsRegistry &keybinds)
Definition Tool.h:142
static void ToolKeybinds(ToolType *tool, KeybindsRegistry &keybinds)
Definition Tool.h:151
uint32_t s_PickerTexId
Color picker tool icon texture.
Definition LoadedAssets.cc:11
uint32_t s_SelectTexId
Selection tool icon texture.
Definition LoadedAssets.cc:14
ToolType
All available tools in the editor.
Definition Tool.h:35
@ Eraser
Definition Tool.h:37
@ Bucket
Definition Tool.h:38
@ Pencil
Definition Tool.h:36
@ Select
Definition Tool.h:40
@ Picker
Definition Tool.h:39
uint32_t s_EraserTexId
Eraser tool icon texture.
Definition LoadedAssets.cc:12
constexpr uint32_t ToolTexID(ToolType tool)
Returns the toolbar texture ID associated with a tool.
Definition Tool.h:78
constexpr std::array< ToolType, 5 > ToolTypes
Ordered list of tools used for iteration and UI rendering.
Definition Tool.h:47
bool IsPressed() const
Returns whether the full shortcut is active.
Definition Keybinds.cc:178