| 32844 | } |
| 32845 | |
| 32846 | void GenericGUIMenu::AssistShrineGUI_t::createAssistShrine() |
| 32847 | { |
| 32848 | const int player = parentGUI.getPlayer(); |
| 32849 | if ( !gui || !assistShrineFrame || !players[player]->inventoryUI.frame ) |
| 32850 | { |
| 32851 | return; |
| 32852 | } |
| 32853 | if ( assistShrineGUIHasBeenCreated() ) |
| 32854 | { |
| 32855 | return; |
| 32856 | } |
| 32857 | |
| 32858 | SDL_Rect basePos{ 0, 0, assistShrineBaseWidth, 334 }; |
| 32859 | assistShrineSlotFrames.clear(); |
| 32860 | |
| 32861 | const int inventorySlotSize = players[player]->inventoryUI.getSlotSize(); |
| 32862 | |
| 32863 | { |
| 32864 | auto tooltipFrame = assistShrineFrame->addFrame("sheet tooltip"); |
| 32865 | { |
| 32866 | tooltipFrame->setSize(SDL_Rect{ 200, 0, 200, 200 }); |
| 32867 | tooltipFrame->setHollow(true); |
| 32868 | tooltipFrame->setInheritParentFrameOpacity(false); |
| 32869 | tooltipFrame->setDisabled(true); |
| 32870 | Uint32 color = makeColor(255, 255, 255, 255); |
| 32871 | tooltipFrame->addImage(SDL_Rect{ 0, 0, 6, 6 }, |
| 32872 | color, "*#images/ui/CharSheet/HUD_CharSheet_Tooltip_TL_00.png", Player::GUI_t::tooltipEffectBackgroundImages[Player::GUI_t::TOP_LEFT].c_str()); |
| 32873 | tooltipFrame->addImage(SDL_Rect{ 0, 0, 6, 6 }, |
| 32874 | color, "*#images/ui/CharSheet/HUD_CharSheet_Tooltip_TR_00.png", Player::GUI_t::tooltipEffectBackgroundImages[Player::GUI_t::TOP_RIGHT].c_str()); |
| 32875 | tooltipFrame->addImage(SDL_Rect{ 0, 0, 6, 6 }, |
| 32876 | color, "*#images/ui/CharSheet/HUD_CharSheet_Tooltip_T_00.png", Player::GUI_t::tooltipEffectBackgroundImages[Player::GUI_t::TOP].c_str()); |
| 32877 | tooltipFrame->addImage(SDL_Rect{ 0, 0, 6, 6 }, |
| 32878 | color, "*#images/ui/CharSheet/HUD_CharSheet_Tooltip_L_00.png", Player::GUI_t::tooltipEffectBackgroundImages[Player::GUI_t::MIDDLE_LEFT].c_str()); |
| 32879 | tooltipFrame->addImage(SDL_Rect{ 0, 0, 6, 6 }, |
| 32880 | color, "*#images/ui/CharSheet/HUD_CharSheet_Tooltip_R_00.png", Player::GUI_t::tooltipEffectBackgroundImages[Player::GUI_t::MIDDLE_RIGHT].c_str()); |
| 32881 | tooltipFrame->addImage(SDL_Rect{ 0, 0, 6, 6 }, |
| 32882 | makeColor(22, 24, 29, 255), "images/system/white.png", Player::GUI_t::tooltipEffectBackgroundImages[Player::GUI_t::MIDDLE].c_str()); |
| 32883 | tooltipFrame->addImage(SDL_Rect{ 0, 0, 6, 6 }, |
| 32884 | color, "*#images/ui/CharSheet/HUD_CharSheet_Tooltip_BL_00.png", Player::GUI_t::tooltipEffectBackgroundImages[Player::GUI_t::BOTTOM_LEFT].c_str()); |
| 32885 | tooltipFrame->addImage(SDL_Rect{ 0, 0, 6, 6 }, |
| 32886 | color, "*#images/ui/CharSheet/HUD_CharSheet_Tooltip_BR_00.png", Player::GUI_t::tooltipEffectBackgroundImages[Player::GUI_t::BOTTOM_RIGHT].c_str()); |
| 32887 | tooltipFrame->addImage(SDL_Rect{ 0, 0, 6, 6 }, |
| 32888 | color, "*#images/ui/CharSheet/HUD_CharSheet_Tooltip_B_00.png", Player::GUI_t::tooltipEffectBackgroundImages[Player::GUI_t::BOTTOM].c_str()); |
| 32889 | Player::GUI_t::imageSetWidthHeight9x9(tooltipFrame, Player::GUI_t::tooltipEffectBackgroundImages); |
| 32890 | Player::GUI_t::imageResizeToContainer9x9(tooltipFrame, SDL_Rect{ 0, 0, 200, 200 }, Player::GUI_t::tooltipEffectBackgroundImages); |
| 32891 | auto txt = tooltipFrame->addField("tooltip text", 1024); |
| 32892 | auto txtRightAlignHint = tooltipFrame->addField("tooltip text right align hint", 128); |
| 32893 | const char* tooltipFont = "fonts/pixel_maz_multiline.ttf#16#2"; |
| 32894 | txt->setFont(tooltipFont); |
| 32895 | txt->setColor(makeColor(188, 154, 114, 255)); |
| 32896 | txtRightAlignHint->setFont(tooltipFont); |
| 32897 | txtRightAlignHint->setColor(hudColors.characterSheetFaintText); |
| 32898 | auto glyph1 = tooltipFrame->addImage(SDL_Rect{ 0, 0, 0, 0 }, 0xFFFFFFFF, "images/system/white.png", "glyph 1"); |
| 32899 | glyph1->disabled = true; |
| 32900 | auto glyph2 = tooltipFrame->addImage(SDL_Rect{ 0, 0, 0, 0 }, 0xFFFFFFFF, "images/system/white.png", "glyph 2"); |
| 32901 | glyph2->disabled = true; |
| 32902 | auto glyph3 = tooltipFrame->addImage(SDL_Rect{ 0, 0, 0, 0 }, 0xFFFFFFFF, "images/system/white.png", "glyph 3"); |
| 32903 | glyph3->disabled = true; |
nothing calls this directly
no test coverage detected