Found a town window class. More...
Public Member Functions | |
FoundTownWindow (const WindowDesc *desc, WindowNumber window_number) | |
void | RandomTownName () |
void | UpdateButtons (bool check_availability) |
void | ExecuteFoundTownCommand (TileIndex tile, bool random, StringID errstr, CommandCallback cc) |
virtual void | OnPaint () |
virtual void | OnClick (Point pt, int widget, int click_count) |
virtual void | OnTimeout () |
virtual void | OnMouseLoop () |
virtual EventState | OnKeyPress (uint16 key, uint16 keycode) |
virtual void | OnPlaceObject (Point pt, TileIndex tile) |
virtual void | OnPlaceObjectAbort () |
virtual void | OnInvalidateData (int data=0, bool gui_scope=true) |
Some data on this window has become invalid. | |
Private Attributes | |
TownSize | town_size |
Selected town size. | |
TownLayout | town_layout |
Selected town layout. | |
bool | city |
Are we building a city? | |
bool | townnamevalid |
Is generated town name valid? | |
uint32 | townnameparts |
Generated town name. | |
TownNameParams | params |
Town name parameters. |
Found a town window class.
Definition at line 966 of file town_gui.cpp.
virtual void FoundTownWindow::OnInvalidateData | ( | int | data = 0 , |
|
bool | gui_scope = true | |||
) | [inline, virtual] |
Some data on this window has become invalid.
data | Information about the changed data. | |
gui_scope | Whether the call is done from GUI scope. You may not do everything when not in GUI scope. See InvalidateWindowData() for details. |
Definition at line 1135 of file town_gui.cpp.