frosch
73046c96b0
(svn r27351) [1.5] -Backport from trunk:
...
- Fix: Do not rerandomise the town name when only cost-estimating the founding [FS#6332] (r27341)
- Fix: Make variety distribution not assume that sea level is at height 0.2 / 3 * TGPGetMaxHeight() [FS#6335] (r27331, r27330, r27329, r27328)
- Fix: Remove corner-case optimisation for line drawing, which failed for dashed lines (r27324)
- Fix: Clipping of inclined lines did not account for the 'horizontal width' being bigger than the 'real width' (r27323, r27322)
2015-09-04 18:03:53 +03:00
pelya
0d868d80bd
Merge branch 'master' into 1.5
...
Conflicts:
src/ai/ai_gui.cpp
src/build_vehicle_gui.cpp
src/cheat_gui.cpp
src/company_gui.cpp
src/depot_gui.cpp
src/dock_gui.cpp
src/genworld_gui.cpp
src/misc_gui.cpp
src/network/network_content_gui.cpp
src/network/network_gui.cpp
src/newgrf_gui.cpp
src/news_gui.cpp
src/rail_gui.cpp
src/road_gui.cpp
src/settings_gui.cpp
src/settings_gui.h
src/station_gui.cpp
src/table/settings.ini
src/toolbar_gui.cpp
src/toolbar_gui.h
src/vehicle_gui.cpp
src/video/sdl_v.cpp
src/widget.cpp
src/widgets/settings_widget.h
2015-03-29 21:48:14 +03:00
pelya
9a3b8e8969
Fixed town aythority window and new town dialog too tall
2015-03-29 20:19:03 +03:00
peter1138
6872b647f1
(svn r26960) -Codechange: Draw sort button symbols as sprites, and pad sort buttons with non-static width.
2014-10-05 11:20:02 +00:00
frosch
fba10bead9
(svn r26859) -Fix [FS#6119]: Height computation of game script text in town GUI did not consider margins.
2014-09-20 11:32:54 +00:00
Sergii Pylypenko
91ebce1a9c
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
src/console_gui.cpp
src/genworld_gui.cpp
src/group_gui.cpp
src/misc_gui.cpp
src/settings_gui.cpp
src/widgets/settings_widget.h
2014-06-04 17:09:23 +03:00
rubidium
2be4215f43
(svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-04-23 20:13:33 +00:00
pelya
55a09da6b2
Merge remote-tracking branch 'upstream/master'
2014-03-23 19:04:54 +02:00
frosch
5c3b3f84d6
(svn r26422) -Fix [FS#5946]: Some road constructions used the rail sound effect. Rename the enum items to properly reflect their purpose.
2014-03-23 13:28:32 +00:00
Juanjo
141bb0861e
Before opening linked to main toolbar windows, delete linked windows.
2014-03-15 22:56:17 +02:00
Juanjo
7079e675bf
Align construction windows with main toolbar.
2014-03-15 22:53:35 +02:00
Juanjo
96d3b0695c
Amend gui's to work with touchscreen controls.
2014-03-15 22:23:22 +02:00
Juanjo
c872509d7b
Do actions when releasing the mouse, instead of when clicking:
...
Build town, industry, airport, dock, lock,
buoy, aqueduct, depots, change bridge rail/road specs.
2014-03-15 21:56:55 +02:00
Juanjo
3f81edb664
More sizing and centering.
2014-03-15 21:36:24 +02:00
Juanjo
0442649289
Add min sizing.
2014-03-15 21:35:16 +02:00
Juanjo
cab76bd7af
Draw strings vertically aligned on some windows.
2014-03-15 21:34:36 +02:00
Juanjo
829c5f8dd2
Use resize.step_height, so the height of each element doesn't need to be FONT_HEIGHT_NORMAL.
2014-03-15 21:33:24 +02:00
frosch
56365e81e1
(svn r25922) -Codechange: Rename TOWN_IS_FUNDED to TOWN_IS_GROWING. It is not tied to funding a town.
2013-10-28 10:55:34 +00:00
rubidium
853908c901
(svn r25630) -Fix [FS#5666]: city list sort of population and rating are reversed compared to the icon
2013-07-27 14:46:33 +00:00
frosch
13badddd75
(svn r25294) -Feature: Add another button to window title bars to resize the window to its default size.
2013-05-26 19:30:07 +00:00
frosch
16feb5c4e9
(svn r25290) -Add: Assign string names to notable windows.
2013-05-26 19:25:01 +00:00
frosch
25adefca23
(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window after construction.
2013-05-26 19:23:42 +00:00
alberth
b803d0c1dd
(svn r25097) -Feature[FS#5288]: Add sorting on rating for the town directory window (based on work by sbr).
2013-03-17 15:45:24 +00:00
alberth
b84f833b94
(svn r25096) -Feature: Do descending sort order on population by default, and stabilize sort of equally populated towns.
2013-03-17 15:44:19 +00:00
alberth
2fa9083d8b
(svn r25095) -Codechange: Immediately save the sort order of the town directory instead of when closing the window.
2013-03-17 15:42:50 +00:00
alberth
bf86262534
(svn r25094) -Feature: Introduce dropdown for selecting the sort criterion in the town directory window (sbr)
2013-03-17 15:41:40 +00:00
planetmaker
f00d9976f9
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
2013-01-08 22:46:42 +00:00
frosch
336a93a9d8
(svn r24846) -Add: Advanced settings to disable certain sound effects.
2012-12-23 21:09:09 +00:00
frosch
eb20798aae
(svn r24801) -Codechange: Add functions to set integral DParams to suitable values for size computations.
2012-12-08 17:18:51 +00:00
frosch
911e8c23fe
(svn r24747) -Fix: Some editboxes had a different colour than the rest of the window.
2012-11-14 22:50:53 +00:00
frosch
18dcd2e6a4
(svn r24742) -Codechange: Remove QueryStringBaseWindow and store QueryStrings per widget instead.
2012-11-14 22:50:35 +00:00
frosch
ec27bcb6a6
(svn r24740) -Codechange: Remove duplicate members from QueryStringBaseWindow and directly use QueryString.
2012-11-14 22:50:26 +00:00
frosch
838388dcd5
(svn r24739) -Codechange: Simplify some code by using Textbuf::Assign.
2012-11-14 22:50:21 +00:00
frosch
0ab8e7939b
(svn r24738) -Codechange: Remove Textbuf::Initialize in favour of a constructor.
2012-11-14 22:50:17 +00:00
frosch
08e92e6f23
(svn r24733) -Codechange: Move handling of editbox keys to window class.
2012-11-13 21:47:02 +00:00
frosch
8f611527e9
(svn r24732) -Codechange: Unify handling of OK and CANCEL actions for editboxes.
2012-11-13 21:46:58 +00:00
frosch
e0f59fb049
(svn r24726) -Codechange: Move editbox mouseloop handling to Window class.
2012-11-13 21:46:33 +00:00
frosch
e95b757c11
(svn r24724) -Codechange: Move drawing of editboxes to the widget drawing code.
2012-11-13 21:46:19 +00:00
frosch
3b06409153
(svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default.
2012-11-11 16:10:43 +00:00
frosch
88b8e43090
(svn r24697) -Codechange: Use WDF_UNCLICK_BUTTONS instead of duplicating the same functionality.
2012-11-11 16:07:46 +00:00
frosch
9b196d0fb4
(svn r24324) -Codechange: Turn functions dealing with Textbufs into member functions.
2012-06-04 15:30:29 +00:00
rubidium
76d5833650
(svn r24179) -Codechange: move some variables of Town to TownCache
2012-04-25 20:50:13 +00:00
michi_cc
3e5dc26ded
(svn r24141) -Feature: Display rating in the town directory window. (Inspired by patch from MagicBuzz)
2012-04-17 19:44:41 +00:00
rubidium
84433bbeb7
(svn r23787) -Fix: add some missing spaces
2012-01-11 18:47:32 +00:00
rubidium
d5eeab43b7
(svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files
2012-01-03 21:32:51 +00:00
truebrain
8ac2d13c79
(svn r23636) -Add: introduce ScriptText in parameters where it can be used
2011-12-19 21:06:06 +00:00
truebrain
6961332f05
(svn r23626) -Add: ScriptTown::SetText, which adds custom text to the Town GUI
2011-12-19 21:00:55 +00:00
truebrain
b00fcef81a
(svn r23620) -Add: ScriptTown::SetCargoGoal and ScriptTown::SetGrowthRate (GameScript only)
2011-12-19 20:59:19 +00:00
rubidium
e750e676c2
(svn r23542) -Codechange: unify and document town related widgets
2011-12-16 17:23:41 +00:00
truebrain
49e88dcbf0
(svn r23528) -Codechange: move widget enums to widgets/NNN_type.h
2011-12-15 22:22:55 +00:00