texteff.hpp

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

Generated on Wed Mar 17 23:50:18 2010 for OpenTTD by  doxygen 1.6.1