Noah Petherbridge
5956863996
* Added a "menu toolbar" to the top of the Edit Mode with useful buttons that work: New Level, New Doodad (same thing), Save, Save as, Open. * Added ability for the dev console to prompt the user for a question, which opens the console automatically. "Save", "Save as" and "Load" ask for their filenames this way. * Started groundwork for theming the app. The palette window is a light brown with an orange title bar, the Menu Toolbar has a black background, etc. * Added support for multiple fonts instead of just monospace. DejaVu Sans (normal and bold) are used now for most labels and window titles, respectively. The dev console uses DejaVu Sans Mono as before. * Update ui.Label to accept PadX and PadY separately instead of only having the Padding option which did both. * Improvements to Frame packing algorithm. * Set the SDL draw mode to BLEND so we can use alpha colors properly, so now the dev console is semi-translucent.
22 lines
577 B
Go
22 lines
577 B
Go
package balance
|
|
|
|
import (
|
|
"git.kirsle.net/apps/doodle/render"
|
|
)
|
|
|
|
// Shell related variables.
|
|
var (
|
|
// TODO: why not renders transparent
|
|
ShellFontFilename = "./fonts/DejaVuSansMono.ttf"
|
|
ShellBackgroundColor = render.RGBA(0, 20, 40, 200)
|
|
ShellForegroundColor = render.RGBA(0, 153, 255, 255)
|
|
ShellPromptColor = render.White
|
|
ShellPadding int32 = 8
|
|
ShellFontSize = 16
|
|
ShellCursorBlinkRate uint64 = 20
|
|
ShellHistoryLineCount = 8
|
|
|
|
// Ticks that a flashed message persists for.
|
|
FlashTTL uint64 = 400
|
|
)
|