mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Merge #6163
6163: Add tooltips for the buttons that open directories and files r=Jupeyy a=Robyt3 Closes #5653. ## Checklist - [X] Tested the change ingame - [ ] Provided screenshots if it is a visual change - [ ] Tested in combination with possibly related configuration options - [ ] Written a unit test (especially base/) or added coverage to integration test - [ ] Considered possible null pointers and out of bounds array indexing - [ ] Changed no physics that affect existing maps - [ ] Tested the change with [ASan+UBSan or valgrind's memcheck](https://github.com/ddnet/ddnet/#using-addresssanitizer--undefinedbehavioursanitizer-or-valgrinds-memcheck) (optional) Co-authored-by: Robert Müller <robytemueller@gmail.com>
This commit is contained in:
commit
648b025906
|
@ -1406,6 +1406,7 @@ void CMenus::RenderDemoList(CUIRect MainView)
|
|||
dbg_msg("menus", "couldn't open file '%s'", aBuf);
|
||||
}
|
||||
}
|
||||
GameClient()->m_Tooltips.DoToolTip(&s_DirectoryButtonID, &DirectoryButton, Localize("Open the directory that contains the demo files"));
|
||||
|
||||
if(!m_DemolistSelectedIsDir)
|
||||
{
|
||||
|
|
|
@ -210,6 +210,7 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
|
|||
dbg_msg("menus", "couldn't open file '%s'", aBuf);
|
||||
}
|
||||
}
|
||||
GameClient()->m_Tooltips.DoToolTip(&s_SettingsButtonID, &SettingsButton, Localize("Open the settings file"));
|
||||
|
||||
Left.HSplitTop(15.0f, 0, &Left);
|
||||
CUIRect ConfigButton;
|
||||
|
@ -225,6 +226,7 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
|
|||
dbg_msg("menus", "couldn't open file '%s'", aBuf);
|
||||
}
|
||||
}
|
||||
GameClient()->m_Tooltips.DoToolTip(&s_ConfigButtonID, &ConfigButton, Localize("Open the directory that contains the configuration and user files"));
|
||||
|
||||
Left.HSplitTop(15.0f, 0, &Left);
|
||||
CUIRect DirectoryButton;
|
||||
|
@ -242,6 +244,7 @@ void CMenus::RenderSettingsGeneral(CUIRect MainView)
|
|||
dbg_msg("menus", "couldn't open file '%s'", aBuf);
|
||||
}
|
||||
}
|
||||
GameClient()->m_Tooltips.DoToolTip(&s_ThemesButtonID, &DirectoryButton, Localize("Open the directory to add custom themes"));
|
||||
|
||||
// auto statboard screenshot
|
||||
{
|
||||
|
@ -917,6 +920,7 @@ void CMenus::RenderSettingsTee(CUIRect MainView)
|
|||
dbg_msg("menus", "couldn't open file '%s'", aBuf);
|
||||
}
|
||||
}
|
||||
GameClient()->m_Tooltips.DoToolTip(&s_DirectoryButtonID, &DirectoryButton, Localize("Open the directory to add custom skins"));
|
||||
|
||||
TextRender()->SetCurFont(TextRender()->GetFont(TEXT_FONT_ICON_FONT));
|
||||
TextRender()->SetRenderFlags(ETextRenderFlags::TEXT_RENDER_FLAG_ONLY_ADVANCE_WIDTH | ETextRenderFlags::TEXT_RENDER_FLAG_NO_X_BEARING | ETextRenderFlags::TEXT_RENDER_FLAG_NO_Y_BEARING | ETextRenderFlags::TEXT_RENDER_FLAG_NO_PIXEL_ALIGMENT | ETextRenderFlags::TEXT_RENDER_FLAG_NO_OVERSIZE);
|
||||
|
|
|
@ -692,6 +692,7 @@ void CMenus::RenderSettingsCustom(CUIRect MainView)
|
|||
dbg_msg("menus", "couldn't open file '%s'", aBuf);
|
||||
}
|
||||
}
|
||||
GameClient()->m_Tooltips.DoToolTip(&s_AssetsDirID, &DirectoryButton, Localize("Open the directory to add custom assets"));
|
||||
|
||||
TextRender()->SetCurFont(TextRender()->GetFont(TEXT_FONT_ICON_FONT));
|
||||
TextRender()->SetRenderFlags(ETextRenderFlags::TEXT_RENDER_FLAG_ONLY_ADVANCE_WIDTH | ETextRenderFlags::TEXT_RENDER_FLAG_NO_X_BEARING | ETextRenderFlags::TEXT_RENDER_FLAG_NO_Y_BEARING | ETextRenderFlags::TEXT_RENDER_FLAG_NO_PIXEL_ALIGMENT | ETextRenderFlags::TEXT_RENDER_FLAG_NO_OVERSIZE);
|
||||
|
|
Loading…
Reference in a new issue