From b9504f4afaccb7611af7f37fa8afc5c8af36ead7 Mon Sep 17 00:00:00 2001 From: auria Date: Sat, 23 Feb 2013 21:49:31 +0000 Subject: [PATCH] Delete old unused files git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12523 178a84e3-b1eb-0310-8ba1-8eac791a3b58 --- sources.cmake | 5 +- src/states_screens/dialogs/story_mode_new.cpp | 81 ------------------- src/states_screens/dialogs/story_mode_new.hpp | 50 ------------ 3 files changed, 3 insertions(+), 133 deletions(-) delete mode 100644 src/states_screens/dialogs/story_mode_new.cpp delete mode 100644 src/states_screens/dialogs/story_mode_new.hpp diff --git a/sources.cmake b/sources.cmake index ebfc37164..869e8e19e 100644 --- a/sources.cmake +++ b/sources.cmake @@ -174,7 +174,6 @@ src/states_screens/dialogs/player_info_dialog.cpp src/states_screens/dialogs/press_a_key_dialog.cpp src/states_screens/dialogs/race_paused_dialog.cpp src/states_screens/dialogs/select_challenge.cpp -src/states_screens/dialogs/story_mode_new.cpp src/states_screens/dialogs/track_info_dialog.cpp src/states_screens/dialogs/tutorial_message_dialog.cpp src/states_screens/feature_unlocked.cpp @@ -374,6 +373,7 @@ src/modes/game_tutorial.hpp src/modes/linear_world.hpp src/modes/overworld.hpp src/modes/profile_world.hpp +src/modes/soccer_world.hpp src/modes/standard_race.hpp src/modes/three_strikes_battle.hpp src/modes/tutorial_world.hpp @@ -433,7 +433,6 @@ src/states_screens/dialogs/player_info_dialog.hpp src/states_screens/dialogs/press_a_key_dialog.hpp src/states_screens/dialogs/race_paused_dialog.hpp src/states_screens/dialogs/select_challenge.hpp -src/states_screens/dialogs/story_mode_new.hpp src/states_screens/dialogs/track_info_dialog.hpp src/states_screens/dialogs/tutorial_message_dialog.hpp src/states_screens/feature_unlocked.hpp @@ -457,6 +456,7 @@ src/states_screens/race_gui.hpp src/states_screens/race_gui_overworld.hpp src/states_screens/race_result_gui.hpp src/states_screens/race_setup_screen.hpp +src/states_screens/soccer_setup_screen.hpp src/states_screens/state_manager.hpp src/states_screens/story_mode_lobby.hpp src/states_screens/tracks_screen.hpp @@ -474,6 +474,7 @@ src/tinygettext/tinygettext.hpp src/tracks/ambient_light_sphere.hpp src/tracks/bezier_curve.hpp src/tracks/check_cannon.hpp +src/tracks/check_goal.hpp src/tracks/check_lap.hpp src/tracks/check_line.hpp src/tracks/check_manager.hpp diff --git a/src/states_screens/dialogs/story_mode_new.cpp b/src/states_screens/dialogs/story_mode_new.cpp deleted file mode 100644 index cf67bbbb0..000000000 --- a/src/states_screens/dialogs/story_mode_new.cpp +++ /dev/null @@ -1,81 +0,0 @@ -// SuperTuxKart - a fun racing game with go-kart -// Copyright (C) 2009 Marianne Gagnon -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either version 3 -// of the License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -#include "states_screens/dialogs/story_mode_new.hpp" - -#include "config/user_config.hpp" -#include "config/player.hpp" -#include "guiengine/widgets/ribbon_widget.hpp" -#include "guiengine/widgets/spinner_widget.hpp" -#include "states_screens/state_manager.hpp" -#include "utils/translation.hpp" - -#include - - -using namespace GUIEngine; -using namespace irr; -using namespace irr::core; -using namespace irr::gui; - -// ----------------------------------------------------------------------------- - -StoryModeNewDialog::StoryModeNewDialog(const float w, const float h) : - ModalDialog(w, h) -{ - loadFromFile("story_mode_new.stkgui"); - - SpinnerWidget* ident = getWidget("identity"); - - const int playerAmount = UserConfigParams::m_all_players.size(); - ident->setMax(playerAmount - 1); - for(int n=0; naddLabel( translations->fribidize(UserConfigParams::m_all_players[n].getName()) ); - } - - RibbonWidget* difficulty = getWidget("difficulty"); - difficulty->setSelection( 1 /* medium */, PLAYER_ID_GAME_MASTER ); - - ident->setFocusForPlayer(PLAYER_ID_GAME_MASTER); -} - -// ----------------------------------------------------------------------------- - -StoryModeNewDialog::~StoryModeNewDialog() -{ -} - -// ----------------------------------------------------------------------------- - -GUIEngine::EventPropagation StoryModeNewDialog::processEvent(const std::string& eventSource) -{ - if (eventSource == "cancel") - { - dismiss(); - return GUIEngine::EVENT_BLOCK; - } - else if (eventSource == "startgame") - { - // TODO - } - return GUIEngine::EVENT_LET; -} - -// ----------------------------------------------------------------------------- - - diff --git a/src/states_screens/dialogs/story_mode_new.hpp b/src/states_screens/dialogs/story_mode_new.hpp deleted file mode 100644 index 6706916d0..000000000 --- a/src/states_screens/dialogs/story_mode_new.hpp +++ /dev/null @@ -1,50 +0,0 @@ -// SuperTuxKart - a fun racing game with go-kart -// Copyright (C) 2009 Marianne Gagnon -// -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either version 3 -// of the License, or (at your option) any later version. -// -// This program is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - - -#ifndef HEADER_STORY_MODE_NEW_DIALOG_HPP -#define HEADER_STORY_MODE_NEW_DIALOG_HPP - -#include "guiengine/modaldialog.hpp" - -namespace GUIEngine -{ - class TextBoxWidget; - class ButtonWidget; - class LabelWidget; -} - -/** - * \brief Dialog that allows the player to create a new story mode game - * \ingroup states_screens - */ -class StoryModeNewDialog : public GUIEngine::ModalDialog//, public GUIEngine::ITextBoxWidgetListener -{ - -public: - /** - * Creates a modal dialog with given percentage of screen width and height - */ - StoryModeNewDialog(const float percentWidth, const float percentHeight); - ~StoryModeNewDialog(); - - GUIEngine::EventPropagation processEvent(const std::string& eventSource); - - //virtual void onTextUpdated(); -}; - -#endif