Commit Graph

283 Commits (e1eeca644057fa4e9a0cb4f184f17ef128e3cb05)

Author SHA1 Message Date
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
alberth bf93372ca2 (svn r18220) -Codechange: Reduce number of nested widget dynamic casts. 15 years ago
rubidium 2332034822 (svn r18219) -Fix: the up/down buttons in the start network server window didn't work anymore 15 years ago
rubidium 206c01a4e5 (svn r18218) -Codechange: make a few network windows big font aware 15 years ago
rubidium 8204f226f1 (svn r18213) -Codechange: it's not needed to manually set the fill, (re)size and tooltip for scrollbars 15 years ago
rubidium d913282e7a (svn r18212) -Codechange: remove unneeded 'parameters' for WWT_CAPTION, WWT_CLOSEBOX and WWT_STICKYBOX in the nested widget arrays 15 years ago
alberth 777d5ce12e (svn r18201) -Codechange (r18092): No need anymore for initializing nested widgets for Widget* arrays. 15 years ago
rubidium 8bb9d7026f (svn r18175) -Codechange: make the network lobby and client list 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 aeb9f8e715 (svn r18092) -Codechange: remove support for the unnested widgets 15 years ago
rubidium 3d2d7af88f (svn r18086) -Codechange: remove 'widget' from WindowDesc 15 years ago
rubidium 16c2e53191 (svn r18078) -Codechange: remove some duplicate (non translatable) strings 15 years ago
rubidium 9976da168e (svn r17958) -Codechange: make the join progress window nested 15 years ago
rubidium 56611d13db (svn r17955) -Codechange: s/SPR_PLAYER_ICON/SPR_COMPANY_ICON/ 15 years ago
rubidium 8382b41420 (svn r17954) -Codechange: make the network client list nested 15 years ago
rubidium 27218dff08 (svn r17952) -Codechange: make the network client list popup nested 15 years ago
rubidium b1f906e819 (svn r17951) -Codechange: simplify making the popup list, remove arbirary limitations and unused code/strings. 15 years ago
rubidium 44013ba889 (svn r17948) -Codechange: remove some magic numbers from the network client list GUIs / use ResizeWindow instead of custom resize code. 15 years ago
rubidium 148d9b8e38 (svn r17946) -Codechange: move the widget definition of the client list closer to the window 15 years ago
rubidium 8cb8f81662 (svn r17905) -Codechange: make the network server list window nested (and increase the default size slightly) 15 years ago
rubidium 4fd74e2f94 (svn r17887) -Codechange: remove some (now) unneeded {SKIP}s 15 years ago
rubidium 7b46503dfc (svn r17886) -Codechange: make the 'start server' window nested 15 years ago
rubidium 62f42f2131 (svn r17885) -Codechange: make the network lobby window nested 15 years ago
rubidium fc741b3334 (svn r17884) -Codechange: remove (most) magic numbers from drawing the details of the network lobby and split detail drawing to its own function 15 years ago
rubidium e61008b599 (svn r17882) -Codechange: make the code to draw the details in the server list a seperate function and remove some magic numbers 15 years ago
rubidium 22db089c0d (svn r17877) -Fix (r1322/r1174/r464): do not hardcode 'Ban' for GUI purposes, i.e. make it translatable 15 years ago
rubidium fac3655a4c (svn r17876) -Codechange: make the network company password window nested 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
smatz 6c7f8fc8b4 (svn r17701) -Codechange: don't start line with a space if it's not inside comment 15 years ago
rubidium d6cded5380 (svn r17693) -Cleanup: remove some unneeded includes 15 years ago
smatz 114d48e492 (svn r17596) -Codechange: constify some tables 15 years ago
frosch bc8557d5c0 (svn r17539) -Codechange: Replace a magic number. 15 years ago
frosch ebd916be3d (svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability. 15 years ago
rubidium 45e3141444 (svn r17526) -Codechange: use QSortT instead of qsort for sorting the language list in the network GUI 15 years ago
rubidium 59ac4f6b21 (svn r17370) -Codechange: make the saveload and network GUIs use the scrollbar wrappers 15 years ago
rubidium aca7ba714a (svn r17271) -Fix: SetFill sometimes used 1/0 when it should be using true/false 15 years ago
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 15 years ago
rubidium 1fe3ad3288 (svn r17075) -Codechange: rename ~750 strings to be more uniform with their relatives 15 years ago
rubidium 4b2592dbc0 (svn r17062) -Change: unify the naming of some 125 strings 15 years ago
rubidium 63c29124de (svn r16981) -Fix [FS#3062]: the last manually added server would not be saved 15 years ago
rubidium e9bc557b2a (svn r16930) -Codechange: more StringID name unification and grouping 15 years ago
alberth d0a47fc1b4 (svn r16845) -Codechange: Introduction of constants for describing the bits in a WWT_MATRIX data field. 15 years ago
rubidium 594070194f (svn r16842) -Cleanup: add some spaces around a few operators 15 years ago
rubidium 9f4d64bda0 (svn r16360) -Codechange: don't use _network_playas as a 'second' _local_company, but only as a storage location for the company you want to join in MP. 15 years ago
smatz 871107f529 (svn r16327) -Codechange: replace IsValidPoolItemID(index) by PoolItem::IsValidID(index) 15 years ago
smatz 3afce9b641 (svn r16288) -Fix (r16237): crash after clicking in the ClientList window 15 years ago
alberth 977db77921 (svn r16255) -Fix [FS#2887] (r16237): Nested widgets of client list window used incorrect length. 15 years ago
frosch 8fc723800f (svn r16254) -Fix [FS#2886]: Magic constant removed. 15 years ago
alberth 29675278c4 (svn r16237) -Codechange: Add nested widgets to remaining network windows. 15 years ago
alberth b967b45ae8 (svn r16236) -Codechange: Make widget enums complete of various network windows, and add them as comment. 15 years ago
rubidium 85b653bafc (svn r16163) -Codechange: instead of SetDParamStr(0, string); DrawString(..., STR_JUST_RAW_STRING, ...) use DrawString(..., string, ...). 15 years ago
rubidium 7dd677ced2 (svn r16162) -Codechange: remove needless TC_ colours from DrawString when they are part of strings and add some colours to a few strings. 15 years ago
rubidium 59d45a04d6 (svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible. 15 years ago
rubidium d04ebf2fa5 (svn r16065) -Fix: don't readd (and resolve) the last joined server each time the window gets repainted 15 years ago
rubidium 1d4318c0d1 (svn r15988) -Fix: inconsistency between using NETWORK_NAME_LENGTH and NETWORK_CLIENT_NAME_LENGTH for the length of client names. 15 years ago
rubidium cd8da0d69e (svn r15982) -Codechange: use GetAddressAsString to get the name instead of passing the hostname and the IP into a string. 15 years ago
rubidium c9ebf14ba5 (svn r15947) -Codechange: replace uint32 client_ip with NetworkAddress client_address. 15 years ago
rubidium 89d0eca6b7 (svn r15931) -Codechange: let the host and ban lists use of SmallVector. 15 years ago
rubidium 1e205e01b8 (svn r15916) -Codechange: let the network game list use NetworkAddress 15 years ago
alberth 9d2738b9c4 (svn r15885) -Codechange: Removed new_size parameter of Window::OnResize() callback 15 years ago
yexo b61a681f02 (svn r15825) -Codechange: remove the WWT_DROPDOWNIN widget type and replace it with WWT_DROPDOWN. 16 years ago
rubidium e25b2f5d60 (svn r15822) -Codechange: replace some magic numbers and improve alignment of the start server window. 16 years ago
alberth 6567a29e18 (svn r15820) -Codechange: Some windows using nested widgets 16 years ago
rubidium 9038733f1a (svn r15812) -Codechange: use the new DrawString API in another set of GUIs 16 years ago
rubidium f11300d1f9 (svn r15794) -Codechange: remove the DoDrawString part of the old text drawing API 16 years ago
rubidium 9003641095 (svn r15790) -Codechange: remove the *Centered part of the old text drawing API. 16 years ago
rubidium fd0f0bda72 (svn r15788) -Codechange: enumify the network join status widgets and use them. 16 years ago
rubidium 45f189fdca (svn r15785) -Codechange: remove the *Truncated part of the old text drawing API. 16 years ago
glx 9fcff01850 (svn r15784) -Fix (r15779): TextAlignment and TA_* already exist on windows 16 years ago
rubidium 8a758beec3 (svn r15782) -Codechange: replace some calls to the all text drawing API to the new one. 16 years ago
smatz 8585aa71ed (svn r15726) -Codechange: unify coding style for const pointers 16 years ago
rubidium 4f8eeca437 (svn r15724) -Codechange: some widget documentation/fixing of enumified constant names (Alberth) 16 years ago
rubidium f9def73be6 (svn r15723) -Codechange: use a constructor for WindowDescs as that makes expanding them much easier (Alberth) 16 years ago
rubidium b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
rubidium 9d018723b7 (svn r15711) -Codechange: lots of whitespace cleanup/fixes 16 years ago
yexo 2b0b9a6367 (svn r15669) -Change: Key presses that are not handles by an input box are no longer marked as handled but given to other OnKeyPress handlers. This makes the global shortcuts like F1 work again when an input box is open. 16 years ago
smatz f3ed8268b6 (svn r15628) -Fix [FS#2705]: kicking/banning a client from the Client list window crashed the server 16 years ago
rubidium 908e850b5a (svn r15605) -Codechange: constify a function 16 years ago
yexo 3bb872e7dd (svn r15576) -Codechange: rename SwitchModes to SwitchMode and don't hardcode the values for that enum. 16 years ago
smatz 846044ee26 (svn r15571) -Fix: incorrect use of memset 16 years ago
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
rubidium 861e9cefb3 (svn r15424) -Codechange: make it possible to have multiple windows with edit box open simultaniously (Zuu). 16 years ago
rubidium 377ce6c5bf (svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability. 16 years ago
peter1138 aad67b5736 (svn r15312) -Codechange: Handle closing of drop down menus when clicking in a window in a single place, instead of in the OnClick event for some windows. This standardises behaviour so that clicking anywhere in a window will close its drop down menu, which happened before for some windows but not all. In addition the dubious feature of hiding a drop down menu by opening the same menu has been removed. This only caused wasted CPU cycles as a whole new list was generated and then destroyed. Breathe. 16 years ago
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 16 years ago
rubidium c9436c8d88 (svn r15162) -Fix: the join status window didn't get properly created 16 years ago
rubidium 5f3772a42c (svn r15157) -Codechange: wrap the hostname/ip and port into a single structure so we can pass either one of them and not convert an ip to a string and then back again. 16 years ago
rubidium 3a13b75e37 (svn r15126) -Feature: downloading content from a central server (content.openttd.org) where authors can upload they NewGRFS/AI etc. This should make joining servers that use only NewGRFs that are distributed via this system easier as the players can download the NewGRFs from in the game. It should also make it easier to see whether there are updates for NewGRFs and make the necessary updates. 16 years ago
rubidium b1a33a494f (svn r15104) -Codechange: unify the resolving of the xyz kbytes/megabytes strings. 16 years ago
truebrain a3dd7506d3 (svn r15027) -Merge: tomatos and bananas left to be, here is NoAI for all to see.
NoAI is an API (a framework) to build your own AIs in. See:
   http://wiki.openttd.org/wiki/index.php/AI:Main_Page
 With many thanks to:
  - glx and Rubidium for their syncing, feedback and hard work
  - Yexo for his feedback, patches, and AIs which tested the system very deep
  - Morloth for his feedback and patches
  - TJIP for hosting a challenge which kept NoAI on track
  - All AI authors for testing our AI API, and all other people who helped in one way or another
-Remove: all old AIs and their cheats/hacks
16 years ago
rubidium 11da45ee55 (svn r14949) -Cleanup: pointer coding style 16 years ago
rubidium c08f520acf (svn r14943) -Cleanup: remove some rogue spaces/replace some rogue tabs with spaces 16 years ago
glx 502607410e (svn r14816) -Fix: signed/unsigned warnings (MSVC) 16 years ago
rubidium e5c1a7b5c3 (svn r14804) -Codechange: unify opening the OSK (Zuu) 16 years ago
rubidium d1bb5e5f36 (svn r14735) -Codechange: remove a bit of bit-waste in the map array (without changing the map array) and make the CompanyIDs contiguous.
-Note: 15 should be enough for now... making it any more means adding more bytes to the map array and thus wasting more bits instead of reducing the bit waste.
16 years ago
rubidium afddfcb2b1 (svn r14730) -Codechange: remove the need for networkclientsockets and networkclientinfo structs to be in a contiguous piece of memory and put them in a pool.
-Note: 255 should really be enough for now... making it any more means network protocol bumps.
16 years ago
rubidium f7a52c4444 (svn r14728) -Fix [FS#2470]: don't select anything when opening the client list.
-Fix: don't show clients that are "only" in the lobby.
16 years ago