Add tablet icon for touch device icon

This commit is contained in:
Benau 2020-03-15 13:54:28 +08:00
parent 89685bd101
commit 840a8cbb2d
3 changed files with 5 additions and 1 deletions

View File

@ -49,6 +49,8 @@ lap_flag.png, modified by Alayan, original by Alina Oleynik from The Noun Projec
Android robot.png is licensed under the terms of the Creative Commons Attribution license
tablet.png is licensed under public domain
====
Glass Skin by Auria, under CC-BY-SA 3+

BIN
data/gui/icons/tablet.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -62,12 +62,14 @@ void OptionsScreenInput::loadedFromFile()
video::ITexture* icon2 = irr_driver->getTexture( file_manager->getAsset(FileManager::GUI_ICON,"keyboard_off.png" ));
video::ITexture* icon3 = irr_driver->getTexture( file_manager->getAsset(FileManager::GUI_ICON,"gamepad.png" ));
video::ITexture* icon4 = irr_driver->getTexture( file_manager->getAsset(FileManager::GUI_ICON,"gamepad_off.png"));
video::ITexture* icon5 = irr_driver->getTexture( file_manager->getAsset(FileManager::GUI_ICON,"tablet.png" ));
m_icon_bank = new irr::gui::STKModifiedSpriteBank( GUIEngine::getGUIEnv() );
m_icon_bank->addTextureAsSprite(icon1);
m_icon_bank->addTextureAsSprite(icon2);
m_icon_bank->addTextureAsSprite(icon3);
m_icon_bank->addTextureAsSprite(icon4);
m_icon_bank->addTextureAsSprite(icon5);
// scale icons depending on font height
const float scale = GUIEngine::getFontHeight() / 72.0f;
@ -169,7 +171,7 @@ void OptionsScreenInput::buildDeviceList()
if (touch_device != NULL)
{
devices->addItem("touch_device", (core::stringw(" ") +
_("Touch Device")).c_str(), 2);
_("Touch Device")).c_str(), 4);
}
} // buildDeviceList