Commit Graph

337 Commits

Author SHA1 Message Date
Niels Martin Hansen dcb2571888 Add: Warn players that company passwords are not truly secure 2019-04-24 17:40:11 +02:00
Henry Wilson 7c8e7c6b6e Codechange: Use null pointer literal instead of the NULL macro 2019-04-10 23:22:20 +02:00
glx22 3b4f224c0b
Fix #7494: std::sort() and qsort() use different comparators (#7495) 2019-04-10 20:55:53 +02:00
Michael Lutz c7b9987d08 Codechange: Switch DropDownList to directly use std::vector, thus making AutoDeleteSmallVector obsolete.
DropDownListItem are strongly managed using std::unique_ptr to ensure leak-free handling. Appropriate use
of move-semantics make intent a lot clearer than parameter comments and allows the compiler to generate
copy-free code for most situations.
2019-04-09 22:45:15 +02:00
Michael Lutz 9325d63d8e Fix: Forgotten override keywords for DropDownListIconItem. 2019-04-09 22:45:15 +02:00
glx22 66dd7c3879
Fix: MSVC warnings (#7423) 2019-03-28 00:09:33 +01:00
Henry Wilson cc62f4163f Cleanup: Remove unused size template parameters from SmallMap and Auto[Free|Delete]SmallVector 2019-03-26 20:15:57 +00:00
Henry Wilson ab711e6942 Codechange: Replaced SmallVector::[Begin|End]() with std alternatives 2019-03-26 20:15:57 +00:00
Henry Wilson a0f36a50e6 Codechange: Replaced SmallVector::Append() with std::vector::[push|emplace]_back() 2019-03-26 20:15:57 +00:00
Henry Wilson a690936ed7 Codechange: Replace SmallVector::Length() with std::vector::size() 2019-03-26 20:15:57 +00:00
peter1138 aafce47596 Codechange: Use override specifier for DropDownListItem classes. 2019-03-24 16:10:04 +01:00
peter1138 b56ea5ca27 Add: Generic drop down list string item with icon. 2019-03-10 10:31:37 +00:00
peter1138 fb35cb5ed2 Remove: Unnecessary virtual destructors on drop down list items. 2019-03-10 09:20:11 +00:00
peter1138 811bf22620 Codechange: Use Colours type instead of byte. 2019-03-10 09:20:11 +00:00
Niels Martin Hansen 13962a8475 Change: Framerate window can now scroll and resize 2019-02-23 14:29:07 +01:00
Peter Nelson fde5bd0ccf Change: Add scrollbar to cargo legend in cargo payment rates window. 2019-02-23 11:46:00 +01:00
Greg Carlin 00d28a500d Feature: Add option to adjust font size separately from GUI size. (#7003)
Adds an option in the "Game Options" next to "Interface Size" called "Font Size". Available options are normal, double, and quad.
2019-02-23 08:27:46 +00:00
PeterN 23960d0f2c Feature: Group liveries, and livery window usability enhancements. (#7108)
* Change: Replace checkbox in livery selection window with Default option in drop down selection.

This reduces clutter in the UI and allows for primary/secondary colours to independently follow the default scheme if desired.

* Feature: Add vehicle group liveries.
2019-01-31 14:57:44 +01:00
J0an Josep 628af2fabc Fix #6060: When opening a scrollable dropdown above a widget, scroll it to its very bottom.
This "prevents" the fast movement towards the bottom when holding down the mouse button.
2019-01-20 21:43:00 +00:00
Juanjo 226dbcb422 Codechange #6060: Allow drawing dropdown lists with scrollbars above the widgets 2019-01-20 21:43:00 +00:00
PeterN 5ff0c24993 Fix #6780: Some windows didn't get updated from OnTick() (#7048) 2019-01-12 23:23:23 +00:00
damfr 868c6f924a Add: Filter box to the save and load windows (#6974)
Save and heightmap names can be filtered.
2018-11-25 20:54:25 +01:00
Charles Pigott f5b1115039 Doc: Lots and lots of doxymentation fixes 2018-10-31 12:35:54 +01:00
J0an Josep 8975318286 Fix 2a868b9f3b8e3b5f8b9e5f728f628ec88fd5e3ad: Expose widgets and windows to scripts and fix documentation. 2018-07-23 20:32:18 +02:00
Joan Josep 944f785be8 Fix: Spelling errors (#6769) 2018-04-30 18:52:32 +02:00
Niels Martin Hansen 19f5a6cbb0 Feature #6090: Change music set during gameplay 2018-04-29 19:26:05 +02:00
peter1138 19d56a33e8 (svn r27822) -Feature: Vehicle Group Info: Add profits and occupancy display to group vehicle list (mtm, JGR) 2017-03-24 07:33:31 +00:00
peter1138 902663176d (svn r27820) -Fix: Allow dropdown to be drawn above origin widget even with scrollbar (Juanjo) 2017-03-23 20:07:59 +00:00
frosch 7b553d255e (svn r27732) -Change: Turn the message about 'missing baseset sprites' from a popup into a static message that only shows in non-release versions, just like the 'missing translations' message. 2017-01-14 18:30:26 +00:00
frosch ad43465c31 (svn r27683) -Change: Rearrange the autoreplace GUI for trains, and do not filter it by railtype by default. 2016-12-08 20:21:39 +00:00
frosch 30574a7cad (svn r27671) -Codechange: Replace magic numbers in the toolbar with the already existing WID_TN_xxx. (Wolf01) 2016-10-30 17:36:57 +00:00
michi_cc 2b8bb12d62 (svn r27381) -Fix: Warnings due to C++11 requirements for explicit narrowing conversions in initializer lists. 2015-08-10 20:24:13 +00:00
alberth a5843149b5 (svn r27174) -Feature[FS#6236]: Display relative offset changes in the sprite aligner (juzza1). 2015-03-01 08:17:14 +00:00
frosch c9114af706 (svn r27131) -Fix: Dropdown- and tooltip-windows should not steal the focus. 2015-02-01 12:23:39 +00:00
rubidium d534c80e94 (svn r27020) -Cleanup: some coding style consistency improvements (mostly spaces) 2014-10-15 18:31:37 +00:00
peter1138 253c91b17d (svn r26990) -Feature: Add option to choose normal, double or quad-size interface. 2014-10-11 13:22:37 +00:00
rubidium c72d362840 (svn r26885) -Feature-ish: user interface for limiting the maximum height of a map 2014-09-21 12:25:04 +00:00
alberth 22b967676e (svn r26811) -Fix[FS#6108]: Fixed spelling error in widget name. 2014-09-11 17:10:38 +00:00
alberth b4a87e7f45 (svn r26805) -Feature: Allow hiding of non-interesting engines in the autoreplace GUI. 2014-09-07 16:14:38 +00:00
alberth a49744b50c (svn r26804) -Feature: Allow hiding of non-interesting engines in the build vehicle GUI. 2014-09-07 16:14:06 +00:00
alberth 81d2bdbf47 (svn r26800) -Feature[FS#1640]: Vehicle sorting in autoreplace GUI. 2014-09-07 16:11:14 +00:00
frosch 925fb7bd37 (svn r26691) -Codechange: Simplify ShowDropDownListAt (Juanjo) 2014-07-16 20:38:36 +00:00
frosch d7736e3797 (svn r26680) -Codechange: Simplify dropdown height computation. (Juanjo) 2014-07-08 20:07:50 +00:00
frosch 06b210ff42 (svn r26629) -Fix [FS#6012]: If the video driver fails to supply a list of resolutions, display an error message. 2014-06-05 17:14:16 +00:00
alberth 1feba55f0f (svn r26613) -Feature: Upgrade currently active newgrfs to newest installed version. 2014-05-24 19:15:57 +00:00
alberth 8755c26793 (svn r26610) -Feature: Select an editable preset name for saving. 2014-05-24 19:11:20 +00:00
frosch 775c96a0d2 (svn r26526) -Remove: Ability to set map generation seed via GUI. If you really need it, use the console. 2014-04-27 15:15:28 +00:00
frosch ebd2d3ccef (svn r26525) -Remove: Screenshot format setting from GUI. 2014-04-27 15:13:46 +00:00
rubidium 0463dbdc9e (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
planetmaker 9450a28090 (svn r26442) -Fix [FS#5962] Silence compiler warning by adding newline at end of file 2014-04-03 10:54:37 +00:00
alberth 75504d24bf (svn r26320) -Add: Label for both the filter category and filter type in the advanced settings window. 2014-02-09 13:04:50 +00:00
rubidium b1bcd1adab (svn r26128) -Fix: erroneous cast 2013-11-26 15:12:54 +00:00
rubidium 50fdf5e30c (svn r26121) -Codechange: add some asserts after dynamic casts to show they shouldn't return NULL ever 2013-11-26 13:21:25 +00:00
rubidium 2fc10b7e04 (svn r26088) -Fix (r26086): Windows compilation 2013-11-24 15:17:53 +00:00
rubidium 83eeba28b7 (svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for dropdowns 2013-11-24 14:46:26 +00:00
frosch 0aae2fd606 (svn r25946) -Add: [NewGRF Debuggnig] Inspecting other vehicles in a chain. 2013-11-07 18:17:21 +00:00
planetmaker 276c41ee1d (svn r25828) -Doc [FS#5785]: Description of parameters for ShowDropDownMenu was partially swapped (3298) 2013-10-11 15:41:55 +00:00
frosch dfa0e61f25 (svn r25816) -Add [FS#5748]: Toggle button for wrapping lines in the textfile GUI (LordAro) 2013-10-06 11:29:14 +00:00
zuu 4f6d19465b (svn r25623) -Fix [FS#5611] (r25296): Progress column width in goal window was not updated when a string changed while the window is open 2013-07-21 15:59:07 +00:00
frosch bbbecceae1 (svn r25464) -Fix: Hide default size button in non-newstation rail-station picker since it is not resizeable anyway. 2013-06-25 20:22:08 +00:00
rubidium b860353a66 (svn r25387) -Fix: "typos" in @file filename 2013-06-09 18:58:36 +00:00
zuu a724a9924b (svn r25376) -Feature: Allow access to goal list and story book of other companies than your own 2013-06-09 13:37:04 +00:00
zuu eaede14b8f (svn r25372) -Add: Allow opening a goal list window specific to a company 2013-06-09 13:23:03 +00:00
zuu 086aae8d04 (svn r25370) -Fix: Make the prefix for widget constants unique for the goal list window 2013-06-09 13:17:20 +00:00
fonsinchen 0fc198cb00 (svn r25365) -Feature: show cargo by next hops and final destinations in the station GUI 2013-06-09 13:08:52 +00:00
zuu a2d84868e7 (svn r25344) -Feature: GUI for viewing story pages 2013-06-09 12:48:27 +00:00
zuu 059eee93fc (svn r25331) -Fix (r25263): Update ScriptWindow with link graph widgets 2013-06-08 12:37:36 +00:00
zuu a4cddc3e08 (svn r25296) -Feature: Goals can now have a progress text and/or be marked as completed. 2013-05-26 19:54:43 +00:00
frosch 8157a8afd8 (svn r25290) -Add: Assign string names to notable windows. 2013-05-26 19:25:01 +00:00
frosch 56e4a8c4d6 (svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window after construction. 2013-05-26 19:23:42 +00:00
rubidium 9aae00cc87 (svn r25270) -Fix: @file wrong for link_graph_legend_widget.h 2013-05-20 13:37:59 +00:00
rubidium ef7befdbd8 (svn r25264) -Feature: linkgraph overlay over main viewport (fonsinchen) 2013-05-19 14:49:25 +00:00
rubidium 163dfdd34a (svn r25262) -Feature: linkgraph overlay for smallmap 2013-05-19 14:36:35 +00:00
alberth 15ec6e26f0 (svn r25094) -Feature: Introduce dropdown for selecting the sort criterion in the town directory window (sbr) 2013-03-17 15:41:40 +00:00
frosch 1b10910af6 (svn r25024) -Feature: Searching of (missing) content via GrfCrawler. 2013-02-18 19:30:24 +00:00
rubidium 3d7860e0a5 (svn r24997) -Change: Use dropdown list to select between Default/Days/Percentage (peter1138) 2013-02-14 17:11:42 +00:00
rubidium 369a6f9d1b (svn r24995) -Codechange: Add flags to vehicle service interval for custom & ispercent (peter1138) 2013-02-14 17:06:49 +00:00
planetmaker c24374f99c (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 2013-01-08 22:46:42 +00:00
frosch c4c3d00578 (svn r24862) -Add: Settings type filter to adv. settings GUI. 2012-12-26 17:47:02 +00:00
frosch 647ee0de64 (svn r24842) -Remove: News settings window. 2012-12-23 21:06:37 +00:00
frosch ff6880f9dd (svn r24791) -Remove: Difficulty settings window. 2012-12-05 19:37:15 +00:00
frosch d1ab0f03bc (svn r24790) -Remove: Classic difficulty profiles. 2012-12-05 19:36:41 +00:00
frosch 507de921c2 (svn r24769) -Feature [FS#3852]: Add a string filter to the server list. (Eagle_rainbow) 2012-11-27 21:35:52 +00:00
alberth fb892f4b20 (svn r24763) -Feature: Add industry type and cargo dropdown selection for easier navigating in the industry chain window. 2012-11-25 15:24:02 +00:00
frosch 06054d7a9d (svn r24750) -Cleanup: Remove old special clear filter button from signs list. 2012-11-14 22:51:05 +00:00
frosch 7699a7dc06 (svn r24732) -Codechange: Unify handling of OK and CANCEL actions for editboxes. 2012-11-13 21:46:58 +00:00
frosch d1c17394ec (svn r24663) -Codechange: Unify the naming of widget enums. 2012-11-05 19:45:45 +00:00
yexo 23054a3ab5 (svn r24647) -Feature: add new filter option to the advanced settings window to show only changed settings (Eagle_rainbow) 2012-10-29 19:53:13 +00:00
frosch 2d550a7579 (svn r24632) -Feature: Add text filtering to advanced settings. 2012-10-27 15:26:17 +00:00
frosch 716014c410 (svn r24631) -Feature: Add buttons to expand/collapse all to advanced settings GUI. 2012-10-27 15:25:57 +00:00
yexo 053770d4a6 (svn r24488) -Feature [FS#5236]: add buttons to view textfiles from the online content window (LordAro) 2012-08-20 21:03:50 +00:00
frosch 88fff21b93 (svn r24308) -Add: ShowDropDownListAt() for drawing dropdown windows independent of dropdown widgets. 2012-06-01 10:43:50 +00:00
frosch 6207a6017f (svn r24307) -Codechange: Move all interaction of the dropdown window with widgets of the parent window to a method of the parent window. 2012-06-01 10:42:46 +00:00
alberth 0db235aa1d (svn r24237) -Feature: Descriptions explaining the meaning of advanced settings. 2012-05-12 10:13:03 +00:00
frosch cd50c86294 (svn r24178) -Fix [FS#5110]: The object name from property A was not displayed in the object GUI. 2012-04-24 20:01:34 +00:00
michi_cc 6a70abbd99 (svn r24136) -Feature [FS#4465]: Autoreplace vehicles only when they get old. (Vikthor) 2012-04-17 19:44:02 +00:00
michi_cc aa47d6c7f2 (svn r24127) -Feature [FS#1497]: Allow closing airports for incoming aircraft. (Based on patch by cirdan) 2012-04-17 19:43:18 +00:00
frosch 161b6c348b (svn r24037) -Feature: Allow display of baseset textfiles. (LordAro) 2012-03-17 15:45:37 +00:00
michi_cc f2c694c8fb (svn r23947) -Feature: Timetabled maximum travel speeds for non-flying vehicles. 2012-02-14 17:04:06 +00:00
rubidium 6356178a25 (svn r23936) -Feature [FS#5047]: readme/licence/changelog viewer for AI and game scripts (LordAro) 2012-02-12 10:58:18 +00:00
rubidium e8dbcf9043 (svn r23932) -Codechange: split the NewGRF text window into its own source files 2012-02-12 10:32:41 +00:00
rubidium d99eb6aac2 (svn r23853) -Fix: several incorrect @files 2012-01-25 22:10:14 +00:00
rubidium 9f162e7115 (svn r23827) -Feature [FS#4992]: [NoGo] Allow to chose the goal question window's title from a (small) set of options 2012-01-21 12:03:55 +00:00
frosch fa0949577e (svn r23760) -Feature: Allow readonly display of NewGRF parameters, if GRF list may not be edited. 2012-01-05 20:03:15 +00:00
truebrain ecb725b34b (svn r23738) -Fix (r23731): forgot to sync the new window with the script API 2012-01-03 20:38:41 +00:00
rubidium e40eb8177a (svn r23735) -Codechange: remove ~50 includes from headers that weren't needed 2012-01-03 20:26:05 +00:00
truebrain 34d90da509 (svn r23731) -Add: add GSGoal::Question(), to ask a question to a(ll) company(ies). It can contain random text, and at most 3 buttons from a collection of 17 2012-01-03 16:36:24 +00:00
alberth 4af8c2d5e1 (svn r23704) -Doc: Doxygen comment fixes and additions. 2012-01-01 17:22:32 +00:00
truebrain 3ada3b9cc5 (svn r23630) -Add: a Goal GUI to show your current goals 2011-12-19 21:03:17 +00:00
truebrain 5718c2e2e3 (svn r23607) -Add: wire GameScript in all the GUIs 2011-12-19 20:56:06 +00:00
truebrain bcbdc3933c (svn r23600) -Codechange: link WC+number to a Widget, and the Widget to a Window class 2011-12-19 20:46:17 +00:00
rubidium df16ebd730 (svn r23595) -Codechange: add comma after last enum to get a more uniform coding style 2011-12-19 17:48:04 +00:00
truebrain ed816477ec (svn r23562) -Codechange: don't be lazy with the spacebar 2011-12-16 19:09:26 +00:00
truebrain 1d4eeb063e (svn r23561) -Codechange: forgot to document 1 widget enum 2011-12-16 19:08:39 +00:00
truebrain 20a7276510 (svn r23560) -Codechange: final pieces of consistency through widgets 2011-12-16 18:57:27 +00:00
planetmaker 6bbae674b8 (svn r23559) -Codechange: Document and name consistently road build widgets 2011-12-16 18:52:15 +00:00
rubidium ff4bfded7a (svn r23558) -Fix (r23556): ctrl-z too few ;) 2011-12-16 18:47:46 +00:00
rubidium 95642f956f (svn r23556) -Codechange: unify rail widget naming and document them 2011-12-16 18:43:38 +00:00
truebrain 7e0df0aeb3 (svn r23555) -Fix (r23554): save before commit 2011-12-16 18:43:36 +00:00
truebrain 7b80b821ff (svn r23554) -Codechange: some minor consistency fixes 2011-12-16 18:42:20 +00:00
truebrain bcf00dbb8f (svn r23553) -Fix: avoid naming conflict in widget enums 2011-12-16 18:33:02 +00:00
truebrain 6d0673f0c1 (svn r23552) -Codechange: unify naming of the news widgets 2011-12-16 18:32:57 +00:00
truebrain e4887d4dc4 (svn r23551) -Codechange: document and rename widgets to be consistent and understandable 2011-12-16 18:27:50 +00:00
rubidium bdb6280e79 (svn r23550) -Codechange: unify naming of the on screen keyboard widgets 2011-12-16 18:27:39 +00:00
planetmaker 365bf148b5 (svn r23549) -Codechange: Document and consistently name widgets of order GUI 2011-12-16 18:25:06 +00:00
rubidium 1470e41fe4 (svn r23548) -Codechange: unify and document toolbar widgets 2011-12-16 18:23:35 +00:00
truebrain e2726ca3f1 (svn r23547) -Codechange: document and rename widgets to be consistent and understandable 2011-12-16 18:21:13 +00:00
truebrain 9266bde593 (svn r23546) -Codechange: document and rename widgets to be consistent and understandable 2011-12-16 18:14:11 +00:00
planetmaker 985d178c37 (svn r23545) -Codechange: Consistently name widgets in build object window 2011-12-16 18:06:16 +00:00
truebrain e2d8abeec5 (svn r23544) -Codechange: document and rename widgets to be consistent and understandable 2011-12-16 18:02:27 +00:00
planetmaker 78ca3e3358 (svn r23543) -Codechange: Document and name consistently widgets of NewGRF window 2011-12-16 17:46:47 +00:00
rubidium 2988509dd0 (svn r23542) -Codechange: unify and document town related widgets 2011-12-16 17:23:41 +00:00
planetmaker 7c7bd7fe86 (svn r23541) -Codechange: Consistent naming of widgets in NewGRF debug window 2011-12-16 17:15:40 +00:00
rubidium 4de1f3be88 (svn r23540) -Codechange: unify and document vehicle widgets 2011-12-16 16:58:55 +00:00
rubidium b8640b986f (svn r23539) -Codechange: prevent conflict between widget naming of (vehicle) depots and vehicle details 2011-12-16 16:57:56 +00:00
planetmaker 5ade484ce4 (svn r23538) -Codechange: Consistent naming of widgets in tree plant gui 2011-12-16 16:57:15 +00:00
truebrain 219393ba5f (svn r23537) -Fix (r23529): typo in the word 'because' (tnx to Alberth for noticing) 2011-12-16 16:53:16 +00:00
truebrain 05af1d176b (svn r23536) -Codechange: document and rename widgets to be consistent and understandable 2011-12-16 16:49:53 +00:00
planetmaker 4453288f3f (svn r23535) -Codechange: unify widget naming of transparency toolbar 2011-12-16 16:42:04 +00:00
truebrain cb8e37197d (svn r23534) -Codechange: document and rename widgets to be consistent and understandable 2011-12-16 16:39:48 +00:00
truebrain f578edd3bc (svn r23533) -Codechange: document and rename widgets to be consistent and understandable 2011-12-16 16:32:48 +00:00
rubidium b6a303387c (svn r23532) -Codechange: unify widget naming of (extra) viewport 2011-12-16 16:29:53 +00:00
truebrain e9f584ac21 (svn r23531) -Codechange: document and rename widgets to be consistent and understandable 2011-12-16 16:27:45 +00:00
rubidium b90aa80e77 (svn r23530) -Codechange: begin unify the naming of widgets and add comments to them, in this case the waypoint view widgets 2011-12-16 16:25:34 +00:00
truebrain 98d3f11d45 (svn r23529) -Codechange: make all widget enum values unique and make them include the files they need to compile 2011-12-16 16:23:50 +00:00
truebrain 2aa774e831 (svn r23528) -Codechange: move widget enums to widgets/NNN_type.h 2011-12-15 22:22:55 +00:00
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
2011-12-15 19:54:23 +00:00
peter1138 30d9de9db5 (svn r23018) -Fix (r14004): Pass bottom of dropdown item rather than bottom of dropdown window. 2011-10-11 13:13:20 +00:00
peter1138 50d1541270 (svn r23017) -Codechange: Add support for resized scrollbars. 2011-10-11 08:07:47 +00:00
yexo ad232bd497 (svn r22932) -Fix [FS#4766]: disable the white border on window creation for several windows (based on patch by monoid) 2011-09-15 13:26:27 +00:00