texteff.hpp

Go to the documentation of this file.
00001 /* $Id: texteff.hpp 18636 2009-12-25 23:22:41Z smatz $ */
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 "gfx_type.h"
00016 
00020 enum TextEffectMode {
00021   TE_RISING, 
00022   TE_STATIC, 
00023 
00024   INVALID_TE_ID = 0xFFFF,
00025 };
00026 
00027 typedef uint16 TextEffectID;
00028 
00029 void MoveAllTextEffects();
00030 TextEffectID AddTextEffect(StringID msg, int x, int y, uint8 duration, TextEffectMode mode);
00031 void InitTextEffects();
00032 void DrawTextEffects(DrawPixelInfo *dpi);
00033 void UpdateTextEffect(TextEffectID effect_id, StringID msg);
00034 void RemoveTextEffect(TextEffectID effect_id);
00035 
00036 /* misc_gui.cpp */
00037 TextEffectID ShowFillingPercent(int x, int y, int z, uint8 percent, StringID colour);
00038 void UpdateFillingPercent(TextEffectID te_id, uint8 percent, StringID colour);
00039 void HideFillingPercent(TextEffectID *te_id);
00040 
00041 #endif /* TEXTEFF_HPP */

Generated on Tue Jan 5 21:02:59 2010 for OpenTTD by  doxygen 1.5.6