Commits

Show all
Author Commit Message Labels Comments Date
Paul Sexton
Windows have a new slot, 'close-on-escape?'. If true, and the escape key is pressed while the window has focus, and is not otherwise handled, the window will close (become hidden). For list-windows: - the hotkey argument to 'window-add-item' is now a keyword rather than an optional argument. This function takes another keyword argument, prepend?. If true the item is added to the top of the list rather than the bottom. - a new slot, 'window-select-function'. Can be set to a function of two arguments, which will be called when the window receives a gui-select-event. R…
Paul Sexton
Any window class can now behave modally, by specialising the 'modal?' generic function. console-draw-char-at is now a plain function, for better performance. 'defstar' library is now required (this should not pose a problem as cl-tcod also requires it). Further bugfixes around using window borders, and unhiding versus raising windows.
Paul Sexton
Mouse movement now generates <Mouse-Move-Event> events, via 'send-mouse-move-event'. A distinction is now drawn between 'raising' and 'unhiding' windows. 'raise-window' raises a visible window to the top, but causes an error if called on a hidden window. 'unhide-window' unhides a hidden window and then raises it. Events now cannot be sent to hidden windows (more precisely, they have no effect on such windows). New utility function 'string->key': given a string representing a key…
Paul Sexton
GUI demo now uses an antialiased font by default. New function: stop-gui (to be used during interactive development)
Paul Sexton
We now depend on the Alexandria library, available at: http://common-lisp.net/project/alexandria/ "start-gui" allows specification of renderer and fullscreen mode. Default renderer is GLSL. We no longer attempt to auto detect the desktop resolution, as the libtcod function that does this no longer works (it gives the resolution of the root console rather than the whole screen). If width and height are not supplied when the root console is initialised, they default to 80 and 25. Added README.…
psex001
Added tag 1.2.0 for changeset 9cccb40edc82
psex001
- main gui loop rewritten for compatibility with libtcod 1.5.1rc1. - new window class: Meter-Window, draws one or more horizontal bar charts, the value of each of which is obtained by calling a function. - new window class: Simple-Prompt-Window. Modal window that prompts the user to enter a string, which is then returned. - can now specify default foreground and background colours for highlighted text, for each window (slots window-highlight-foreground and …
Tags
1.2.0
eeeickythump
Added functions to save and restore global interface state, intended for use when a program needs to switch between mutually exclusive GUIs. Added themes, allowing the definition of a set of defaults for window appearance and behaviour. Revamped the event system. Information such as x and y location and event type is now encapsulated within <GUI-Event> class and its subclasses, which include <Key-Event>, <Mouse-Event> etc. Windows now have a slot, window-event-handler, which can be bound to a function of the form (lambda (win event) …
Paul Sexton
Added tag 1.1.0 for changeset c6e8cfc4da13
Paul Sexton
+ String {markup} now recognises "b" or "bold" as a colour, which is translated into a brighter version of the window's current foreground or background colour. e.g. "{fg:b}bold text{/}" + New class: Hypertext window. It is linked to a "database" (hashtable linking topic titles to topic text). In the text of a topic, text in [square brackets] is a hyperlink, as is text matching the title of any other topic in the database. Clicking on a hyperlink causes the text for that topic to be displayed i…
Tags
1.1.0
eeeickythump
Corrected names of some console colour functions which had changed in libtcod.
psex001
Added tag 1.0 for changeset 54f896125311
psex001
Removed tag libtcod-1.5.0
Tags
1.0
psex001
* New window class: Terminal-Window. Emulates a command line or REPL. Stores a history of past commands, navigable with up and down arrow keys. * Fixes to Yes/No-Windows, so that they disappear once a choice is made. * Filtered-Windows now reset their filters when they are hidden/raised.
psex001
Changed 'console-print-left' to 'console-print' for compatibility with latest SVN libtcod.
psex001
Added tag libtcod-1.5.0 for changeset 81803565b733
eeeickythump
Reduced CPU usage by trying to only flush the console when necessary. Show mouse status in the bottom line in the GUI demo.
eeeickythump
Updated for latest libtcod version, and fixed some minor bugs. Add fps in gui-demo.
eeeickythump
Added Gnu Public Licence documentation. Began converting documentation strings to use CLOD instead of CLDoc. Implemented 'fading when unfocussed' behaviour. Now most windows partly fade out when the mouse is not over them. Exceptions include background-windows and modal-windows. This behaviour can be defined per window using the 'window-transparency-unfocussed' slot. Also fixed a bug with characters from background window 'bleeding thro…
Paul Sexton
Add brief readme for the demo.
Paul Sexton
Ensure we 're-load' the libtcod library, in case of stale references to external functions.
Paul Sexton
Fix incorrect type declaration.
pa...@wormwood
First commit