Commit Graph

297 Commits (b7643b1d36cb41eb6712042761c13b9819fcbe74)

Author SHA1 Message Date
frosch f6d4200f86 (svn r24738) -Codechange: Remove Textbuf::Initialize in favour of a constructor. 12 years ago
frosch c4d7c8dd42 (svn r24733) -Codechange: Move handling of editbox keys to window class. 12 years ago
frosch 7699a7dc06 (svn r24732) -Codechange: Unify handling of OK and CANCEL actions for editboxes. 12 years ago
frosch 137adb3496 (svn r24726) -Codechange: Move editbox mouseloop handling to Window class. 12 years ago
frosch 17025fa6ea (svn r24724) -Codechange: Move drawing of editboxes to the widget drawing code. 12 years ago
frosch 03736af2ae (svn r24700) -Cleanup: Remove WDF_UNCLICK_BUTTONS and make it the default. 12 years ago
frosch b998cbdff1 (svn r24697) -Codechange: Use WDF_UNCLICK_BUTTONS instead of duplicating the same functionality. 12 years ago
frosch d58eee1e79 (svn r24324) -Codechange: Turn functions dealing with Textbufs into member functions. 12 years ago
rubidium 41e5c839e0 (svn r24179) -Codechange: move some variables of Town to TownCache 12 years ago
michi_cc a2b2bc3620 (svn r24141) -Feature: Display rating in the town directory window. (Inspired by patch from MagicBuzz) 12 years ago
rubidium 89ab59f0cb (svn r23787) -Fix: add some missing spaces 13 years ago
rubidium 6d6be50ae0 (svn r23740) -Codechange: remove some 300 unneeded includes from the .cpp files 13 years ago
truebrain 102f811d02 (svn r23636) -Add: introduce ScriptText in parameters where it can be used 13 years ago
truebrain ad48ab9237 (svn r23626) -Add: ScriptTown::SetText, which adds custom text to the Town GUI 13 years ago
truebrain afcf07ac8a (svn r23620) -Add: ScriptTown::SetCargoGoal and ScriptTown::SetGrowthRate (GameScript only) 13 years ago
rubidium 2988509dd0 (svn r23542) -Codechange: unify and document town related widgets 13 years ago
truebrain 2aa774e831 (svn r23528) -Codechange: move widget enums to widgets/NNN_type.h 13 years ago
rubidium 3d88c74389 (svn r23526) -Codechange: unify cargos vs cargoes 13 years ago
truebrain df0afdf0dc (svn r23525) -Codechange: make Window::flags4 WindowFlags instead of uint16, with only values known in WindowFlags (and move out 2 timers to their own variable)
-Codechange: rename Window::flags4 to Window::flags
-Codechange: move some non-inline functions from .hpp to .cpp
13 years ago
rubidium 7bb4a0b825 (svn r23477) -Fix [FS#4878] (r23300): like r23342, but now for the user interface ;) 13 years ago
rubidium 58423b26d1 (svn r23474) -Codechange: move the declaration error related functions to error.h 13 years ago
truebrain b9192bdc4c (svn r23310) -Fix: Town GUI was not representing the true conditions of arctic / tropical goals 13 years ago
truebrain f906ebd2a5 (svn r23300) -Add: show on the GUI when a town grows and make a general framework to store goals of a town 13 years ago
truebrain 229e572663 (svn r23298) -Add: track statistics of all incoming and outgoing goods. Incoming based on TownEffect, outgoing based on CargoType (based on patch by Terkhen) 13 years ago
michi_cc 6548ec6e9e (svn r23233) -Codechange: Refactor maximum and actually transported cargo amount of towns into a reusable struct. 13 years ago
rubidium 69162621d8 (svn r23096) -Codechange: remove useless divisions and multiplications by TILE_HEIGHT for the snow line code 13 years ago
rubidium 46c242b1dc (svn r22385) -Fix [FS#4603]: strnatcmp is in string.cpp, so it ought to be declared in string_func.h. 13 years ago
terkhen 5bb7a48cd2 (svn r22345) -Change: Remove pixel limiter for text buffers. 13 years ago
terkhen 10caf391a1 (svn r22343) -Change: Remove pixel limiter for query strings. 13 years ago
frosch 6ce83c0aaa (svn r22307) -Fix: When drawing the town authority window, check whether the availability of the actions changed, and force a complete redraw in that case. 13 years ago
frosch 652c9cb663 (svn r22247) -Codechange: Update comments wrt. ForceRebuild() in command-scope. 13 years ago
frosch ec9540a12a (svn r22241) -Codechange: Add additional to-be-used parameter to OnInvalidateData(). 13 years ago
frosch 77d1dcb926 (svn r22228) -Fix (r22135)[FS#4546]: Do not resort town, industry and signs list directly in OnInvalidateData(). There might be a scheduled rebuild which needs execution first. So, only set a trigger for resorting. 14 years ago
planetmaker df8c4bdbfa (svn r21929) -Fix [FS#4554]: The town window would not be invalidated in the scenario editor if the ground changed and thus the required cargos for town growth 14 years ago
rubidium 7eba2bf4d3 (svn r21890) -Cleanup: remove some unneeded includes 14 years ago
alberth 852e647bcc (svn r21627) -Codechange: Remove _place_proc global variable. 14 years ago
rubidium 5c9c3f1acf (svn r21414) -Codechange: limit town name by amount of characters, not bytes 14 years ago
terkhen 75f86a7a21 (svn r21344) -Feature [FS#4214]: Natural sorting of strings using ICU. 14 years ago
alberth f5c6fd1a25 (svn r21331) -Codechange: Make drawing the widgets default behaviour in OnPaint(). 14 years ago
rubidium 30637a8340 (svn r21157) -Codechange: remove information about the text direction out of the language "list" 14 years ago
alberth c4687de4e2 (svn r21022) -Add (r21021): Missed recentering of a town gui viewport after a resize. 14 years ago
planetmaker c2a7b82a9f (svn r20997) -Fix: Size of sort buttons for order and vehicle list gui could be too small 14 years ago
frosch 48767d1bef (svn r20720) -Add: separate GUI icons for vehicle/company profit, exclusive rights and unread news. 14 years ago
frosch 48d8f16653 (svn r20719) -Codechange: Remove some hardcoded iconsizes. 14 years ago
frosch 65b43667fa (svn r20511) -Fix: Initial height of townlist was not a multiple of the line height. 14 years ago
frosch 9e538acc03 (svn r20461) -Codechange: Replace WWT_HSCROLLBAR, WWT_SCROLLBAR and WWT_SCROLL2BAR with NWID_HSCROLLBAR and NWID_VSCROLLBAR. 14 years ago
frosch 71ca58c2bb (svn r20453) -Codechange: Remove direct accesses to Window::hscroll, vscroll and vscroll2.
Note: All windows get individual members with the same names, which are initialised via Window::GetScrollbar(). This caching is not required at all, but simplifies conversion.
14 years ago
frosch 10339c60c0 (svn r20452) -Codechange: Remove NWidgetCore::FindScrollbar() and associate scrollbar explicitly using a NWidgetPart via SetScrollbar(). 14 years ago
yexo 5ae4e27446 (svn r20325) -Fix (r20322): surround variable declarations in a switch-block with {} 14 years ago
terkhen 7a6df202d0 (svn r20323) -Codechange: Move Delete town code to a command. 14 years ago
terkhen ca0751adb8 (svn r20322) -Codechange: Move Expand town code to a command. 14 years ago
rubidium e356cb9405 (svn r20281) -Codechange: unify case scope closure + break coding style 14 years ago
terkhen 88ca183191 (svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH). 14 years ago
alberth 4203e641f8 (svn r20223) -Codechange: Replace scrolled row calculations by a call to GetScrolledRowFromWidget(). 14 years ago
alberth 3a1451644a (svn r20221) -Codechange: Move unscrolled row calculation into a function. 14 years ago
terkhen 5685e061c0 (svn r20195) -Fix [FS#3891]: Remove autofocus of the edit box in the found town window (Zuu). 14 years ago
rubidium b8487afe54 (svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :) 14 years ago
rubidium 73527b7b45 (svn r20190) -Codechange: unVARDEF _generate_world and move it to genworld 14 years ago
terkhen e9793b3427 (svn r20139) -Fix [FS#3902]: Found town window ignored all hotkeys (Zuu). 14 years ago
frosch 50bcc852f9 (svn r19890) -Codechange: Use real spritewidths for drawing town authority window. 14 years ago
rubidium 398418b8fa (svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int 14 years ago
rubidium 93ff7d78e1 (svn r19799) -Change: give depots an unique name in the same manner buoys and waypoints are named 14 years ago
alberth e89f154c0d (svn r19478) -Codechange: Resolve TS_ prefix clash between TileSource and TownSize enums. 14 years ago
yexo c4a88ce022 (svn r19455) -Codechange: split all airport information in Station to a seperate class 14 years ago
smatz f051066bc4 (svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit 15 years ago
yexo 698737f485 (svn r19198) -Codechange: store the size of stations in savegames 15 years ago
rubidium 9c02767a92 (svn r19119) -Fix [FS#3616]: removing towns (in the scenario editor) that had stations/depots refer to them or vehicles were on the town's road could cause a crash 15 years ago
frosch 88019e64e1 (svn r18966) -Codechange: Remove Window::OnDoubleClick() in favour of a parameter for OnClick(). 15 years ago
frosch af50e0a4cf (svn r18964) -Change: Highlight the selected action for town authority, and do not duplicate the itemtext to the description. 15 years ago
rubidium 82fc28f77f (svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, if a header require a header make it include that header 15 years ago
rubidium 2b97f38cd1 (svn r18781) -Codechange: pass the CommandCost to the callback instead of whether it succeeded or not.
-Fix: AIs did update their last cost incorrectly in network games if the cost of the DC_EXEC phase differed from the ~DC_EXEC phase.
15 years ago
rubidium ebfdcf575d (svn r18676) -Change [FS#3411]: 'escape' in the 'found town' window removes the focus from the town name input box 15 years ago
alberth a87748df8a (svn r18596) -Fix: Add padding to several town generation buttons and labels for nice and consistent layout. 15 years ago
alberth 91872aca48 (svn r18588) -Feature [FS#2943]: Add shading and unshading of windows. 15 years ago
alberth 5a083f183e (svn r18580) -Codechange: Use widget information only for setting scrollbar capacity. 15 years ago
rubidium ac4ef286f4 (svn r18447) -Change: make some more windows (e.g. graphs, company view) stickyable 15 years ago
frosch 9dd74395c8 (svn r18433) -Codechange: Show different texts in town GUI when the town does not need food the whole year to grow. 15 years ago
frosch 7d905fae22 (svn r18416) -Fix (r15559): Only consider valid cargos in town GUI. 15 years ago
frosch ae97bf029c (svn r18328) -Codechange: Remove last usage of {SETX} from strings. 15 years ago
rubidium 293dfd7c3e (svn r18322) -Codechange: remove the WDP duplication; no need to tell the same twice. 15 years ago
frosch 830231e2bd (svn r18283) -Feature: [NewGRF] Add new price bases for removing industries, building/removing unmovables (new objects), building/removing rail-waypoints/buoys, interacting with town-authority, building foundations, funding primary industries (when not prospecting) and towns.
If a GRF does not set price multipliers for these new prices, but for the previously used ones, the old modifiers will be propagated to the new bases.
15 years ago
smatz f0c64208cf (svn r18281) -Feature: founding towns in-game (based on work by Belugas, TheJosh, GeekToo, Terkhen and others) 15 years ago
rubidium 8d6e323ef8 (svn r18280) -Codechange: remove widget indices that are not needed for custom drawing/handling input 15 years ago
rubidium 14300d309c (svn r18277) -Codechange: remove unneeded widget indices for close, resize and sticky boxes and for window captions 15 years ago
rubidium 69b6d9309a (svn r18274) -Codechange: remove the unused WDF flags 15 years ago
rubidium 12f5032adf (svn r18263) -Codechange: make the town views resizable 15 years ago
rubidium 4b555968c4 (svn r18255) -Codechange: make the town authority window big font aware 15 years ago
alberth 450e40b997 (svn r18230) -Codechange: Allow fill stepsize to be set from Window::UpdateWidgetSize(). 15 years ago
alberth 2b6f792513 (svn r18229) -Codechange: Make fill_x, fill_y a number instead of a bool. 15 years ago
rubidium 8b5a010f3a (svn r18179) -Codechange: make the town authority window RTL aware 15 years ago
rubidium 5f2ddfbc5a (svn r18152) -Codechange: remove the 'minimum window size' from the WindowDesc; it's determined from the (nested) widgets 15 years ago
rubidium 626de6b128 (svn r18126) -Codechange: remove duplicate (since r18119) scrollbar capacity/matrix initialisation 15 years ago
rubidium 3d2d7af88f (svn r18086) -Codechange: remove 'widget' from WindowDesc 15 years ago
frosch ba1fc280e3 (svn r18005) -Codechange: Convert the Prices struct into an array and an enum. 15 years ago
alberth 44aacfc59f (svn r17928) -Codechange: ShowErrorMessage() now takes the summary string before the details string.
Gentlemen, swap your string parameters.
15 years ago
rubidium ca0521f89f (svn r17853) -Codechange: remove the 'delta' parameter from OnResize; it was used in ways that aren't always wanted, causing bugs and the like. Also with nested widgets most reasons for handling OnResize have gone. 15 years ago
rubidium d1d35b95b6 (svn r17786) -Fix [FS#3265]: graphical glitches (matrices/scrollbars with wrong 'size') upon reiniting windows 15 years ago
rubidium 4ab569544b (svn r17752) -Fix [FS#3231]: OSK could reset town name to an already used town name for the 'Generate Town' window 15 years ago
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
rubidium 09124e2186 (svn r17654) -Fix [FS#3220] (r17612): the edit box of the town fund window wasn't updated properly (based on patch of Terkhen) 15 years ago