mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Add edit box to write skin name
This commit is contained in:
parent
b3307dc2a6
commit
f9e66f0b41
|
@ -501,10 +501,13 @@ void CMenus::RenderSettingsTee(CUIRect MainView)
|
||||||
|
|
||||||
MainView.HSplitTop(50.0f, &Label, &MainView);
|
MainView.HSplitTop(50.0f, &Label, &MainView);
|
||||||
Label.VSplitLeft(230.0f, &Label, 0);
|
Label.VSplitLeft(230.0f, &Label, 0);
|
||||||
RenderTools()->DrawUIRect(&Label, ColorRGBA(1.0f, 1.0f, 1.0f, 0.25f), CUI::CORNER_ALL, 10.0f);
|
|
||||||
RenderTools()->RenderTee(CAnimState::GetIdle(), &OwnSkinInfo, 0, vec2(1, 0), vec2(Label.x+30.0f, Label.y+28.0f));
|
RenderTools()->RenderTee(CAnimState::GetIdle(), &OwnSkinInfo, 0, vec2(1, 0), vec2(Label.x+30.0f, Label.y+28.0f));
|
||||||
Label.VSplitLeft(70.0f, 0, &Label);
|
Label.VSplitLeft(70.0f, 0, &Label);
|
||||||
UI()->DoLabelScaled(&Label, Skin, 14.0f, -1, 150.0f);
|
Label.HMargin(15.0f, &Label);
|
||||||
|
//UI()->DoLabelScaled(&Label, Skin, 14.0f, -1, 150.0f);
|
||||||
|
static float s_OffsetSkin = 0.0f;
|
||||||
|
static int s_ClearButton = 0;
|
||||||
|
DoClearableEditBox(Skin, &s_ClearButton, &Label, Skin, sizeof(g_Config.m_ClPlayerSkin), 14.0f, &s_OffsetSkin, false, CUI::CORNER_ALL, "default");
|
||||||
|
|
||||||
// custom colour selector
|
// custom colour selector
|
||||||
MainView.HSplitTop(20.0f, 0, &MainView);
|
MainView.HSplitTop(20.0f, 0, &MainView);
|
||||||
|
|
Loading…
Reference in a new issue