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
package ; | |
class MacroUtils { | |
public function new() { | |
} | |
/** Подставляет на этапе компиляции в код значение переданное компилятору через флаг -D (Например: -DsetLanguage=ru )*/ | |
macro public static function getDefinedValue(key:haxe.macro.Expr, defaultValue:haxe.macro.Expr) { | |
function getString(v:haxe.macro.Expr):String { | |
return switch(v.expr) { | |
case EConst(CString(str)): |
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
package; | |
import flash.display.DisplayObject; | |
import ru.stablex.ui.widgets.Widget; | |
enum VPolicy{ | |
Top; | |
Bottom; | |
Middle; | |
Justify; |
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
package; | |
// Consts for all assets IDs (openfl template). | |
// Copy to '%PROJECT_DIR%/templates/haxe/AssetId.hx' | |
// Add entry '<template path="templates"/>' to 'project.xml' | |
// Add "%EXPORT_DIR%/flash/haxe" as sources dir for IDE code completion | |
// Using in code: openfl.Assets.getText(AssetId.assets_data_txt) | |
// openfl.Assets.getBitmapData(AssetId.images_logo_png) | |
class AssetId { |
NewerOlder