Correct persistent typo

Someone had, at some point long ago, written warp instead of wrap.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11371 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
wardje 2012-07-06 03:53:38 +00:00
parent c11fdc0bd8
commit 4a29403df6
15 changed files with 22 additions and 22 deletions

View File

@ -13,7 +13,7 @@
<!-- <!--
<spinner id="aikartamount" proportion="3" height="100%" min_value="0" max_value="8" icon="gui/karts%i.png"/> --> <spinner id="aikartamount" proportion="3" height="100%" min_value="0" max_value="8" icon="gui/karts%i.png"/> -->
<!-- The maximum is set by stk from data/stk_config.xml. --> <!-- The maximum is set by stk from data/stk_config.xml. -->
<spinner id="aikartamount" proportion="1" height="100%" min_value="0" warp_around="true"/> <spinner id="aikartamount" proportion="1" height="100%" min_value="0" wrap_around="true"/>
</div> </div>
<spacer proportion="1" width="25"/> <spacer proportion="1" width="25"/>

View File

@ -10,7 +10,7 @@
<label proportion="1" height="100%" <label proportion="1" height="100%"
I18N="In the new story mode game dialog" text="Select your identity" text_align="right" /> I18N="In the new story mode game dialog" text="Select your identity" text_align="right" />
<spacer width="50" height="25"/> <spacer width="50" height="25"/>
<spinner id="identity" proportion="1" height="100%" min_value="0" warp_around="true"/> <spinner id="identity" proportion="1" height="100%" min_value="0" wrap_around="true"/>
</div> </div>
<spacer proportion="1" width="25"/> <spacer proportion="1" width="25"/>

View File

@ -57,7 +57,7 @@
<spacer width="1" height="5%"/> <spacer width="1" height="5%"/>
<spinner id="lapcountspinner" width="50%" min_value="1" max_value="20" align="center" warp_around="true" <spinner id="lapcountspinner" width="50%" min_value="1" max_value="20" align="center" wrap_around="true"
I18N="In the track setup screen (number of laps choice, where %i is the number)" text="%i laps"/> I18N="In the track setup screen (number of laps choice, where %i is the number)" text="%i laps"/>
<spacer width="1" height="5%"/> <spacer width="1" height="5%"/>

View File

@ -473,8 +473,8 @@ namespace GUIEngine
this ribbon can have. this ribbon can have.
\n \n
\subsection prop18 PROP_WARP_AROUND \subsection prop18 PROP_WRAP_AROUND
<em> Name in XML files: </em> \c "warp_around" <em> Name in XML files: </em> \c "wrap_around"
Currently used for spinners only. Value can be "true" or "false" Currently used for spinners only. Value can be "true" or "false"

View File

@ -436,7 +436,7 @@ void EventHandler::navigateUp(const int playerID, Input::InputType type, const b
{ {
if (NAVIGATION_DEBUG) if (NAVIGATION_DEBUG)
{ {
std::cout << "EventHandler::navigateUp : warp around, selecting the last widget\n"; std::cout << "EventHandler::navigateUp : wrap around, selecting the last widget\n";
} }
// select the last widget // select the last widget
@ -560,7 +560,7 @@ void EventHandler::navigateDown(const int playerID, Input::InputType type, const
if (!found) if (!found)
{ {
if (NAVIGATION_DEBUG) std::cout << "Navigating down : warp around\n"; if (NAVIGATION_DEBUG) std::cout << "Navigating down : wrap around\n";
// select the first widget // select the first widget
Widget* firstWidget = NULL; Widget* firstWidget = NULL;

View File

@ -215,7 +215,7 @@ if(prop_name != NULL) widget.m_properties[prop_flag] = core::stringc(prop_name).
READ_PROPERTY(extend_label, PROP_EXTEND_LABEL); READ_PROPERTY(extend_label, PROP_EXTEND_LABEL);
READ_PROPERTY(label_location, PROP_LABELS_LOCATION); READ_PROPERTY(label_location, PROP_LABELS_LOCATION);
READ_PROPERTY(max_rows, PROP_MAX_ROWS); READ_PROPERTY(max_rows, PROP_MAX_ROWS);
READ_PROPERTY(warp_around, PROP_WARP_AROUND); READ_PROPERTY(wrap_around, PROP_WRAP_AROUND);
#undef READ_PROPERTY #undef READ_PROPERTY
const wchar_t* text = xml->getAttributeValue( L"text" ); const wchar_t* text = xml->getAttributeValue( L"text" );

View File

@ -100,7 +100,7 @@ namespace GUIEngine
PROP_EXTEND_LABEL, PROP_EXTEND_LABEL,
PROP_LABELS_LOCATION, PROP_LABELS_LOCATION,
PROP_MAX_ROWS, PROP_MAX_ROWS,
PROP_WARP_AROUND PROP_WRAP_AROUND
}; };
bool isWithinATextBox(); bool isWithinATextBox();

View File

@ -110,7 +110,7 @@ void ModelViewWidget::update(float delta)
else if (m_rotation_mode == ROTATE_TO) else if (m_rotation_mode == ROTATE_TO)
{ {
// check if we should rotate clockwise or counter-clockwise to reach the target faster // check if we should rotate clockwise or counter-clockwise to reach the target faster
// (taking warp-arounds into account) // (taking wrap-arounds into account)
const int angle_distance_from_end = (int)(360 - angle); const int angle_distance_from_end = (int)(360 - angle);
const int target_distance_from_end = (int)(360 - angle); const int target_distance_from_end = (int)(360 - angle);

View File

@ -479,7 +479,7 @@ EventPropagation RibbonWidget::rightPressed(const int playerID)
} }
} }
// if we reached a filler item, move again (but don't warp) // if we reached a filler item, move again (but don't wrap)
if (getSelectionIDString(playerID) == RibbonWidget::NO_ITEM_ID) if (getSelectionIDString(playerID) == RibbonWidget::NO_ITEM_ID)
{ {
if (m_selection[playerID] + 1 < m_children.size()) if (m_selection[playerID] + 1 < m_children.size())
@ -519,7 +519,7 @@ EventPropagation RibbonWidget::leftPressed(const int playerID)
} }
} }
// if we reached a filler item, move again (but don't warp) // if we reached a filler item, move again (but don't wrap)
if (getSelectionIDString(playerID) == RibbonWidget::NO_ITEM_ID) if (getSelectionIDString(playerID) == RibbonWidget::NO_ITEM_ID)
{ {
if (m_selection[playerID] > 0) leftPressed(playerID); if (m_selection[playerID] > 0) leftPressed(playerID);

View File

@ -58,7 +58,7 @@ void SpinnerWidget::add()
std::string min_s = m_properties[PROP_MIN_VALUE]; std::string min_s = m_properties[PROP_MIN_VALUE];
std::string max_s = m_properties[PROP_MAX_VALUE]; std::string max_s = m_properties[PROP_MAX_VALUE];
m_warp_around = (m_properties[PROP_WARP_AROUND] == "true"); m_wrap_around = (m_properties[PROP_WRAP_AROUND] == "true");
if (min_s.size() > 0) if (min_s.size() > 0)
{ {
@ -244,7 +244,7 @@ EventPropagation SpinnerWidget::rightPressed(const int playerID)
{ {
setValue(m_value+1); setValue(m_value+1);
} }
else if (m_warp_around) else if (m_wrap_around)
{ {
setValue(m_min); setValue(m_min);
} }
@ -266,7 +266,7 @@ EventPropagation SpinnerWidget::leftPressed(const int playerID)
{ {
setValue(m_value-1); setValue(m_value-1);
} }
else if (m_warp_around) else if (m_wrap_around)
{ {
setValue(m_max); setValue(m_max);
} }

View File

@ -69,8 +69,8 @@ namespace GUIEngine
*/ */
bool m_gauge; bool m_gauge;
/** \brief Whether to warp back to the first value when going "beyond" the last value */ /** \brief Whether to wrap back to the first value when going "beyond" the last value */
bool m_warp_around; bool m_wrap_around;
/** \brief implementing method from base class Widget */ /** \brief implementing method from base class Widget */
virtual EventPropagation transmitEvent(Widget* w, virtual EventPropagation transmitEvent(Widget* w,

View File

@ -367,7 +367,7 @@ bool ThreeStrikesBattle::isRaceOver()
*/ */
void ThreeStrikesBattle::terminateRace() void ThreeStrikesBattle::terminateRace()
{ {
updateKartRanks(); updateKartRanks();
WorldWithRank::terminateRace(); WorldWithRank::terminateRace();
} // terminateRace } // terminateRace

View File

@ -63,7 +63,7 @@ GPInfoDialog::GPInfoDialog(const std::string& gpIdent, const float w, const floa
// ---- GP Name // ---- GP Name
core::rect< s32 > area_top(0, 0, m_area.getWidth(), y1); core::rect< s32 > area_top(0, 0, m_area.getWidth(), y1);
IGUIStaticText* title = GUIEngine::getGUIEnv()->addStaticText( translations->fribidize(gp->getName()), IGUIStaticText* title = GUIEngine::getGUIEnv()->addStaticText( translations->fribidize(gp->getName()),
area_top, false, true, // border, word warp area_top, false, true, // border, word wrap
m_irrlicht_window); m_irrlicht_window);
title->setTabStop(false); title->setTabStop(false);
title->setTextAlignment(EGUIA_CENTER, EGUIA_CENTER); title->setTextAlignment(EGUIA_CENTER, EGUIA_CENTER);
@ -108,7 +108,7 @@ GPInfoDialog::GPInfoDialog(const std::string& gpIdent, const float w, const floa
widget->add(); widget->add();
// IGUIStaticText* line = GUIEngine::getGUIEnv()->addStaticText( lineText.c_str(), // IGUIStaticText* line = GUIEngine::getGUIEnv()->addStaticText( lineText.c_str(),
// entry_area, false , true , // border, word warp // entry_area, false , true , // border, word wrap
// m_irrlicht_window); // m_irrlicht_window);
} }

View File

@ -315,7 +315,7 @@ public:
m_player_ident_spinner->m_properties[PROP_MAX_VALUE] = m_player_ident_spinner->m_properties[PROP_MAX_VALUE] =
StringUtils::toString(playerAmount-1); StringUtils::toString(playerAmount-1);
m_player_ident_spinner->m_properties[PROP_ID] = spinnerID; m_player_ident_spinner->m_properties[PROP_ID] = spinnerID;
m_player_ident_spinner->m_properties[PROP_WARP_AROUND] = "true"; m_player_ident_spinner->m_properties[PROP_WRAP_AROUND] = "true";
//m_player_ident_spinner->m_event_handler = this; //m_player_ident_spinner->m_event_handler = this;
m_children.push_back(m_player_ident_spinner); m_children.push_back(m_player_ident_spinner);

View File

@ -63,7 +63,7 @@ void OptionsScreenUI::loadedFromFile()
GUIEngine::SpinnerWidget* skinSelector = getWidget<GUIEngine::SpinnerWidget>("skinchoice"); GUIEngine::SpinnerWidget* skinSelector = getWidget<GUIEngine::SpinnerWidget>("skinchoice");
assert( skinSelector != NULL ); assert( skinSelector != NULL );
skinSelector->m_properties[PROP_WARP_AROUND] = "true"; skinSelector->m_properties[PROP_WRAP_AROUND] = "true";
m_skins.clear(); m_skins.clear();
skinSelector->clearLabels(); skinSelector->clearLabels();