mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Add tooltips for the buttons that open directories and files
Closes #5653.
This commit is contained in:
parent
3e458f8c10
commit
3780c74add
|
@ -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