truelight@0: #ifndef GUI_H truelight@0: #define GUI_H truelight@0: darkvater@175: #include "window.h" darkvater@175: truelight@0: /* main_gui.c */ truelight@0: void SetupColorsAndInitialWindow(); truelight@0: void CcPlaySound10(bool success, uint tile, uint32 p1, uint32 p2); truelight@0: void PlaceProc_Sign(uint tile); truelight@0: truelight@0: /* settings_gui.c */ truelight@0: void ShowGameOptions(); truelight@0: void ShowGameDifficulty(); truelight@0: void ShowPatchesSelection(); dominik@478: void ShowNewgrf(); truelight@0: truelight@0: /* graph_gui.c */ truelight@0: void ShowOperatingProfitGraph(); truelight@0: void ShowIncomeGraph(); truelight@0: void ShowDeliveredCargoGraph(); truelight@0: void ShowPerformanceHistoryGraph(); truelight@0: void ShowCompanyValueGraph(); truelight@0: void ShowCargoPaymentRates(); truelight@0: void ShowCompanyLeagueTable(); dominik@116: void ShowPerformanceRatingDetail(); truelight@0: truelight@0: /* news_gui.c */ truelight@0: void ShowLastNewsMessage(); truelight@0: void ShowMessageOptions(); truelight@0: void ShowMessageHistory(); truelight@0: truelight@0: /* traintoolb_gui.c */ truelight@0: void ShowBuildRailToolbar(int index, int button); truelight@0: void PlaceProc_BuyLand(uint tile); truelight@0: truelight@0: /* train_gui.c */ truelight@0: void ShowPlayerTrains(int player); truelight@0: void ShowTrainViewWindow(Vehicle *v); truelight@0: void ShowTrainDetailsWindow(Vehicle *v); truelight@0: void ShowOrdersWindow(Vehicle *v); truelight@0: truelight@0: void ShowRoadVehViewWindow(Vehicle *v); truelight@0: truelight@0: /* road_gui.c */ truelight@0: void ShowBuildRoadToolbar(); truelight@0: void ShowBuildRoadScenToolbar(); truelight@0: void ShowPlayerRoadVehicles(int player); truelight@0: truelight@0: /* dock_gui.c */ truelight@0: void ShowBuildDocksToolbar(); truelight@0: void ShowPlayerShips(int player); truelight@0: truelight@0: void ShowShipViewWindow(Vehicle *v); truelight@0: truelight@0: /* aircraft_gui.c */ truelight@0: void ShowBuildAirToolbar(); truelight@0: void ShowPlayerAircraft(int player); truelight@0: truelight@0: /* terraform_gui.c */ truelight@0: void PlaceProc_DemolishArea(uint tile); truelight@0: void PlaceProc_LowerLand(uint tile); truelight@0: void PlaceProc_RaiseLand(uint tile); truelight@0: void PlaceProc_LevelLand(uint tile); truelight@0: void ShowTerraformToolbar(); truelight@0: truelight@0: /* misc_gui.c */ truelight@0: void PlaceLandBlockInfo(); truelight@0: void ShowAboutWindow(); truelight@0: void ShowBuildTreesToolbar(); truelight@0: void ShowBuildTreesScenToolbar(); truelight@0: void ShowTownDirectory(); truelight@0: void ShowIndustryDirectory(); truelight@0: void ShowSubsidiesList(); truelight@0: void ShowPlayerStations(int player); truelight@0: void ShowPlayerFinances(int player); truelight@0: void ShowPlayerCompany(int player); truelight@0: truelight@0: void ShowEstimatedCostOrIncome(int32 cost, int x, int y); truelight@0: void ShowErrorMessage(StringID msg_1, StringID msg_2, int x, int y); truelight@0: truelight@0: void DrawStationCoverageAreaText(int sx, int sy, uint mask); truelight@0: void CheckRedrawStationCoverage(Window *w); truelight@0: truelight@0: void ShowSmallMap(); darkvater@152: void ShowExtraViewPortWindow(); truelight@0: void SetVScrollCount(Window *w, int num); truelight@0: void SetHScrollCount(Window *w, int num); darkvater@175: int HandleEditBoxKey(Window *w, int wid, WindowEvent *we); truelight@0: truelight@0: void ShowCheatWindow(); truelight@0: void AskForNewGameToStart(); truelight@0: truelight@0: void DrawEditBox(Window *w, int wid); truelight@0: void HandleEditBox(Window *w, int wid); truelight@0: truelight@0: truelight@0: /* network gui */ truelight@0: void ShowNetworkGameWindow(); truelight@0: truelight@0: truelight@0: /* bridge_gui.c */ truelight@0: void ShowBuildBridgeWindow(uint start, uint end, byte type); truelight@0: truelight@0: enum { truelight@0: ZOOM_IN = 0, truelight@0: ZOOM_OUT = 1, truelight@0: ZOOM_NONE = 2, // hack, used to update the button status truelight@0: }; truelight@0: darkvater@152: bool DoZoomInOutWindow(int how, Window * w); truelight@0: void ShowBuildIndustryWindow(); truelight@0: void ShowQueryString(StringID str, StringID caption, int maxlen, int maxwidth, byte window_class, uint16 window_number); truelight@0: void ShowMusicWindow(); truelight@0: truelight@0: /* main_gui.c */ truelight@0: VARDEF byte _newspaper_flag; truelight@0: VARDEF byte _construct_mode; truelight@0: VARDEF byte _station_show_coverage; truelight@0: VARDEF PlaceProc *_place_proc; truelight@0: VARDEF bool _no_button_sound; truelight@0: truelight@0: #endif /* GUI_H */