summaryrefslogtreecommitdiff
path: root/src/ai/ai_gui.cpp
AgeCommit message (Collapse)Author
2019-03-26Codechange: Replaced SmallVector::Append() with ↵Henry Wilson
std::vector::[push|emplace]_back()
2019-03-24Codechange: Use override specifier in Window-derived classes.peter1138
2019-03-24Codechange: Use override specifer for overriding member declarationsHenry Wilson
This is a C++11 feature that allows the compiler to check that a virtual member declaration overrides a base-class member with the same signature. Also src/blitter/32bpp_anim_sse4.hpp +38 is no longer erroneously marked as virtual despite being a template.
2019-03-20Remove: ENABLE_NETWORK switchPatric Stout
This switch has been a pain for years. Often disabling broke compilation, as no developer compiles OpenTTD without, neither do any of our official binaries. Additionaly, it has grown so hugely in our codebase, that it clearly shows that the current solution was a poor one. 350+ instances of "#ifdef ENABLE_NETWORK" were in the code, of which only ~30 in the networking code itself. The rest were all around the code to do the right thing, from GUI to NewGRF. A more proper solution would be to stub all the functions, and make sure the rest of the code can simply assume network is available. This was also partially done, and most variables were correct if networking was disabled. Despite that, often the #ifdefs were still used. With the recent removal of DOS, there is also no platform anymore which we support where networking isn't working out-of-the-box. All in all, it is time to remove the ENABLE_NETWORK switch. No replacement is planned, but if you feel we really need this option, we welcome any Pull Request which implements this in a way that doesn't crawl through the code like this diff shows we used to.
2019-02-21Fix #7090: Close Query String window after rebuilding AI/GS settingsSamu
2019-02-21Fix #7091: Close dropdown menu windows after rebuilding AI/GS settingsSamu
2019-02-04Add: CompanyCtrlAction enum for CMD_COMPANY_CTRL actionsglx
2019-02-01Fix #6438: Properly invalidate AI Settings window when max no competitor ↵Peter Nelson
setting is changed.
2019-01-28Add: allow opening of one TextfileWindow per typeglx
2019-01-27Fix #7122: OnClick() and DrawWidget() editability was inconsistent in ↵glx22
AISettingsWindow (#7123)
2019-01-12Fix #6780: Some windows didn't get updated from OnTick() (#7048)PeterN
2017-03-12(svn r27787) -Fix: Update scrollbar when rebuilding AI/GS setting list.peter1138
2017-03-12(svn r27786) -Fix [FS#6479]: AI configuration changed incorrect parameter ↵peter1138
when some parameters are hidden.
2016-05-22(svn r27581) -Fix [FS#6461]: Button size computation in script configuration ↵frosch
window. (adf88)
2015-12-10(svn r27468) -Fix (r27444): Game Scripts were not displayed in the content ↵zuu
download window when opened from the AI/GS settings window.
2015-03-15(svn r27187) -Fix: Code style.frosch
2014-10-04(svn r26954) -Codechange: GUI-scale for AI/GS settings and NewGRF settings ↵peter1138
windows.
2014-05-11(svn r26583) -Fix [FS#5974]: Game script could be changed in game by double ↵rubidium
clicking
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2013-11-24(svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for ↵rubidium
dropdowns
2013-06-30(svn r25537) -Codechange: Optionally make WWT_MATRIX compute the number of ↵frosch
rows and columns from the resize step size.
2013-06-30(svn r25533) -Codechange: Use SetCapacityFromWidget more often.frosch
2013-06-30(svn r25532) -Fix: Do not make the minimal size of matrix or panel widgets ↵frosch
depend on their number of rows, since that changes when resizing the window.
2013-06-30(svn r25531) -Codechange: Use separate function to set data of WWT_MATRIX ↵frosch
widgets.
2013-06-15(svn r25414) -Codechange: Move handling of global hotkeys to HotkeyList.frosch
2013-06-15(svn r25413) -Fix-ish: Suppress focussing editboxes which are not visible.frosch
2013-06-15(svn r25412) -Codechange: Make use of Window::OnHotkeyfrosch
2013-06-15(svn r25410) -Codechange: Put all hotkeys of a window into a static ↵frosch
HotkeyList member.
2013-06-15(svn r25408) -Codechange: Simplify hotkeys by removing unused stuff.frosch
2013-06-15(svn r25401) -Fix-ish: Add missing includes with prototypes to functions ↵frosch
declared in the cpp file.
2013-05-26(svn r25294) -Feature: Add another button to window title bars to resize the ↵frosch
window to its default size.
2013-05-26(svn r25290) -Add: Assign string names to notable windows.frosch
2013-05-26(svn r25287) -Codechange: Keep a reference to the WindowDesc in the Window ↵frosch
after construction.
2013-03-17(svn r25104) -Fix [FS#5507]: Allow changing GS settings in-game via the ↵zuu
AI/GS config window.
2013-02-27(svn r25052) -Fix [FS#5490]: Refactor Script Debug GUI to only set widget ↵frosch
states in OnInvalidateData.
2013-01-20(svn r24929) -Fix [FS#5415]: Don't try to pause or unpause crashed scripts.frosch
2012-12-05(svn r24788) -Change: Detach script settings from difficulty settings. ↵frosch
Always allow changing all script settings without setting difficulty to custom.
2012-12-05(svn r24786) -Codechange: Add SettingsProfile enum for difficulty profiles ↵frosch
and highscore tables.
2012-11-14(svn r24747) -Fix: Some editboxes had a different colour than the rest of ↵frosch
the window.
2012-11-14(svn r24742) -Codechange: Remove QueryStringBaseWindow and store ↵frosch
QueryStrings per widget instead.
2012-11-14(svn r24740) -Codechange: Remove duplicate members from ↵frosch
QueryStringBaseWindow and directly use QueryString.
2012-11-14(svn r24738) -Codechange: Remove Textbuf::Initialize in favour of a constructor.frosch
2012-11-14(svn r24736) -Cleanup: The third parameter of Textbuf::Initialize only makes ↵frosch
sense if it is smaller than the second one, also its unit is not pixels.
2012-11-13(svn r24734) -Codechange: Move QueryStringBaseWindow::OnOSKInput to ↵frosch
Window::OnEditboxChanged.
2012-11-13(svn r24733) -Codechange: Move handling of editbox keys to window class.frosch
2012-11-13(svn r24732) -Codechange: Unify handling of OK and CANCEL actions for editboxes.frosch
2012-11-13(svn r24729) -Codechange: Unify the handling of HEBR_EDITING.frosch
2012-11-13(svn r24727) -Fix: In various windows the OSK looked shiny but using it had ↵frosch
no effect whatsoever.
2012-11-13(svn r24726) -Codechange: Move editbox mouseloop handling to Window class.frosch
2012-11-13(svn r24724) -Codechange: Move drawing of editboxes to the widget drawing code.frosch