Skip to content

Instantly share code, notes, and snippets.

@hvgotcodes
Created May 2, 2012 02:00
Show Gist options
  • Save hvgotcodes/2573030 to your computer and use it in GitHub Desktop.
Save hvgotcodes/2573030 to your computer and use it in GitHub Desktop.
// Generated by CoffeeScript 1.3.1
(function() {
hsc.ui.VerticalScorecard = (function() {
VerticalScorecard.name = 'VerticalScorecard';
function VerticalScorecard() {
var cell, height, i, left, top, width, _i;
width = Ti.App.SCREEN_WIDTH / 3 - 20;
height = Ti.App.SCREEN_HEIGHT / 3 - 20;
this.window = Ti.UI.createWindow({
title: 'sc',
backgroundColor: '#000'
});
top = 5;
left = 5;
for (i = _i = 0; _i <= 9; i = ++_i) {
cell = new hsc.ui.CellView(width, height, top, left);
this.window.add(cell);
left = left + 5 + widt;
if (i > 0 && i % 3 === 0) {
top = top + 5 + height;
left = 5;
}
}
}
VerticalScorecard.prototype.open = function() {
return this.window.open();
};
return VerticalScorecard;
})();
}).call(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment