Add tablet icon for touch device icon
This commit is contained in:
parent
89685bd101
commit
840a8cbb2d
@ -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
BIN
data/gui/icons/tablet.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user