Skip to content

Commit

Permalink
Merge pull request ddnet#9422 from Robyt3/Client-Touch-Controls-Wiki-…
Browse files Browse the repository at this point in the history
…Link

Add button to open Touch controls wiki page to controls editor
  • Loading branch information
def- authored Dec 24, 2024
2 parents 2c1f076 + 56d912e commit f5bebc6
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/game/client/components/menus_ingame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,19 @@ void CMenus::RenderTouchControlsEditor(CUIRect MainView)
MainView.Draw(ms_ColorTabbarActive, IGraphics::CORNER_ALL, 10.0f);
MainView.Margin(10.0f, &MainView);

MainView.HSplitTop(25.0f, &Label, &MainView);
MainView.HSplitTop(25.0f, &Row, &MainView);
MainView.HSplitTop(5.0f, nullptr, &MainView);
Row.VSplitLeft(Row.h, nullptr, &Row);
Row.VSplitRight(Row.h, &Row, &Button);
Row.VMargin(5.0f, &Label);
Ui()->DoLabel(&Label, Localize("Edit touch controls"), 20.0f, TEXTALIGN_MC);

static CButtonContainer s_OpenHelpButton;
if(DoButton_FontIcon(&s_OpenHelpButton, FONT_ICON_QUESTION, 0, &Button))
{
Client()->ViewLink(Localize("https://wiki.ddnet.org/wiki/Touch_controls"));
}

MainView.HSplitTop(25.0f, &Row, &MainView);
MainView.HSplitTop(5.0f, nullptr, &MainView);

Expand Down

0 comments on commit f5bebc6

Please sign in to comment.