This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' ] | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class hsc.ui.SplashView | |
constructor () -> | |
tabGroup = Ti.UI.createTabGroup() | |
win1 = Ti.UI.createWindow({ | |
title:'Tab 1', | |
backgroundColor:'#fff' | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class hsc.ui.SplashView | |
constructor: -> | |
@tabGroup = Ti.UI.createTabGroup() | |
win1 = Ti.UI.createWindow({ | |
title:'Tab 1', | |
backgroundColor:'#fff' | |
}) | |
label1 = Titanium.UI.createLabel({ | |
color:'#999', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!!' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |