2018-07-22 03:43:01 +00:00
|
|
|
package balance
|
|
|
|
|
2019-12-23 02:21:58 +00:00
|
|
|
import "git.kirsle.net/go/render"
|
2018-07-22 03:43:01 +00:00
|
|
|
|
|
|
|
// Shell related variables.
|
|
|
|
var (
|
2019-06-28 05:54:46 +00:00
|
|
|
ShellFontFilename = "DejaVuSansMono.ttf"
|
Menu Toolbar for Editor + Shell Prompts + Theme
* 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.
2018-08-12 00:30:00 +00:00
|
|
|
ShellBackgroundColor = render.RGBA(0, 20, 40, 200)
|
|
|
|
ShellForegroundColor = render.RGBA(0, 153, 255, 255)
|
|
|
|
ShellPromptColor = render.White
|
2019-12-28 03:16:34 +00:00
|
|
|
ShellPadding = 8
|
2018-07-24 03:10:53 +00:00
|
|
|
ShellFontSize = 16
|
2018-10-19 20:31:58 +00:00
|
|
|
ShellFontSizeSmall = 10
|
2018-07-22 03:43:01 +00:00
|
|
|
ShellCursorBlinkRate uint64 = 20
|
|
|
|
ShellHistoryLineCount = 8
|
|
|
|
|
|
|
|
// Ticks that a flashed message persists for.
|
2018-07-24 03:10:53 +00:00
|
|
|
FlashTTL uint64 = 400
|
2018-07-22 03:43:01 +00:00
|
|
|
)
|