4/1/2023 0 Comments Openttd guideTherefore, most windows should not give focus to edit boxes by default. There can only be maximum one edit box per window.įor some windows it is useful to by default give focus to an edit box, however there is a problem with that: When edit boxes has focus, no hotkeys can be used as all keyboard input is sent to the edit box. to unfocus the edit box since it is not possible to use hotkeys while the edit box is globally focused. When the user is done editing the edit box it is a good idea if it clicks on a button/panel etc. To edit the contents of an edit box, the user needs to click on the edit box to give it focus. ![]() If the window may be changed in size by the user, a resizebox should be available at the bottom right.Ī Text edit box is used to let users edit/type a text string. Like the shading button, a sticky button should only be added for windows that may stay open for a longer time. It prevents a window from being closed when using the delete key (which closes all non-sticky, non-essential windows). ![]() The button should only be used for windows that may stay open for a longer time.Īt the far right of the window, a sticky button may be added. The button should only be added to the window if it displays an game object that has a grf to control its behaviour or appearance.Ī shading button is used to fold the window to just its title bar (and unfold it again to its full contents) to save screen space for windows that are not always needed. If unsaved changes exist when the user closes the window, he should be made aware, so he can take appropriate action.Īt the right of the title bar, a grf debug button, a shading button, and sticky button may be positioned.Ī grf debug button (normally hidden, but enabled by a setting) is used to open a development window for monitoring the internal state of the grf. Preferably, that button should also be the only way to remove the window. It can also be used to drag the window to a different position at the screen, and shade and unshade the window by using the mouse wheel.Īt the left of the title bar, a closebox should exist to allow the user to close the window (a notable exception is the window in the intro screen). For windows displaying data of a comapny, the background colour must be in the company colour. Also note that the text string in the title bar is normally centred. The title bar displays a text stating the contents of the window. For windows with less information, these rules are somewhat loosened, a window just asking a yes/no question does not need to be ultimately compact.Ī window should have a title bar. Every piece of the window is used to display information, or to provide Since screen space was scarce in that time, the windows should be compact. Server Admin Port development Ingame ConsoleĬonsole development history Content APIs (modding frameworks)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |