From 139764f4f874efd272416af941f2a75a5031db94 Mon Sep 17 00:00:00 2001 From: Howland Owl Date: Tue, 15 Apr 2014 14:07:52 +0300 Subject: [PATCH] Ansi/Ascii toggle button, form display cleanup --- editor/sahliedit.css | 9 +++++++++ editor/sahliedit.litcoffee | 20 +++++++++++--------- editor/sahlieditor.html | 10 +++++----- 3 files changed, 25 insertions(+), 14 deletions(-) diff --git a/editor/sahliedit.css b/editor/sahliedit.css index 3712a3d..d129bcf 100644 --- a/editor/sahliedit.css +++ b/editor/sahliedit.css @@ -15,3 +15,12 @@ textarea { padding: 0; height: 2em; } + +pre { + font-family: 'TopazPlus a500a1000a2000','mOsOul',Monaco,monospace; + font-size: 16; +} + +label { + font-size: 10; +} \ No newline at end of file diff --git a/editor/sahliedit.litcoffee b/editor/sahliedit.litcoffee index 20bdd41..6742fc4 100644 --- a/editor/sahliedit.litcoffee +++ b/editor/sahliedit.litcoffee @@ -54,9 +54,17 @@ Also hide the hidden things. ) $(-> $(".hidden").hide() + $("#amiga").button {icons: {primary:"ui-icon-gear"}} + .click -> + stuff = $(@).children() + if @.value == "1" + stuff[1].textContent = 'Ansi' + @.value = "0" + else + stuff[1].textContent = 'Ascii' + @.value = "1" $(".45box").css {width:'45%',float:'left'} - ) - + ) The sahli file definition format is as follows: "file" - the actual filename on disk, "name" - the title of the piece, @@ -98,13 +106,7 @@ a html template, and a css file. alert "loader" editor: (data) -> - - alert dumpjson data - - - - - + q = data A Helper function to dump json out of an object as text: diff --git a/editor/sahlieditor.html b/editor/sahlieditor.html index aedee7d..66c1ef8 100644 --- a/editor/sahlieditor.html +++ b/editor/sahlieditor.html @@ -17,11 +17,11 @@