Skip to content
This repository has been archived by the owner on Nov 5, 2020. It is now read-only.

Commit

Permalink
Added placeholder tool icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Apoorva Joshi committed Apr 24, 2016
1 parent 5ff1605 commit 779cc2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified img/ui.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/papaya_core.cpp
Expand Up @@ -1075,7 +1075,7 @@ void Core::UpdateAndRender(PapayaMemory* Mem)
ImGui::PushID(2);
ImGui::PushStyleColor(ImGuiCol_Button , (Mem->CurrentTool == PapayaTool_CropRotate) ? Mem->Colors[PapayaCol_Button] : Mem->Colors[PapayaCol_Transparent]);
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, (Mem->CurrentTool == PapayaTool_CropRotate) ? Mem->Colors[PapayaCol_Button] : Mem->Colors[PapayaCol_ButtonHover]);
if (ImGui::ImageButton((void*)(intptr_t)Mem->Textures[PapayaTex_UI], ImVec2(20, 20), CALCUV(0, 0), CALCUV(20, 20), 6, ImVec4(0, 0, 0, 0)))
if (ImGui::ImageButton((void*)(intptr_t)Mem->Textures[PapayaTex_UI], ImVec2(20, 20), CALCUV(40, 0), CALCUV(60, 20), 6, ImVec4(0, 0, 0, 0)))
{
Mem->CurrentTool = (Mem->CurrentTool != PapayaTool_CropRotate) ? PapayaTool_CropRotate : PapayaTool_None;
}
Expand Down Expand Up @@ -1127,7 +1127,7 @@ void Core::UpdateAndRender(PapayaMemory* Mem)
ImGui::PushID(0);
ImGui::PushStyleColor(ImGuiCol_Button , (Mem->Misc.PrefsOpen) ? Mem->Colors[PapayaCol_Button] : Mem->Colors[PapayaCol_Transparent]);
ImGui::PushStyleColor(ImGuiCol_ButtonHovered, (Mem->Misc.PrefsOpen) ? Mem->Colors[PapayaCol_Button] : Mem->Colors[PapayaCol_ButtonHover]);
if (ImGui::ImageButton((void*)(intptr_t)Mem->Textures[PapayaTex_UI], ImVec2(20, 20), CALCUV(0, 0), CALCUV(20, 20), 6, ImVec4(0, 0, 0, 0)))
if (ImGui::ImageButton((void*)(intptr_t)Mem->Textures[PapayaTex_UI], ImVec2(20, 20), CALCUV(40, 0), CALCUV(60, 20), 6, ImVec4(0, 0, 0, 0)))
{
Mem->Misc.PrefsOpen = !Mem->Misc.PrefsOpen;
}
Expand Down

0 comments on commit 779cc2d

Please sign in to comment.