Skip to content

gui_toolkit 0.286.0

Choose a tag to compare

@sachahjkl sachahjkl released this 15 Nov 23:44
· 774 commits to master since this release
v0.286.0
17311ff

Added

  • ui.shortcuts_sheet_set(sheet, commands, version, extra): gives the sheet of the keys a new table and new extra lines without opening or closing it, so a program that makes its table again in another language no longer reopens the sheet.
  • ui.card_box(): inside a card or a list_card (a row of it too), the box of the innermost card, to give it the keyboard or read its rect; nil outside a card. It replaces parent_box().parent.parent, which counted the card's inner boxes.

Changed

  • The sheet names an extra line's keys in the person's language: Sheet_Line.keys is written in English as a table's keys ("Esc, Esc", "Up / Down") and reads as a command's keys do ("Échap, Échap", "Haut / Bas" in French); a word that names no key ("Middle click") stays as written. platform.key_text reads / between two keys as it reads a comma.
  • A card can ask for no edge: Plate_Look.border and the border of machined_plate, machined_plate_corners, machined_plate_frame and machined_plate_frame_corners are a Maybe(Color): nil is the finish's edge, a colour of alpha 0 (Color{} included) is none. Migration: a look that left border zero for the finish's edge leaves it unset; a call that passed Color{} for the relief's edge passes nothing.