|
Darkvater
|
r5431:2abf239227ce
|
18 years ago
|
|
(svn r7637) -Codechange: Change ShowQueryString to use a window pointer as a parent. If the query has no parent (eg give money, rename waypoint), the global function HandleOnEditText is used.
|
|
Darkvater
|
r5380:f5fecf6b34ff
|
18 years ago
|
|
(svn r7565) -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to use in debug.h. grfmsg() is now used as a specific debug-function for grf.
|
|
matthijs
|
r5247:1abbd3b3cd80
|
18 years ago
|
|
|
|
Darkvater
|
r5070:6da414a78d0e
|
18 years ago
|
|
|
|
Darkvater
|
r5005:5aaa15bfda17
|
18 years ago
|
|
(svn r7022) -Fix [FS #292]: Properly guard against viewing company-sensitive information from invalid players (eg spectators) which could lead to crashes.
|
|
belugas
|
r4995:1c959f26648b
|
18 years ago
|
|
(svn r7001) -Codechange: _build_industry_trypes is now only used by industry_gui.c. Move it there. -Codechange: _industry_type_cost is not defined, remove its declaration
|
|
Darkvater
|
r4939:8315d865f2fb
|
18 years ago
|
|
(svn r6926) -Codechange: Rename WWT_4 to WWT_TEXTBTN_2 and WWT_6 to WWT_INSET (credits to peter1138 for the aptly found name) -Codechange: Remove the explicit numbering from WindowWidgetTypes
|
|
Darkvater
|
r4938:ccfdb2e58d04
|
18 years ago
|
|
(svn r6925) -Codechange: Be more strict with widget distinctions. WWT_PANEL is only plain panel, WWT_IMGBTN must contain an image for drawing. Renamed WWT_PANEL_2 to WWT_IMGBTN_2 because that is what it is. Added WWT_PUSHBTN that is either just a pushable button, or a textbutton, which text's drawn dynamically independent of widget.
|
|
Darkvater
|
r4912:d420151de4c6
|
18 years ago
|
|
(svn r6884) -Codechange: Add strict bounds checking in string formatting system. The last parameter should point to the end of the buffer (eg lastof(buf)) Courtesy of Tron.
|
|
peter1138
|
r4896:6cf2d452f4cc
|
18 years ago
|
|
|
|
Darkvater
|
r4848:23347d73ba8f
|
18 years ago
|
|
(svn r6774) -Codechange: Rename the badly named OWNER_SPECTATOR to PLAYER_SPECTATOR and put it into player.h where it belongs (instead of map.h)
|
|
belugas
|
r4719:e1d2222eb9fb
|
18 years ago
|
|
(svn r6631) -Codechange: Use accessors for click_state. Another step toward merging XTDwidget. The only two files not converted (window.h and widget.c) will be done at the very last commit)
|
|
belugas
|
r4634:c040de534aac
|
18 years ago
|
|
|
|
peter1138
|
r4617:408a5195583f
|
18 years ago
|
|
|
|
truelight
|
r4354:95cd3ce6deea
|
18 years ago
|
|
(svn r6055) -Codechange: added GetXXXArraySize, which returns HighestID + 1 (or, will do that). It isn't the best name, but we couldn't find any better. This unifies the pool-system even more.
|
|
truelight
|
r4346:fa4ac6b6f852
|
18 years ago
|
|
(svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips invalid ones -Codechange: use IsValidXXX where ever possible Note: both changes to prepare for new pool system, which needs those changes. For every pool there are 2 ugly lines, which will be removed when done implementing new pool system. Based on FS #13 by blathijs, partly implemented.
|
|
rubidium
|
r4344:bff007ae1fd1
|
18 years ago
|
|
|
|
truelight
|
r4299:ee21d1b71ef0
|
18 years ago
|
|
(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only allow certain patterns (like numbers only)
|
|
tron
|
r4282:ef2729d2a975
|
18 years ago
|
|
(svn r5912) -Fix: Sort order for produced amount and transported percentage was reversed in the industry list Also slightly change these sorting criteria: If an industry produces more than one type of cargo sort by the sum (amount) resp. minimum (%) instead of the mean
|
|
tron
|
r4277:fd4235a66bc9
|
18 years ago
|
|
|
|
miham
|
r4211:537da689eef6
|
18 years ago
|
|
(svn r5714) Backport from branches/TGP (r5701 and r5711) -Fix: < > boxes in patch-settings didn't grey out when they hit the limit of their range -Codechange: while at it, prettyfied DrawArrowButtons() a bit -Fix: < > boxes in industry production window (when cheat enabled) had a minor glitch
|
|
Darkvater
|
r4194:28781b31b9f6
|
18 years ago
|
|
|
|
Darkvater
|
r4193:2850f0fc0273
|
18 years ago
|
|
|
|
Darkvater
|
r4192:d0f4ca4267ed
|
18 years ago
|
|
|
|
belugas
|
r4171:bf306290d87e
|
18 years ago
|
|
|
|
belugas
|
r3689:445f66c2333d
|
18 years ago
|
|
(svn r4614) CodeChange : Cleanup of industry_cmd (Step-4). Removing the _industry_type_costs in favor of IndustrySpec.cost_multiplier; In order to let industry_gui use the GetIndustrySpec accessor, some structs had to be moved in industry.h
|
|
Darkvater
|
r3107:9850c940ee17
|
19 years ago
|
|
|
|
tron
|
r3017:1bf2ce772ffa
|
19 years ago
|
|
|
|
tron
|
r2989:c7c58e254010
|
19 years ago
|
|
(svn r3564) Several smaller changes: - Don't treat non-booleans as booleans - Reduce variable scope - Bracing - Use DeMorgan's law to make conditionals easier to read - if cascade -> switch - Replace some magic numbers by symbolic names - Avoid assignments within other statements
|
|
tron
|
r2952:e97f823d2dbe
|
19 years ago
|
|
|
|
tron
|
r2951:a52cbb930051
|
19 years ago
|
|
|
|
peter1138
|
r2866:7d14e2d6d59b
|
19 years ago
|
|
|
|
peter1138
|
r2725:4ee74e2f100e
|
19 years ago
|
|
|
|
tron
|
r2557:b3e50cfde797
|
19 years ago
|
|
|
|
tron
|
r2469:0895d2eace8d
|
19 years ago
|
|
|
|
tron
|
r2406:ca53e91ceee1
|
19 years ago
|
|
|
|
tron
|
r2186:5ee653b1b5e1
|
19 years ago
|
|
|
|
tron
|
r2163:ae001e2aa5b0
|
19 years ago
|
|
|
|
tron
|
r2159:2c706fe6b0a7
|
19 years ago
|
|
|
|
ludde
|
r2084:845406eb98cd
|
19 years ago
|
|
(svn r2594) Fix: [strgen] Misc updates to the string system. - Renamed the plural command to "P" instead of "PLURAL". Now write something like this to append an s on plural: {P "" s}. (You can optionally still add an argument index to explicitly specifiy which number that's used) - Removed the pluralized cargo strings from the string files. The new method is to use the plural specifier {P} - Added support for genders. First add "##gender der das die" on top, then use {G=der} on a cargoname/industry to set the gender, and to switch between genders do something like {G neu neu neue} {STRING} - Updated the swedish/english translation with P strings.
|
|
ludde
|
r2070:ae39d5bcd7da
|
19 years ago
|
|
(svn r2580) Change: Added {INDUSTRY} command for printing industry names instead of the old {TOWN} {STRING} way. - The formatting of the industry name can be controlled with the string STR_INDUSTRY_FORMAT. Change: Changed several occurences of {STRING1} into {TOWN} to get rid of townnametype being used directly.
|
|
ludde
|
r2063:f9227c383fe6
|
19 years ago
|
|
(svn r2572) - Codechange: [string] Changed string system so it's not as dependent on decode_parameters - Feature: [strgen] Allow changing the order of parameters in translated strings. - Use {1:TOWN} syntax to set the order. - Codechange: [strgen] Rewrote lots of strgen internals.
|
|
tron
|
r1981:addba4bccc89
|
19 years ago
|
|
|
|
Darkvater
|
r1914:63c34ade2fdf
|
19 years ago
|
|
|
|
Darkvater
|
r1891:c5c5466afa35
|
19 years ago
|
|
|
|
Darkvater
|
r1786:f4dff9cc496a
|
19 years ago
|
|
(svn r2290) - CodeChange: protect the next batch of commands. This brings us to a total of 61, which is 53% :) - CodeChange: To correctly accept engine-prototypes, the best-player checking has been moved to its own function, I hope it functions the same as before. - CodeChange: Added symbolic types of PlayerID, OrderID and EngineID. For engines also added GetEngine() and IsEngineIndex(), similar to the other such functions. - CodeChange: To correctly build industries, some tables have been moved to build_industry.h. The only way to find out currently if an industry is valid in a climate is by looping all industries and checking if it matches. Also to comply with the patch setting build_rawmaterial_industries, it is assumed that these industries do not accept any cargo of any type. This can and probably should changed in the future to some flag in their struct. Also use _opt_ptr instead of _opt. - CodeChange: implemented the HQ checking code inspired by MarkR2 in "[ 1190944 ] Many commands not checked for security". Unfortunately it is impossible to prevent only deleting a HQ by a modified client atm. - CodeChange: For insert order and modify order their parameters are implicitely truncated to 8 bits, instead of the 16 bits said in the comments.
|
|
bjarni
|
r1666:633fd8dd8619
|
20 years ago
|
|
|
|
celestar
|
r1388:42c33d15aaef
|
20 years ago
|
|
|
|
tron
|
r1386:4a215c381ba1
|
20 years ago
|
|
|
|
tron
|
r1309:4100b4013e37
|
20 years ago
|
|
|
|
tron
|
r1299:07d5483b3f76
|
20 years ago
|
|
|
|
tron
|
r1287:fc823391d719
|
20 years ago
|
|
|
|
truelight
|
r1267:78c35aaf06ff
|
20 years ago
|
|
(svn r1771) -Add: Industries are now dynamic (up to 64k industries). Generating 1kx1k maps should now be much faster, and give more than just oil-stuff ;)
|
|
miham
|
r1176:207d85469a1e
|
20 years ago
|
|
|
|
tron
|
r1093:18f56ef2d029
|
20 years ago
|
|
|
|
tron
|
r1019:90da3857ff29
|
20 years ago
|
|
|
|
miham
|
r1004:0bc78a4d4709
|
20 years ago
|
|
(svn r1503) Added feature: o allows users to setup the production values of the rawmaterial producing industries in the editor
Modified: o ttd.h - added CT_INVALID for 0xFF cargo type o english.txt - added 1 string o industry_gui.c - the feature itself o window.h - added compile asserts to the structs which checks whether their sizes are smaller than WINDOW_CUSTOM_SIZE
Thanks: o Darkvater to bother me to constantly improve the patch o Various users at #openttd for testing
|
|
truelight
|
r919:57ef81f1ba8e
|
20 years ago
|
|
(svn r1407) -Codechange: changed a lot around _stations, _vehicles, _towns and _industries (in prepare of dynamic arrays): - DEREF_XXX is changed into GetXXX - All direct call are directed via GetXXX - struct Industry has now an index-field - ENUM'd some stuff - Replaced home built loops with FOR_ALL_XXX - Added _stations_size, _vehicles_size, ... which gives the length of the array (which will be dynamic in the near future) - Changed lengtof(XXX) to _XXX_size (e.g. _stations_size) - Removed all endof(XXX) (because mostly it was part of a FOR_ALL_XXX) - Made the sort-functions of all 4 dynamic - Made all 4 Initialize functions more of the same - Some minor tab-fixing and stuff (tnx to Tron for proof-reading my 100kb patch ;))
Note for all: please do NOT directly call _stations, _vehicles, _towns and _industries, but use the right wrapper to access them. Thank you. Ps: please also do not use 'v++', where v is of type Vehicle *.
|
|
darkvater
|
r893:1d703a581761
|
20 years ago
|
|
|
|
truelight
|
r867:c270355a1b34
|
20 years ago
|
|
(svn r1348) -Feature: resizable windows. Read the comment in window.h to find out how the system works. All useful windows are already made resizable. Enjoy :) -Fix: fixed some GUI-glitches and flaws along the way
|
|
truelight
|
r830:5b6fa1e7dd30
|
20 years ago
|
|
|
|
truelight
|
r821:8ee0805540a2
|
20 years ago
|
|
|
|
darkvater
|
r758:f6c39d8615ff
|
20 years ago
|
|
(svn r1214) -Feature: Stickified Industries (list & window), Smallmaps (all three), Stations (list & window) and Towns (list & window). I hope I didn't forget to update a widget somewhere :O -Feature: With the sticky windows on and some unfortunate resizing of your game it the 'close' button might go outside of the playing field, making it impossible to close. Added an option to the Options menu that closes all windows, even if they are stickified ("Close ALL windows")
|
|
dominik
|
r727:c7ca8337a0b0
|
20 years ago
|
|
(svn r1179) Fix: Tooltips for vehicle list sorting This has gotta be the greatest kick for Moriarty!
|
|
tron
|
r679:3a7b08cc8504
|
20 years ago
|
|
|
|
tron
|
r534:46e9db8de483
|
20 years ago
|
|
(svn r901) Small step in the process to clean up the DPARAM mess: - reduce to 2 sizes (*DParam64 for 64bit values, *DParam for the rest) - use inline functions instead of macros - add assert()s to check for buffer overruns
|
|
tron
|
r507:b1b0a0a3c313
|
20 years ago
|
|
(svn r815) Include strings.h only in the files which need it. This should reduce the compile time after altering english.txt by about 1/3, because "only" 62 instead of 90 .c files must be recompiled.
|
|
darkvater
|
r222:4409829eb08f
|
20 years ago
|
|
(svn r223) -Fix: Const correctness and miscellaneous fixes. Thank you Tron for your diligent fixing of warnings (and some possibly bugs) (Tron) -CodeLayout: Remove trailing spaces and Windows linebreaks
|
|
darkvater
|
r197:6b4d4a29186b
|
20 years ago
|
|
(svn r198) -Fix: [1020269] Different production? Wrong production amount was showed in the industry list window -Fix: Show industry list is now the first dropdown item. Second is Fund Industry.
|
|
truelight
|
r193:6aa65dc5a4b4
|
20 years ago
|
|
|
|
darkvater
|
r176:7d9100f64c27
|
20 years ago
|
|
(svn r177) -Fix: padded out Widget code to solve warnings on C99 compiler (Tron) -Fix: added WIDGETS_END macro for WWT_LAST which does this for all last widget-types
|
|
darkvater
|
r164:32c72e637930
|
20 years ago
|
|
(svn r165) -Feature: Option to sort vehicles in vehicle-list window by different criteria. Total independent sort for all types and players. Periodic resort of list every 10 TTD days. Thank you for your graphical inspiration follow and buxo (since none of you provided any code). -Fix: Sorter icon pointing down 'v' sorts in every window lowest value first, '^' highest value first -CodeChange: move Dropdownlist from settings_gui.c to widget.c. More in place there.
|
|
darkvater
|
r69:b97772683a3d
|
20 years ago
|
|
(svn r70) -Fix: typo in english.txt -Add some debug messages for misc=1
|
|
darkvater
|
r65:dbe972afb5a5
|
20 years ago
|
|
(svn r66) -Fix Station list updated on station deletion/station rename -Changed debug messages to comply with DEBUG(name, level) heuristics
|
|
truelight
|
r0:d63b455452f6
|
20 years ago
|
|
|