texteff.hpp

Go to the documentation of this file.
00001 /* $Id$ */
00002 
00003 /*
00004  * This file is part of OpenTTD.
00005  * OpenTTD 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, version 2.
00006  * OpenTTD 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.
00007  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
00008  */
00009 
00012 #ifndef TEXTEFF_HPP
00013 #define TEXTEFF_HPP
00014 
00015 #include "economy_type.h"
00016 #include "gfx_type.h"
00017 #include "strings_type.h"
00018 
00022 enum TextEffectMode {
00023   TE_RISING, 
00024   TE_STATIC, 
00025 
00026   INVALID_TE_ID = 0xFFFF,
00027 };
00028 
00029 typedef uint16 TextEffectID;
00030 
00031 void MoveAllTextEffects();
00032 TextEffectID AddTextEffect(StringID msg, int x, int y, uint8 duration, TextEffectMode mode);
00033 void InitTextEffects();
00034 void DrawTextEffects(DrawPixelInfo *dpi);
00035 void UpdateTextEffect(TextEffectID effect_id, StringID msg);
00036 void RemoveTextEffect(TextEffectID effect_id);
00037 
00038 /* misc_gui.cpp */
00039 TextEffectID ShowFillingPercent(int x, int y, int z, uint8 percent, StringID colour);
00040 void UpdateFillingPercent(TextEffectID te_id, uint8 percent, StringID colour);
00041 void HideFillingPercent(TextEffectID *te_id);
00042 
00043 void ShowCostOrIncomeAnimation(int x, int y, int z, Money cost);
00044 void ShowFeederIncomeAnimation(int x, int y, int z, Money cost);
00045 
00046 #endif /* TEXTEFF_HPP */

Generated on Sun May 8 07:30:21 2011 for OpenTTD by  doxygen 1.6.1