mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-20 18:10:44 -04:00
commit
105d22c802
1 changed files with 4 additions and 4 deletions
|
@ -103,10 +103,10 @@ NoteGroupSchema = c.object {title: "Note Group", description: "A group of notes
|
|||
highlight: c.object {title: "Highlight", description: "Highlight the target DOM selector string with a big arrow."},
|
||||
target: c.shortString(title: "Target", description: "Target highlight element DOM selector string.")
|
||||
delay: {type: 'integer', minimum: 0, title: "Delay", description: "Show the highlight after this many milliseconds. Doesn't affect the dim shade cutout highlight method."}
|
||||
offset: _.extend _.cloneDeep(PointSchema), {title: 'Offset', description: 'Pointing arrow tip offset in pixels from the default target.', format: null}
|
||||
offset: _.extend _.cloneDeep(PointSchema), {title: 'Offset', description: 'Pointing arrow tip offset in pixels from the default target.', format: null}
|
||||
rotation: {type: 'number', minimum: 0, title: "Rotation", description: "Rotation of the pointing arrow, in radians. PI / 2 points left, PI points up, etc."}
|
||||
sides: c.array {title: "Sides", description: "Which sides of the target element to point at."}, {type: 'string', 'enum': ['left', 'right', 'top', 'bottom'], title: "Side", description: "A side of the target element to point at."}
|
||||
lock: {title: "Lock", description: "Whether the interface should be locked so that the player's focus is on the script, or specific areas to lock.", type: ['boolean', 'array'], items: {type: 'string', enum: ['surface', 'editor', 'palette', 'hud', 'playback', 'playback-hover', 'level', ]}}
|
||||
lock: {title: "Lock", description: "Whether the interface should be locked so that the player's focus is on the script, or specific areas to lock.", type: ['boolean', 'array'], items: {type: 'string', enum: ['surface', 'editor', 'palette', 'hud', 'playback', 'playback-hover', 'level']}}
|
||||
letterbox: {type: 'boolean', title: 'Letterbox', description:'Turn letterbox mode on or off. Disables surface and playback controls.'}
|
||||
|
||||
goals: c.object {title: "Goals (Old)", description: "Deprecated. Goals added here have no effect. Add goals in the level settings instead."},
|
||||
|
@ -228,7 +228,7 @@ _.extend LevelSchema.properties,
|
|||
links: [{rel: "extra", href: "/db/level/{($)}"}, {rel:'db', href: "/db/level/{(original)}/version/{(majorVersion)}"}],
|
||||
format: 'latest-version-reference',
|
||||
title: "Next Level",
|
||||
description: "Reference to the next level players will player after beating this one."
|
||||
description: "Reference to the next level players will play after beating this one."
|
||||
}
|
||||
scripts: c.array {title: "Scripts", description: "An array of scripts that trigger based on what the player does and affect things outside of the core level simulation.", "default": []}, ScriptSchema
|
||||
thangs: c.array {title: "Thangs", description: "An array of Thangs that make up the level.", "default": []}, LevelThangSchema
|
||||
|
@ -253,4 +253,4 @@ module.exports = LevelSchema
|
|||
# 2. Open up the Treema demo page http://localhost:9090/demo.html
|
||||
# 3. tv4.addSchema(metaschema.id, metaschema)
|
||||
# 4. S = <paste big schema here>
|
||||
# 5. tv4.validateMultiple(S, metaschema) and look for errors
|
||||
# 5. tv4.validateMultiple(S, metaschema) and look for errors
|
||||
|
|
Loading…
Reference in a new issue