Skip to content

Instantly share code, notes, and snippets.

rotate: function() {
var transform = this.get('transform'),
that = this;
transform = SC.Transform3DRotateY(transform, Math.PI);
this.set('transform', transform);
this.set('focus', true);
setTimeout(function() {
SC.RunLoop.begin();
var xform = that.get('transform');
title : SC.LabelView.design({
valueBinding : SC.Binding.oneWay('Licenser.companiesController.length').transform(function(val) {
var ret = "none";
if (val) ret = "Total Companies [%@]".fmt(val);
return ret;
}),
classNames : [ 'title' ]
})
Sudoku.TopSurface = SC.View.extend({
init: function(){
sc_super();
var newButton = SC.ButtonWidget.create({
layout: { width: 100, top: 0, left: 0, height: 30 },
title: "New Game",
theme: 'square',
isDefault: true,
class hsc.ui.SplashView
constructor () ->
tabGroup = Ti.UI.createTabGroup()
win1 = Ti.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
})
class hsc.ui.SplashView
constructor: ->
@tabGroup = Ti.UI.createTabGroup()
win1 = Ti.UI.createWindow({
title:'Tab 1',
backgroundColor:'#fff'
})
label1 = Titanium.UI.createLabel({
color:'#999',
hsc.ui = {}
hsc.ui.views = {}
# inits the app
hsc.ui.init = ->
Ti.UI.setBackgroundColor('#000');
pWidth = Ti.Platform.displayCaps.platformWidth;
pHeight = Ti.Platform.displayCaps.platformHeight;
class hsc.ui.SplashView
constructor: ->
@window = Ti.UI.createWindow
title:'Tab 1',
backgroundColor:'#fff'
hackerLabel = Ti.UI.createLabel
color: '#900',
font: { fontSize:32 },
shadowColor: '#aaa',
// 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;
hsc.states.init = ->
hsc.statechart = Stativus.createStatechart();
hsc.statechart.addState '#root',
enterState: ->
Ti.API.info 'enter state!!!'
hsc.ui.init();
newRound: ->
Ti.API.info 'new round!!'
class hsc.ui.VerticalScorecard
constructor: ->
less = if Ti.App.SCREEN_WIDTH < Ti.App.SCREEN_HEIGHT then Ti.App.SCREEN_WIDTH else Ti.APP.SCREEN_HEIGHT
if Ti.App.SCREEN_WIDTH < Ti.App.SCREEN_HEIGHT
diff = Ti.App.SCREEN_HEIGHT - Ti.App.SCREEN_WIDTH
else
diff = Ti.App.SCREEN_WIDTH - Ti.APP.SCREEN_HEIGHT
top = diff - 24