Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply: (parser) ->
- y1 = 52
- y2 = 70
- parser.parse [
- {Rect: x: 0, y: 0, width: 320, height: 100, color: '#900'}
- {HLine: x: 0, y: 100, width: 320, color: '#000'}
- # HEADER PANEL
- {Rect: x: 0, y: 0, width: 320, height: 31, color: '#550406'}
- {HLine: x: 0, y: 31, width: 320, color: '#3d0305'}
- {HLine: x: 0, y: 32, width: 320, color: '#9e070c'}
- {Rect: x: 0, y: 0, width: 31, height: 31, color: '#3d0305'}
- {Image: src: 'assets/images/layout/menu.png', x: 0, y: 0, width: 31, height: 31},
- {Label: text: "КОРРУПЦИЯ", x: 124, y: 21, shadow: '#000', color: '#fff', font: 'bold 16px Arial'}
- # Текст банк
- {Image: src: 'assets/images/icons/header/ruble.png', x: 8, y: y1 - 10, width: 20, height: 17}
- {Label: text: '1 124', color: '#fff', font: 'bold 12px Arial', y: y1+2, x: 33, shadow: '#790509'}
- {Label: text: '(999 в банке)', color: '#fff', font: '10px Arial', y: y1, x: 66, shadow: '#790509'}
- {Label: text: '+ 6 512 через 19:52', color: '#dcf372', font: '10px Arial', y: y1, x: 133, shadow: '#790509'}
- # КЦ
- {Image: src: 'assets/images/icons/header/chain.png', width: 17, height: 17, y: y1 - 12, x: 270}
- {Label: text: '32', color: '#fff', font: 'bold 12px Arial', y: y1+2, x: 294, shadow: '#790509'}
- # Уровень
- {Image: src: 'assets/images/header/level-bar.png', x: 8, y: y2, part: [0, 0, 36, 25], width: 36, height: 25}
- {Image: src: 'assets/images/header/level-bar.png', x: 8+36, y: y2, part: [0, 50, 36, 25], width: 251, height: 25}
- {Image: src: 'assets/images/header/level-bar.png', x: 240+36, y: y2, part: [0, 25, 36, 25], width: 36, height: 25}
- {Label: text: '25', color: '#fff', shadow: '#000', font: '11px Arial', x: 16, y: y2 + 17}
- {Label: text: '26', color: '#fff', shadow: '#000', font: '11px Arial', x: 304, y: y2 + 17, align: 'right'}
- ]
- # анимация
- img = new JSRender.Primitives.Image src: 'assets/images/header/exp.png', width: 5, height: 15, x: 8+36, y: 75
- img.before @render
- int = 3
- setInterval =>
- if img.width() > 220 then int = -3
- if img.width() < 1 then int = 3
- img.width(img.width() + int)
- , 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement