Add Direct Connect Button and Screen (#30)

* Add Direct Connect Button and Screen

* Remove accidental extra build directories for wasm

* Add DirectConnectScreen.cpp to the CMake

* Use Hungarian coding style notation
This commit is contained in:
ts
2023-08-06 02:09:06 -07:00
committed by GitHub
parent e073665644
commit 9e9d2110e3
18 changed files with 176 additions and 42 deletions

View File

@@ -262,13 +262,13 @@ void TextInputBox::render()
int textYPos = (m_height - 8) / 2;
if (m_text.empty())
drawString(m_pFont, m_placeholder, m_xPos + 2, m_yPos + 2, 0x404040);
drawString(m_pFont, m_placeholder, m_xPos + 5, m_yPos + textYPos, 0x404040);
else
drawString(m_pFont, m_text, m_xPos + 2, m_yPos + textYPos, 0xFFFFFF);
drawString(m_pFont, m_text, m_xPos + 5, m_yPos + textYPos, 0xFFFFFF);
if (m_bCursorOn)
{
int xPos = 2;
int xPos = 5;
std::string substr = m_text.substr(0, m_insertHead);
xPos += m_pFont->width(substr);