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 UnityEditor; | |
using UnityEngine; | |
[CustomPropertyDrawer(typeof(EnumFlagAttribute))] | |
public class EnumFlagDrawer : PropertyDrawer | |
{ | |
private static bool foldout = false; | |
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) | |
{ |
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
#parse("ActionScript File Header.as") | |
#set($T='*') | |
#if(${GenericClass} && ${GenericClass} != "")#set($T=${GenericClass})#end | |
#set( $NodeType = 'LLItemNode' ) | |
#if ( ${T} != "") #set( $NodeType = "${T}Node" ) #end | |
## force capitalize first char | |
#set( $NodeType = "$NodeType.toString().substring(0,1).toUpperCase()$NodeType.toString().substring(1)" ) |
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
/* | |
* Copyright (c) 2014+ | |
* @author Alexander Kalinovych | |
*/ | |
package flashrush.utils { | |
import flash.display.InteractiveObject; | |
import flash.display.Sprite; | |
import flash.display.Stage; | |
import flash.events.Event; | |
import flash.events.FocusEvent; |
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
package starling.extensions.DistanceFieldFont | |
{ | |
import flash.geom.Rectangle; | |
import flash.utils.Dictionary; | |
import starling.display.Image; | |
import starling.text.BitmapChar; | |
import starling.textures.Texture; | |
import starling.textures.TextureSmoothing; | |
import starling.utils.HAlign; |