Cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9902 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
@@ -37,7 +37,7 @@ using namespace GUIEngine;
|
||||
using namespace irr::gui;
|
||||
using namespace irr::core;
|
||||
|
||||
// ------------------------------------------------------------------------------------------------------
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
AddDeviceDialog::AddDeviceDialog() : ModalDialog(0.90f, 0.80f)
|
||||
{
|
||||
@@ -49,13 +49,26 @@ AddDeviceDialog::AddDeviceDialog() : ModalDialog(0.90f, 0.80f)
|
||||
|
||||
core::rect<s32> text_area( 15, 15, m_area.getWidth()-15, y_bottom-15 );
|
||||
|
||||
core::stringw msg = _("To add a new Gamepad/Joystick device, simply start SuperTuxKart with it connected and it will appear in the list.\n\nTo add a keyboard config, you can use the button below, HOWEVER please note that most keyboards only support a limited amount of simultaneous keypresses and are thus inappropriate for multiplayer gameplay. (You can, however, connect multiple keyboards to the computer. Remember that everyone still needs different keybindings in this case.)");
|
||||
IGUIStaticText* b = GUIEngine::getGUIEnv()->addStaticText(msg.c_str(),
|
||||
text_area, false , true , // border, word warp
|
||||
m_irrlicht_window);
|
||||
core::stringw msg =
|
||||
_("To add a new Gamepad/Joystick device, simply start SuperTuxKart "
|
||||
"with it connected and it will appear in the list.\n\nTo add a "
|
||||
"keyboard config, you can use the button below, HOWEVER please "
|
||||
"note that most keyboards only support a limited amount of "
|
||||
"simultaneous keypresses and are thus inappropriate for multiplayer "
|
||||
"gameplay. (You can, however, connect multiple keyboards to the "
|
||||
"computer. Remember that everyone still needs different keybindings "
|
||||
"in this case.)");
|
||||
IGUIStaticText* b =
|
||||
GUIEngine::getGUIEnv()->addStaticText(msg.c_str(),
|
||||
text_area,
|
||||
/*border*/false ,
|
||||
/*word wrap*/true,
|
||||
m_irrlicht_window);
|
||||
b->setTabStop(false);
|
||||
b->setRightToLeft(translations->isRTLLanguage());
|
||||
b->setText(msg.c_str()); // because it looks like 'setRightToLeft' applies next time setText is called only
|
||||
// because it looks like 'setRightToLeft' applies next time
|
||||
// setText is called only
|
||||
b->setText(msg.c_str());
|
||||
|
||||
{
|
||||
ButtonWidget* widget = new ButtonWidget();
|
||||
@@ -95,17 +108,18 @@ AddDeviceDialog::AddDeviceDialog() : ModalDialog(0.90f, 0.80f)
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
} // AddDeviceDialog
|
||||
|
||||
// ------------------------------------------------------------------------------------------------------
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void AddDeviceDialog::onEnterPressedInternal()
|
||||
{
|
||||
}
|
||||
} // onEnterPressedInternal
|
||||
|
||||
// ------------------------------------------------------------------------------------------------------
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
GUIEngine::EventPropagation AddDeviceDialog::processEvent(const std::string& eventSource)
|
||||
GUIEngine::EventPropagation AddDeviceDialog::processEvent
|
||||
(const std::string& eventSource)
|
||||
{
|
||||
|
||||
if (eventSource == "cancel")
|
||||
@@ -125,6 +139,6 @@ GUIEngine::EventPropagation AddDeviceDialog::processEvent(const std::string& eve
|
||||
}
|
||||
|
||||
return GUIEngine::EVENT_LET;
|
||||
}
|
||||
} // processEvent
|
||||
|
||||
// ------------------------------------------------------------------------------------------------------
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user