Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace App:Views:Layout:
- class Header
- constructor: ->
- @scene = new Boo.Scene 320, 31
- ctx = @scene.context
- ctx.style 'header.panel',
- color: '#550506'
- stroke: '#3e0305'
- ctx.style 'header.text',
- font:
- family: 'Arial'
- weight: 'bold'
- size: 15
- align: 'center'
- variant:'small-caps'
- color: '#fff'
- shadow:
- color: '#2f0103'
- top: 1
- window.ctx = @scene
- @scene.append (ctx) =>
- ctx.save()
- ctx.style 'header.panel'
- ctx.rect [0, 0], [@scene.resolution.width, 30]
- ctx.line [0, 30], [@scene.resolution.width, 30]
- ctx.style 'header.text'
- ctx.text 'КОРРУПЦИЯ', [@scene.resolution.width/2, 7]
- ctx.image @scene, '/images/header/menu.png',
- left: 0
- top: -1
- ctx.restore()
- @scene.drawAll()
- draw: (ctx) ->
- ctx.drawImage @scene.view, 0, 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement