This file contains 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
using UnityEngine; | |
using System; | |
using System.Collections.Generic; | |
namespace BelacCorp | |
{ | |
[KSPAddon(KSPAddon.Startup.SpaceCentre, true)] | |
public class BeamActionTracker : MonoBehaviour | |
{ | |
public class BeamAction |
This file contains 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
var DialogRegion = Backbone.Marionette.Region.extend({ | |
el: '#form_dialog_div', | |
constructor: function () { | |
_.bindAll(this, "getEl", "showDialog", "hideDialog"); | |
Backbone.Marionette.Region.prototype.constructor.apply(this, arguments); | |
this.on("show", this.showDialog, this); | |
}, | |
getEl: function (selector) { | |
var $el = $(selector); | |
return $el; |
This file contains 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
var TabsLayoutView = Backbone.Marionette.LayoutView.extend({ | |
initialize: function(options){ | |
this.tabOneViewInstance = new TabOneiew(); | |
this.tabTwoViewInstance = new TabTwoView(); | |
this.tabThreeViewInstance = new TabThreeView(); | |
}, | |
template: "#tabs_layout_template", | |
regions: { | |
content: ".content-pane" | |
}, |
This file contains 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
var SpectrumDrawer = function(buffer){ | |
this.buffer = buffer; | |
this.bufferPosition = 0; | |
this.bufferLength = this.buffer.length; | |
var pixelWidth = $('#wave').width(); | |
this.sampleBufferLength = Math.floor(this.bufferLength / pixelWidth); | |
$('#spectrum').width(pixelWidth); | |
$('#spectrum').height($('#wave').height()); | |
this.spectrumCanvas = $('#spectrum').get(0); |
This file contains 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
'use strict'; | |
import TransitionRegion from './transitionRegion'; | |
export default TransitionRegion.extend({ | |
//can override transitionIn and transitionOut with diff effects | |
//must trigger 'transition:out:complete' and optionally 'transition:in:complete' | |
transitionOut(){ | |
var region = this; |
This file contains 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
var TabOneContentView = Marionette.LayoutView.extend({ | |
template: '#viewOne' | |
}); | |
var TabTwoContentView = Marionette.LayoutView.extend({ | |
template: '#viewTwo' | |
}); | |
var TabItemView = Marionette.ItemView.extend({ | |
template: '#itemView', |
This file contains 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
'use strict'; | |
import Backbone from 'backbone'; | |
import Radio from 'backbone.radio'; | |
import Marionette from 'marionette'; | |
import MyselfModel from 'lib/common/models/myselfModel'; | |
import UserAccountCollection from 'lib/common/models/userAccountCollection'; | |
import AccountCollection from 'lib/common/models/accountCollection'; |
This file contains 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
let filterChecklistItemViewTpl = '<label><input type="checkbox" name="{{name}}"" {{if isActive}}checked{{/if}} />{{title}}</label>'; | |
let filterViewTpl = '<div>{{filterTitle}}:<span data-ui="expandFilterButton" class="down-carret-thing></span></div><div data-region="filterChecklist"></div>'; | |
let FilterChecklistItemView = Marionette.LayoutView.extend({ | |
template: filterChecklistItemViewTpl, | |
ui: { | |
'checkbox': 'input[type="checkbox"]' | |
}, | |
events: { |
This file contains 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
'use strict'; | |
import Marionette from 'marionette'; | |
import viewTpl from './boxItemView.hbs!'; | |
import TrashListView from './trashListView.js'; | |
export default Marionette.LayoutView.extend({ | |
template: viewTpl, | |
tagName: 'li', | |
regions: { |
This file contains 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
// | |
//Regions | |
// | |
var NoWrapRegion = Backbone.Marionette.Region.extend({ | |
attachHtml: function (view) { | |
this.el.innerHTML=""; | |
var children = view.el.childNodes; | |
while (children.length > 0) { | |
this.el.appendChild(children[0]); |
OlderNewer