Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
failed to detect the most-right and most-bottom pixels of a widget. If scrollwheel is used on a not-found widget (such as the background of the toolbar), it will now fail correctly (glx)
|
|
TileVirtXY
|
|
|
|
request if the requested widget is invisible or otherwise not visible (type WWT_EMPTY)
|
|
dedicated server (only reset _thd.pos, not the whole structure; as done in revision 2241 to fix another crash)
|
|
highlighting. Without shutting down OpenTTD some possibly 'invalid' data in TileHighLightData (_thd) is left behind; reset it.
|
|
- CodeChange: Use images as arrows in the scenario-date scroller, looks better
- Feature: Clicked buttons with images/text now visibly depress their contents when pressed (eg it really seems like the button is moving)
- Fix: Fix sprite offsets of the arrow sprites in openttd.grf
|
|
- CodeChange: Introduction of SendWindowMessage() where a window can send another window a message (ala windows style msg, wparam, lparam). Messages can be sent by windowclass and by windowpointer.
- CodeChange: IsVitalWindow() simplifies a lot of checks for window handling that need to know what windows it can close, or be on top of, etc.
|
|
not have "focus", keyinput went to game. A quick fix for the horrid inputkey-handling.
|
|
(pkirchhofer)
|
|
console/querybox/chatbox is open, all input goes there, if closed to game itself.
|
|
MouseLoop from the new InitLoop() (more in the spirit of HandleKeypress()).
|
|
|
|
bug with a sloppy termination of a string. When any editbox is open, scrolling is disabled. If any new types of editboxes come up, please use SET/CLRBIT of _no_scroll with its unique identifier (ttd.h)
|
|
|
|
special action is needed, use the other events like WE_RESIZE or WE_DESTROY, etc.
|
|
|
|
window receives the click
|
|
|
|
appropriate warning flags in the Makefile
|
|
end of function. Thanks for finding this tamlin.
|
|
memory (tamlin)
|
|
|
|
is open. This also happened for towns and the land information window
-Added DeleteWindowByClass() function that deletes all windows of a given class
|
|
prevents reading of free'd memory (tamlin)
|
|
with top5 companies for a given difficulty (select the difficulty in the menu)
-Added endgame score on 1 jan 2051 where you are added to the highscore if sufficiently large points have been accumulated. Game is paused while
-These values are saved in hs.dat; added read/write functions for it
-Added code to delete all windows to show charts. There is one issue left: somehow a news-gui pops up in front of the the chart at the end of the game.
|
|
and Scrollbar2 now work independently. You can only scroll on list and scrollbar itself; scrollbar must be next widget of the list.
-Fix: updated the few gui's that didn't have the scrollbar right after the listbox.
|
|
|
|
find out
how the system works. All useful windows are already made resizable. Enjoy :)
-Fix: fixed some GUI-glitches and flaws along the way
|
|
macros for map querying.
|
|
TILE_MAX_[XY]
While here replace one erroneous TILE_MAX_X with MapMaxY()
|
|
This feature works much like autorenew, but it will get you a new engine type instead of a new one of the same type. Once
ordered, it will automatically replace the engines while they visits a depot. The GUI for setting this up have been added on the
vehicle overview windows
Note: autorenew is now autoreplace, but to the same engine type
Nice new features, that was added to make this possible
- windows can now have two independant vertical scrollbars
- CMD_SHOW_NO_ERROR have been added as a flag for DoCommandP. It will make it do the action instead of showing the red box with
estimated costs even if shift is pressed
- fixed problem where enginetypes where not initialized when loading a game. It's now done in InitializeGame()
|
|
status bar and main bar remain)
-Fix: For everyone who tried to crash the game by opening a huge amount of windows and stickying all of them; bad luck. It's fixed now (thanks Tron for the helpful criticism). First all normal windows are a candidate for replacement, then if none are found, sticky windows. Then..well that should not happen :)
|
|
user to set the window as undeletable and can only be closed by hand. As an example the viewport window has been stickied (thanks to Neko-San)
-To use the feature add WDF_STICKY_BUTTON to the widget description and update all widget-ID's since sticky button will be widget 2.
|
|
map.c and map.h
|
|
only hotkeys attached to the main toolbar are working if you have a textfield open.
|
|
- to chat with all players press Return (or Shift-T) and type in the message
- Press Return again to send the message
|
|
scrolling (r1063): now the centre of the mini-map window is the region of interest instead some arbitrary coordinate.
|
|
|
|
Thanks to lvoge
|
|
returned
|
|
|
|
|
|
While here make clamping against the screen border a bit nicer
|
|
Thanks to nzhook, who also proposed the original patch.
|