Panel, header, footer
This commit is contained in:
File diff suppressed because one or more lines are too long
|
Before Width: | Height: | Size: 815 B After Width: | Height: | Size: 73 KiB |
Binary file not shown.
@@ -0,0 +1,330 @@
|
|||||||
|
package;
|
||||||
|
|
||||||
|
#if macro
|
||||||
|
import haxe.macro.Compiler;
|
||||||
|
import haxe.macro.Context;
|
||||||
|
import haxe.macro.Expr;
|
||||||
|
#end
|
||||||
|
|
||||||
|
@:access(lime.app.Application)
|
||||||
|
@:access(lime.system.System)
|
||||||
|
@:access(openfl.display.Stage)
|
||||||
|
@:access(openfl.events.UncaughtErrorEvents)
|
||||||
|
@:dox(hide)
|
||||||
|
class ApplicationMain
|
||||||
|
{
|
||||||
|
#if !macro
|
||||||
|
public static function main()
|
||||||
|
{
|
||||||
|
lime.system.System.__registerEntryPoint("LPTCManager2026", create);
|
||||||
|
|
||||||
|
#if (js && html5)
|
||||||
|
#if (munit || (utest && openfl_enable_utest_legacy_mode))
|
||||||
|
lime.system.System.embed("LPTCManager2026", null, 500, 800);
|
||||||
|
#end
|
||||||
|
#else
|
||||||
|
create(null);
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function create(config):Void
|
||||||
|
{
|
||||||
|
var app = new openfl.display.Application();
|
||||||
|
|
||||||
|
#if !disable_preloader_assets
|
||||||
|
ManifestResources.init(config);
|
||||||
|
#end
|
||||||
|
|
||||||
|
app.meta["build"] = "2";
|
||||||
|
app.meta["company"] = "Nekotoro";
|
||||||
|
app.meta["file"] = "LPTCManager2026";
|
||||||
|
app.meta["name"] = "LPTCManager2026";
|
||||||
|
app.meta["packageName"] = "com.nekotoro.LPTCManager2026";
|
||||||
|
app.meta["version"] = "1.0.0";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if !flash
|
||||||
|
|
||||||
|
var attributes:lime.ui.WindowAttributes = {
|
||||||
|
allowHighDPI: true,
|
||||||
|
alwaysOnTop: false,
|
||||||
|
borderless: false,
|
||||||
|
// display: 0,
|
||||||
|
element: null,
|
||||||
|
frameRate: 60,
|
||||||
|
#if !web fullscreen: false, #end
|
||||||
|
height: 800,
|
||||||
|
hidden: #if munit true #else false #end,
|
||||||
|
maximized: false,
|
||||||
|
minimized: false,
|
||||||
|
parameters: {},
|
||||||
|
resizable: true,
|
||||||
|
title: "LPTCManager2026",
|
||||||
|
width: 500,
|
||||||
|
x: null,
|
||||||
|
y: null,
|
||||||
|
};
|
||||||
|
|
||||||
|
attributes.context = {
|
||||||
|
antialiasing: 0,
|
||||||
|
background: 13156797,
|
||||||
|
colorDepth: 32,
|
||||||
|
depth: true,
|
||||||
|
hardware: true,
|
||||||
|
stencil: true,
|
||||||
|
type: null,
|
||||||
|
vsync: false
|
||||||
|
};
|
||||||
|
|
||||||
|
if (app.window == null)
|
||||||
|
{
|
||||||
|
if (config != null)
|
||||||
|
{
|
||||||
|
for (field in Reflect.fields(config))
|
||||||
|
{
|
||||||
|
if (Reflect.hasField(attributes, field))
|
||||||
|
{
|
||||||
|
Reflect.setField(attributes, field, Reflect.field(config, field));
|
||||||
|
}
|
||||||
|
else if (Reflect.hasField(attributes.context, field))
|
||||||
|
{
|
||||||
|
Reflect.setField(attributes.context, field, Reflect.field(config, field));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#if sys
|
||||||
|
lime.system.System.__parseArguments(attributes);
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
|
||||||
|
app.createWindow(attributes);
|
||||||
|
|
||||||
|
#elseif air
|
||||||
|
app.window.title = "LPTCManager2026";
|
||||||
|
#else
|
||||||
|
app.window.context.attributes.background = 13156797;
|
||||||
|
app.window.frameRate = 60;
|
||||||
|
#end
|
||||||
|
|
||||||
|
var preloader = getPreloader();
|
||||||
|
app.preloader.onProgress.add (function(loaded, total)
|
||||||
|
{
|
||||||
|
@:privateAccess preloader.update(loaded, total);
|
||||||
|
});
|
||||||
|
app.preloader.onComplete.add(function()
|
||||||
|
{
|
||||||
|
@:privateAccess preloader.start();
|
||||||
|
});
|
||||||
|
|
||||||
|
preloader.onComplete.add(start.bind((cast app.window:openfl.display.Window).stage));
|
||||||
|
|
||||||
|
#if !disable_preloader_assets
|
||||||
|
for (library in ManifestResources.preloadLibraries)
|
||||||
|
{
|
||||||
|
app.preloader.addLibrary(library);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (name in ManifestResources.preloadLibraryNames)
|
||||||
|
{
|
||||||
|
app.preloader.addLibraryName(name);
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
|
||||||
|
app.preloader.load();
|
||||||
|
|
||||||
|
var result = app.exec();
|
||||||
|
|
||||||
|
#if (sys && !ios && !nodejs && !emscripten)
|
||||||
|
lime.system.System.exit(result);
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function start(stage:openfl.display.Stage):Void
|
||||||
|
{
|
||||||
|
#if flash
|
||||||
|
ApplicationMain.getEntryPoint();
|
||||||
|
#else
|
||||||
|
if (stage.__uncaughtErrorEvents.__enabled)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ApplicationMain.getEntryPoint();
|
||||||
|
|
||||||
|
stage.dispatchEvent(new openfl.events.Event(openfl.events.Event.RESIZE, false, false));
|
||||||
|
|
||||||
|
if (stage.window.fullscreen)
|
||||||
|
{
|
||||||
|
stage.dispatchEvent(new openfl.events.FullScreenEvent(openfl.events.FullScreenEvent.FULL_SCREEN, false, false, true, true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (e:Dynamic)
|
||||||
|
{
|
||||||
|
#if !display
|
||||||
|
stage.__handleError(e);
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ApplicationMain.getEntryPoint();
|
||||||
|
|
||||||
|
stage.dispatchEvent(new openfl.events.Event(openfl.events.Event.RESIZE, false, false));
|
||||||
|
|
||||||
|
if (stage.window.fullscreen)
|
||||||
|
{
|
||||||
|
stage.dispatchEvent(new openfl.events.FullScreenEvent(openfl.events.FullScreenEvent.FULL_SCREEN, false, false, true, true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
|
||||||
|
macro public static function getEntryPoint()
|
||||||
|
{
|
||||||
|
var hasMain = false;
|
||||||
|
|
||||||
|
switch (Context.follow(Context.getType("LPTCManager2026")))
|
||||||
|
{
|
||||||
|
case TInst(t, params):
|
||||||
|
|
||||||
|
var type = t.get();
|
||||||
|
for (method in type.statics.get())
|
||||||
|
{
|
||||||
|
if (method.name == "main")
|
||||||
|
{
|
||||||
|
hasMain = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hasMain)
|
||||||
|
{
|
||||||
|
return Context.parse("@:privateAccess LPTCManager2026.main()", Context.currentPos());
|
||||||
|
}
|
||||||
|
else if (type.constructor != null)
|
||||||
|
{
|
||||||
|
return macro
|
||||||
|
{
|
||||||
|
var current = stage.getChildAt (0);
|
||||||
|
|
||||||
|
if (current == null || !(current is openfl.display.DisplayObjectContainer))
|
||||||
|
{
|
||||||
|
current = new openfl.display.MovieClip();
|
||||||
|
stage.addChild(current);
|
||||||
|
}
|
||||||
|
|
||||||
|
new DocumentClass(cast current);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Context.fatalError("Main class \"LPTCManager2026\" has neither a static main nor a constructor.", Context.currentPos());
|
||||||
|
}
|
||||||
|
|
||||||
|
default:
|
||||||
|
|
||||||
|
Context.fatalError("Main class \"LPTCManager2026\" isn't a class.", Context.currentPos());
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
macro public static function getPreloader()
|
||||||
|
{
|
||||||
|
|
||||||
|
return macro
|
||||||
|
{
|
||||||
|
new openfl.display.Preloader(new openfl.display.Preloader.DefaultPreloader());
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#if !macro
|
||||||
|
@:noCompletion @:dox(hide) public static function __init__()
|
||||||
|
{
|
||||||
|
var init = lime.app.Application;
|
||||||
|
|
||||||
|
#if neko
|
||||||
|
// Copy from https://github.com/HaxeFoundation/haxe/blob/development/std/neko/_std/Sys.hx#L164
|
||||||
|
// since Sys.programPath () isn't available in __init__
|
||||||
|
var sys_program_path = {
|
||||||
|
var m = neko.vm.Module.local().name;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
sys.FileSystem.fullPath(m);
|
||||||
|
}
|
||||||
|
catch (e:Dynamic)
|
||||||
|
{
|
||||||
|
// maybe the neko module name was supplied without .n extension...
|
||||||
|
if (!StringTools.endsWith(m, ".n"))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
sys.FileSystem.fullPath(m + ".n");
|
||||||
|
}
|
||||||
|
catch (e:Dynamic)
|
||||||
|
{
|
||||||
|
m;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var loader = new neko.vm.Loader(untyped $loader);
|
||||||
|
loader.addPath(haxe.io.Path.directory(#if (haxe_ver >= 3.3) sys_program_path #else Sys.executablePath() #end));
|
||||||
|
loader.addPath("./");
|
||||||
|
loader.addPath("@executable_path/");
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
|
||||||
|
#if !macro
|
||||||
|
@:build(DocumentClass.build())
|
||||||
|
@:keep @:dox(hide) class DocumentClass extends LPTCManager2026 {}
|
||||||
|
#else
|
||||||
|
class DocumentClass
|
||||||
|
{
|
||||||
|
macro public static function build():Array<Field>
|
||||||
|
{
|
||||||
|
var classType = Context.getLocalClass().get();
|
||||||
|
var searchTypes = classType;
|
||||||
|
|
||||||
|
while (searchTypes != null)
|
||||||
|
{
|
||||||
|
if (searchTypes.module == "openfl.display.DisplayObject" || searchTypes.module == "flash.display.DisplayObject")
|
||||||
|
{
|
||||||
|
var fields = Context.getBuildFields();
|
||||||
|
|
||||||
|
var method = macro
|
||||||
|
{
|
||||||
|
current.addChild(this);
|
||||||
|
super();
|
||||||
|
dispatchEvent(new openfl.events.Event(openfl.events.Event.ADDED_TO_STAGE, false, false));
|
||||||
|
}
|
||||||
|
|
||||||
|
fields.push({ name: "new", access: [ APublic ], kind: FFun({ args: [ { name: "current", opt: false, type: macro :openfl.display.DisplayObjectContainer, value: null } ], expr: method, params: [], ret: macro :Void }), pos: Context.currentPos() });
|
||||||
|
|
||||||
|
return fields;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (searchTypes.superClass != null)
|
||||||
|
{
|
||||||
|
searchTypes = searchTypes.superClass.t.get();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
searchTypes = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#end
|
||||||
@@ -0,0 +1,112 @@
|
|||||||
|
package;
|
||||||
|
|
||||||
|
import haxe.io.Bytes;
|
||||||
|
import haxe.io.Path;
|
||||||
|
import lime.utils.AssetBundle;
|
||||||
|
import lime.utils.AssetLibrary;
|
||||||
|
import lime.utils.AssetManifest;
|
||||||
|
import lime.utils.Assets;
|
||||||
|
|
||||||
|
#if sys
|
||||||
|
import sys.FileSystem;
|
||||||
|
#end
|
||||||
|
|
||||||
|
#if disable_preloader_assets
|
||||||
|
@:dox(hide) class ManifestResources {
|
||||||
|
public static var preloadLibraries:Array<Dynamic>;
|
||||||
|
public static var preloadLibraryNames:Array<String>;
|
||||||
|
public static var rootPath:String;
|
||||||
|
|
||||||
|
public static function init (config:Dynamic):Void {
|
||||||
|
preloadLibraries = new Array ();
|
||||||
|
preloadLibraryNames = new Array ();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
@:access(lime.utils.Assets)
|
||||||
|
|
||||||
|
|
||||||
|
@:keep @:dox(hide) class ManifestResources {
|
||||||
|
|
||||||
|
|
||||||
|
public static var preloadLibraries:Array<AssetLibrary>;
|
||||||
|
public static var preloadLibraryNames:Array<String>;
|
||||||
|
public static var rootPath:String;
|
||||||
|
|
||||||
|
|
||||||
|
public static function init (config:Dynamic):Void {
|
||||||
|
|
||||||
|
preloadLibraries = new Array ();
|
||||||
|
preloadLibraryNames = new Array ();
|
||||||
|
|
||||||
|
rootPath = null;
|
||||||
|
|
||||||
|
if (config != null && Reflect.hasField (config, "rootPath")) {
|
||||||
|
|
||||||
|
rootPath = Reflect.field (config, "rootPath");
|
||||||
|
|
||||||
|
if(!StringTools.endsWith (rootPath, "/")) {
|
||||||
|
|
||||||
|
rootPath += "/";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (rootPath == null) {
|
||||||
|
|
||||||
|
#if (ios || tvos || webassembly)
|
||||||
|
rootPath = "assets/";
|
||||||
|
#elseif android
|
||||||
|
rootPath = "";
|
||||||
|
#elseif (console || sys)
|
||||||
|
rootPath = lime.system.System.applicationDirectory;
|
||||||
|
#else
|
||||||
|
rootPath = "./";
|
||||||
|
#end
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#if (openfl && !flash && !display)
|
||||||
|
|
||||||
|
#end
|
||||||
|
|
||||||
|
var data, manifest, library, bundle;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#if !display
|
||||||
|
#if flash
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#elseif (desktop || cpp)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#end
|
||||||
|
|
||||||
|
#if (openfl && !flash)
|
||||||
|
|
||||||
|
#if html5
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#end
|
||||||
|
|
||||||
|
#end
|
||||||
|
#end
|
||||||
|
|
||||||
|
#end
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
-main ApplicationMain
|
||||||
|
--macro lime._internal.macros.DefineMacro.run()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/lime/8,2,3/src
|
||||||
|
-D lime=8.2.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-cairngorm/1,0,0/src
|
||||||
|
-D feathersui-cairngorm=1.0.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui/1,3,0/src
|
||||||
|
-D feathersui=1.3.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/actuate/1,9,0/src
|
||||||
|
-D actuate=1.9.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/hxargs/4,0,0
|
||||||
|
-D hxargs=4.0.0
|
||||||
|
--macro openfl.utils._internal.ExtraParamsMacro.include()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/openfl/9,4,2/src
|
||||||
|
-D openfl=9.4.2
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-rpc-services/1,0,3/src
|
||||||
|
-D feathersui-rpc-services=1.0.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/amfio/1,0,2/src
|
||||||
|
-D amfio=1.0.2
|
||||||
|
-cp src
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/openfl/9,4,2/lib/flash-externs/src
|
||||||
|
-D AIR_SDK=/Users/chatmurai/Documents/code/AS3/SDKs/AIR_SDK_32.0
|
||||||
|
-D native-trace
|
||||||
|
-D tools=8.2.3
|
||||||
|
-D no-compilation
|
||||||
|
-D disable_preloader_assets=1
|
||||||
|
-D openfl-flash
|
||||||
|
-D web
|
||||||
|
-swf-version 17
|
||||||
|
-swf bin/flash/bin/LPTCManager2026.swf
|
||||||
|
-swf-header 500:800:60:C8C1BD
|
||||||
|
-cp bin/flash/haxe
|
||||||
|
-debug
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
-main ApplicationMain
|
||||||
|
--macro lime._internal.macros.DefineMacro.run()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/lime/8,2,3/src
|
||||||
|
-D lime=8.2.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-cairngorm/1,0,0/src
|
||||||
|
-D feathersui-cairngorm=1.0.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui/1,3,0/src
|
||||||
|
-D feathersui=1.3.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/actuate/1,9,0/src
|
||||||
|
-D actuate=1.9.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/hxargs/4,0,0
|
||||||
|
-D hxargs=4.0.0
|
||||||
|
--macro openfl.utils._internal.ExtraParamsMacro.include()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/openfl/9,4,2/src
|
||||||
|
-D openfl=9.4.2
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-rpc-services/1,0,3/src
|
||||||
|
-D feathersui-rpc-services=1.0.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/amfio/1,0,2/src
|
||||||
|
-D amfio=1.0.2
|
||||||
|
-cp src
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/openfl/9,4,2/lib/flash-externs/src
|
||||||
|
-D AIR_SDK=/Users/chatmurai/Documents/code/AS3/SDKs/AIR_SDK_32.0
|
||||||
|
-D native-trace
|
||||||
|
-D tools=8.2.3
|
||||||
|
-D no-compilation
|
||||||
|
-D disable_preloader_assets=1
|
||||||
|
-D openfl-flash
|
||||||
|
-D web
|
||||||
|
-swf-version 17
|
||||||
|
-swf bin/flash/bin/LPTCManager2026.swf
|
||||||
|
-swf-header 500:800:60:C8C1BD
|
||||||
|
-cp bin/flash/haxe
|
||||||
|
-D final
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
-main ApplicationMain
|
||||||
|
--macro lime._internal.macros.DefineMacro.run()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/lime/8,2,3/src
|
||||||
|
-D lime=8.2.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-cairngorm/1,0,0/src
|
||||||
|
-D feathersui-cairngorm=1.0.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui/1,3,0/src
|
||||||
|
-D feathersui=1.3.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/actuate/1,9,0/src
|
||||||
|
-D actuate=1.9.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/hxargs/4,0,0
|
||||||
|
-D hxargs=4.0.0
|
||||||
|
--macro openfl.utils._internal.ExtraParamsMacro.include()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/openfl/9,4,2/src
|
||||||
|
-D openfl=9.4.2
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-rpc-services/1,0,3/src
|
||||||
|
-D feathersui-rpc-services=1.0.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/amfio/1,0,2/src
|
||||||
|
-D amfio=1.0.2
|
||||||
|
-cp src
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/openfl/9,4,2/lib/flash-externs/src
|
||||||
|
-D AIR_SDK=/Users/chatmurai/Documents/code/AS3/SDKs/AIR_SDK_32.0
|
||||||
|
-D native-trace
|
||||||
|
-D tools=8.2.3
|
||||||
|
-D no-compilation
|
||||||
|
-D disable_preloader_assets=1
|
||||||
|
-D openfl-flash
|
||||||
|
-D web
|
||||||
|
-swf-version 17
|
||||||
|
-swf bin/flash/bin/LPTCManager2026.swf
|
||||||
|
-swf-header 500:800:60:C8C1BD
|
||||||
|
-cp bin/flash/haxe
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 223 B |
@@ -0,0 +1,44 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<meta charset="utf-8">
|
||||||
|
|
||||||
|
<title>lepetittrot.com - manager</title>
|
||||||
|
|
||||||
|
<meta id="viewport" name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||||
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||||
|
|
||||||
|
|
||||||
|
<link rel="shortcut icon" type="image/png" href="./favicon.png">
|
||||||
|
|
||||||
|
|
||||||
|
<script type="text/javascript" src="./LPTCManager2026.js"></script>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
window.addEventListener ("touchmove", function (event) { event.preventDefault (); }, { capture: false, passive: false });
|
||||||
|
if (typeof window.devicePixelRatio != 'undefined' && window.devicePixelRatio > 2) {
|
||||||
|
var meta = document.getElementById ("viewport");
|
||||||
|
meta.setAttribute ('content', 'width=device-width, initial-scale=' + (2 / window.devicePixelRatio) + ', user-scalable=no');
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
html,body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
|
||||||
|
#openfl-content { background: #000000; width: 100%; height: 100%; }
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<noscript>This webpage makes extensive use of JavaScript. Please enable JavaScript in your web browser to view this page.</noscript>
|
||||||
|
|
||||||
|
<div id="openfl-content"></div>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
lime.embed ("LPTCManager2026", "openfl-content", 500, 800, { parameters: {} });
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,330 @@
|
|||||||
|
package;
|
||||||
|
|
||||||
|
#if macro
|
||||||
|
import haxe.macro.Compiler;
|
||||||
|
import haxe.macro.Context;
|
||||||
|
import haxe.macro.Expr;
|
||||||
|
#end
|
||||||
|
|
||||||
|
@:access(lime.app.Application)
|
||||||
|
@:access(lime.system.System)
|
||||||
|
@:access(openfl.display.Stage)
|
||||||
|
@:access(openfl.events.UncaughtErrorEvents)
|
||||||
|
@:dox(hide)
|
||||||
|
class ApplicationMain
|
||||||
|
{
|
||||||
|
#if !macro
|
||||||
|
public static function main()
|
||||||
|
{
|
||||||
|
lime.system.System.__registerEntryPoint("LPTCManager2026", create);
|
||||||
|
|
||||||
|
#if (js && html5)
|
||||||
|
#if (munit || (utest && openfl_enable_utest_legacy_mode))
|
||||||
|
lime.system.System.embed("LPTCManager2026", null, 500, 800);
|
||||||
|
#end
|
||||||
|
#else
|
||||||
|
create(null);
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function create(config):Void
|
||||||
|
{
|
||||||
|
var app = new openfl.display.Application();
|
||||||
|
|
||||||
|
#if !disable_preloader_assets
|
||||||
|
ManifestResources.init(config);
|
||||||
|
#end
|
||||||
|
|
||||||
|
app.meta["build"] = "2";
|
||||||
|
app.meta["company"] = "Nekotoro";
|
||||||
|
app.meta["file"] = "LPTCManager2026";
|
||||||
|
app.meta["name"] = "lepetittrot.com - manager";
|
||||||
|
app.meta["packageName"] = "com.nekotoro.LPTCManager2026";
|
||||||
|
app.meta["version"] = "1.0.0";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if !flash
|
||||||
|
|
||||||
|
var attributes:lime.ui.WindowAttributes = {
|
||||||
|
allowHighDPI: true,
|
||||||
|
alwaysOnTop: false,
|
||||||
|
borderless: false,
|
||||||
|
// display: 0,
|
||||||
|
element: null,
|
||||||
|
frameRate: 0,
|
||||||
|
#if !web fullscreen: false, #end
|
||||||
|
height: 800,
|
||||||
|
hidden: #if munit true #else false #end,
|
||||||
|
maximized: false,
|
||||||
|
minimized: false,
|
||||||
|
parameters: {},
|
||||||
|
resizable: true,
|
||||||
|
title: "lepetittrot.com - manager",
|
||||||
|
width: 500,
|
||||||
|
x: null,
|
||||||
|
y: null,
|
||||||
|
};
|
||||||
|
|
||||||
|
attributes.context = {
|
||||||
|
antialiasing: 0,
|
||||||
|
background: 13156797,
|
||||||
|
colorDepth: 32,
|
||||||
|
depth: true,
|
||||||
|
hardware: true,
|
||||||
|
stencil: true,
|
||||||
|
type: null,
|
||||||
|
vsync: false
|
||||||
|
};
|
||||||
|
|
||||||
|
if (app.window == null)
|
||||||
|
{
|
||||||
|
if (config != null)
|
||||||
|
{
|
||||||
|
for (field in Reflect.fields(config))
|
||||||
|
{
|
||||||
|
if (Reflect.hasField(attributes, field))
|
||||||
|
{
|
||||||
|
Reflect.setField(attributes, field, Reflect.field(config, field));
|
||||||
|
}
|
||||||
|
else if (Reflect.hasField(attributes.context, field))
|
||||||
|
{
|
||||||
|
Reflect.setField(attributes.context, field, Reflect.field(config, field));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#if sys
|
||||||
|
lime.system.System.__parseArguments(attributes);
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
|
||||||
|
app.createWindow(attributes);
|
||||||
|
|
||||||
|
#elseif air
|
||||||
|
app.window.title = "lepetittrot.com - manager";
|
||||||
|
#else
|
||||||
|
app.window.context.attributes.background = 13156797;
|
||||||
|
app.window.frameRate = 0;
|
||||||
|
#end
|
||||||
|
|
||||||
|
var preloader = getPreloader();
|
||||||
|
app.preloader.onProgress.add (function(loaded, total)
|
||||||
|
{
|
||||||
|
@:privateAccess preloader.update(loaded, total);
|
||||||
|
});
|
||||||
|
app.preloader.onComplete.add(function()
|
||||||
|
{
|
||||||
|
@:privateAccess preloader.start();
|
||||||
|
});
|
||||||
|
|
||||||
|
preloader.onComplete.add(start.bind((cast app.window:openfl.display.Window).stage));
|
||||||
|
|
||||||
|
#if !disable_preloader_assets
|
||||||
|
for (library in ManifestResources.preloadLibraries)
|
||||||
|
{
|
||||||
|
app.preloader.addLibrary(library);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (name in ManifestResources.preloadLibraryNames)
|
||||||
|
{
|
||||||
|
app.preloader.addLibraryName(name);
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
|
||||||
|
app.preloader.load();
|
||||||
|
|
||||||
|
var result = app.exec();
|
||||||
|
|
||||||
|
#if (sys && !ios && !nodejs && !emscripten)
|
||||||
|
lime.system.System.exit(result);
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function start(stage:openfl.display.Stage):Void
|
||||||
|
{
|
||||||
|
#if flash
|
||||||
|
ApplicationMain.getEntryPoint();
|
||||||
|
#else
|
||||||
|
if (stage.__uncaughtErrorEvents.__enabled)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ApplicationMain.getEntryPoint();
|
||||||
|
|
||||||
|
stage.dispatchEvent(new openfl.events.Event(openfl.events.Event.RESIZE, false, false));
|
||||||
|
|
||||||
|
if (stage.window.fullscreen)
|
||||||
|
{
|
||||||
|
stage.dispatchEvent(new openfl.events.FullScreenEvent(openfl.events.FullScreenEvent.FULL_SCREEN, false, false, true, true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (e:Dynamic)
|
||||||
|
{
|
||||||
|
#if !display
|
||||||
|
stage.__handleError(e);
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ApplicationMain.getEntryPoint();
|
||||||
|
|
||||||
|
stage.dispatchEvent(new openfl.events.Event(openfl.events.Event.RESIZE, false, false));
|
||||||
|
|
||||||
|
if (stage.window.fullscreen)
|
||||||
|
{
|
||||||
|
stage.dispatchEvent(new openfl.events.FullScreenEvent(openfl.events.FullScreenEvent.FULL_SCREEN, false, false, true, true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
|
||||||
|
macro public static function getEntryPoint()
|
||||||
|
{
|
||||||
|
var hasMain = false;
|
||||||
|
|
||||||
|
switch (Context.follow(Context.getType("LPTCManager2026")))
|
||||||
|
{
|
||||||
|
case TInst(t, params):
|
||||||
|
|
||||||
|
var type = t.get();
|
||||||
|
for (method in type.statics.get())
|
||||||
|
{
|
||||||
|
if (method.name == "main")
|
||||||
|
{
|
||||||
|
hasMain = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hasMain)
|
||||||
|
{
|
||||||
|
return Context.parse("@:privateAccess LPTCManager2026.main()", Context.currentPos());
|
||||||
|
}
|
||||||
|
else if (type.constructor != null)
|
||||||
|
{
|
||||||
|
return macro
|
||||||
|
{
|
||||||
|
var current = stage.getChildAt (0);
|
||||||
|
|
||||||
|
if (current == null || !(current is openfl.display.DisplayObjectContainer))
|
||||||
|
{
|
||||||
|
current = new openfl.display.MovieClip();
|
||||||
|
stage.addChild(current);
|
||||||
|
}
|
||||||
|
|
||||||
|
new DocumentClass(cast current);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Context.fatalError("Main class \"LPTCManager2026\" has neither a static main nor a constructor.", Context.currentPos());
|
||||||
|
}
|
||||||
|
|
||||||
|
default:
|
||||||
|
|
||||||
|
Context.fatalError("Main class \"LPTCManager2026\" isn't a class.", Context.currentPos());
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
macro public static function getPreloader()
|
||||||
|
{
|
||||||
|
|
||||||
|
return macro
|
||||||
|
{
|
||||||
|
new openfl.display.Preloader(new openfl.display.Preloader.DefaultPreloader());
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#if !macro
|
||||||
|
@:noCompletion @:dox(hide) public static function __init__()
|
||||||
|
{
|
||||||
|
var init = lime.app.Application;
|
||||||
|
|
||||||
|
#if neko
|
||||||
|
// Copy from https://github.com/HaxeFoundation/haxe/blob/development/std/neko/_std/Sys.hx#L164
|
||||||
|
// since Sys.programPath () isn't available in __init__
|
||||||
|
var sys_program_path = {
|
||||||
|
var m = neko.vm.Module.local().name;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
sys.FileSystem.fullPath(m);
|
||||||
|
}
|
||||||
|
catch (e:Dynamic)
|
||||||
|
{
|
||||||
|
// maybe the neko module name was supplied without .n extension...
|
||||||
|
if (!StringTools.endsWith(m, ".n"))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
sys.FileSystem.fullPath(m + ".n");
|
||||||
|
}
|
||||||
|
catch (e:Dynamic)
|
||||||
|
{
|
||||||
|
m;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var loader = new neko.vm.Loader(untyped $loader);
|
||||||
|
loader.addPath(haxe.io.Path.directory(#if (haxe_ver >= 3.3) sys_program_path #else Sys.executablePath() #end));
|
||||||
|
loader.addPath("./");
|
||||||
|
loader.addPath("@executable_path/");
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
|
||||||
|
#if !macro
|
||||||
|
@:build(DocumentClass.build())
|
||||||
|
@:keep @:dox(hide) class DocumentClass extends LPTCManager2026 {}
|
||||||
|
#else
|
||||||
|
class DocumentClass
|
||||||
|
{
|
||||||
|
macro public static function build():Array<Field>
|
||||||
|
{
|
||||||
|
var classType = Context.getLocalClass().get();
|
||||||
|
var searchTypes = classType;
|
||||||
|
|
||||||
|
while (searchTypes != null)
|
||||||
|
{
|
||||||
|
if (searchTypes.module == "openfl.display.DisplayObject" || searchTypes.module == "flash.display.DisplayObject")
|
||||||
|
{
|
||||||
|
var fields = Context.getBuildFields();
|
||||||
|
|
||||||
|
var method = macro
|
||||||
|
{
|
||||||
|
current.addChild(this);
|
||||||
|
super();
|
||||||
|
dispatchEvent(new openfl.events.Event(openfl.events.Event.ADDED_TO_STAGE, false, false));
|
||||||
|
}
|
||||||
|
|
||||||
|
fields.push({ name: "new", access: [ APublic ], kind: FFun({ args: [ { name: "current", opt: false, type: macro :openfl.display.DisplayObjectContainer, value: null } ], expr: method, params: [], ret: macro :Void }), pos: Context.currentPos() });
|
||||||
|
|
||||||
|
return fields;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (searchTypes.superClass != null)
|
||||||
|
{
|
||||||
|
searchTypes = searchTypes.superClass.t.get();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
searchTypes = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#end
|
||||||
@@ -0,0 +1,112 @@
|
|||||||
|
package;
|
||||||
|
|
||||||
|
import haxe.io.Bytes;
|
||||||
|
import haxe.io.Path;
|
||||||
|
import lime.utils.AssetBundle;
|
||||||
|
import lime.utils.AssetLibrary;
|
||||||
|
import lime.utils.AssetManifest;
|
||||||
|
import lime.utils.Assets;
|
||||||
|
|
||||||
|
#if sys
|
||||||
|
import sys.FileSystem;
|
||||||
|
#end
|
||||||
|
|
||||||
|
#if disable_preloader_assets
|
||||||
|
@:dox(hide) class ManifestResources {
|
||||||
|
public static var preloadLibraries:Array<Dynamic>;
|
||||||
|
public static var preloadLibraryNames:Array<String>;
|
||||||
|
public static var rootPath:String;
|
||||||
|
|
||||||
|
public static function init (config:Dynamic):Void {
|
||||||
|
preloadLibraries = new Array ();
|
||||||
|
preloadLibraryNames = new Array ();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
@:access(lime.utils.Assets)
|
||||||
|
|
||||||
|
|
||||||
|
@:keep @:dox(hide) class ManifestResources {
|
||||||
|
|
||||||
|
|
||||||
|
public static var preloadLibraries:Array<AssetLibrary>;
|
||||||
|
public static var preloadLibraryNames:Array<String>;
|
||||||
|
public static var rootPath:String;
|
||||||
|
|
||||||
|
|
||||||
|
public static function init (config:Dynamic):Void {
|
||||||
|
|
||||||
|
preloadLibraries = new Array ();
|
||||||
|
preloadLibraryNames = new Array ();
|
||||||
|
|
||||||
|
rootPath = null;
|
||||||
|
|
||||||
|
if (config != null && Reflect.hasField (config, "rootPath")) {
|
||||||
|
|
||||||
|
rootPath = Reflect.field (config, "rootPath");
|
||||||
|
|
||||||
|
if(!StringTools.endsWith (rootPath, "/")) {
|
||||||
|
|
||||||
|
rootPath += "/";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (rootPath == null) {
|
||||||
|
|
||||||
|
#if (ios || tvos || webassembly)
|
||||||
|
rootPath = "assets/";
|
||||||
|
#elseif android
|
||||||
|
rootPath = "";
|
||||||
|
#elseif (console || sys)
|
||||||
|
rootPath = lime.system.System.applicationDirectory;
|
||||||
|
#else
|
||||||
|
rootPath = "./";
|
||||||
|
#end
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#if (openfl && !flash && !display)
|
||||||
|
|
||||||
|
#end
|
||||||
|
|
||||||
|
var data, manifest, library, bundle;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#if !display
|
||||||
|
#if flash
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#elseif (desktop || cpp)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#end
|
||||||
|
|
||||||
|
#if (openfl && !flash)
|
||||||
|
|
||||||
|
#if html5
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#end
|
||||||
|
|
||||||
|
#end
|
||||||
|
#end
|
||||||
|
|
||||||
|
#end
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
-main ApplicationMain
|
||||||
|
--macro lime._internal.macros.DefineMacro.run()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/lime/8,2,3/src
|
||||||
|
-D lime=8.2.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-cairngorm/1,0,0/src
|
||||||
|
-D feathersui-cairngorm=1.0.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui/1,3,0/src
|
||||||
|
-D feathersui=1.3.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/actuate/1,9,0/src
|
||||||
|
-D actuate=1.9.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/hxargs/4,0,0
|
||||||
|
-D hxargs=4.0.0
|
||||||
|
--macro openfl.utils._internal.ExtraParamsMacro.include()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/openfl/9,4,2/src
|
||||||
|
-D openfl=9.4.2
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-rpc-services/1,0,3/src
|
||||||
|
-D feathersui-rpc-services=1.0.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/amfio/1,0,2/src
|
||||||
|
-D amfio=1.0.2
|
||||||
|
-cp src
|
||||||
|
-D AIR_SDK=/Users/chatmurai/Documents/code/AS3/SDKs/AIR_SDK_32.0
|
||||||
|
-D lime-threads
|
||||||
|
-D tools=8.2.3
|
||||||
|
-D lime-canvas
|
||||||
|
-D howlerjs
|
||||||
|
-D no-compilation
|
||||||
|
-D openfl-html5
|
||||||
|
-D disable_preloader_assets=1
|
||||||
|
-D lime-webgl
|
||||||
|
-D lime-dom
|
||||||
|
-D lime-howlerjs
|
||||||
|
-D lime-html5
|
||||||
|
-D html5
|
||||||
|
-D web
|
||||||
|
--remap flash:openfl
|
||||||
|
-js bin/html5/bin/LPTCManager2026.js
|
||||||
|
-cp bin/html5/haxe
|
||||||
|
-D html5
|
||||||
|
-debug
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
-main ApplicationMain
|
||||||
|
--macro lime._internal.macros.DefineMacro.run()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/lime/8,2,3/src
|
||||||
|
-D lime=8.2.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-cairngorm/1,0,0/src
|
||||||
|
-D feathersui-cairngorm=1.0.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui/1,3,0/src
|
||||||
|
-D feathersui=1.3.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/actuate/1,9,0/src
|
||||||
|
-D actuate=1.9.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/hxargs/4,0,0
|
||||||
|
-D hxargs=4.0.0
|
||||||
|
--macro openfl.utils._internal.ExtraParamsMacro.include()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/openfl/9,4,2/src
|
||||||
|
-D openfl=9.4.2
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-rpc-services/1,0,3/src
|
||||||
|
-D feathersui-rpc-services=1.0.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/amfio/1,0,2/src
|
||||||
|
-D amfio=1.0.2
|
||||||
|
-cp src
|
||||||
|
-D AIR_SDK=/Users/chatmurai/Documents/code/AS3/SDKs/AIR_SDK_32.0
|
||||||
|
-D lime-threads
|
||||||
|
-D tools=8.2.3
|
||||||
|
-D lime-canvas
|
||||||
|
-D howlerjs
|
||||||
|
-D no-compilation
|
||||||
|
-D openfl-html5
|
||||||
|
-D disable_preloader_assets=1
|
||||||
|
-D lime-webgl
|
||||||
|
-D lime-dom
|
||||||
|
-D lime-howlerjs
|
||||||
|
-D lime-html5
|
||||||
|
-D html5
|
||||||
|
-D web
|
||||||
|
--remap flash:openfl
|
||||||
|
-js bin/html5/bin/LPTCManager2026.js
|
||||||
|
-cp bin/html5/haxe
|
||||||
|
-D html5
|
||||||
|
-dce full
|
||||||
|
-D final
|
||||||
|
-D js-flatten
|
||||||
|
-dce full
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
-main ApplicationMain
|
||||||
|
--macro lime._internal.macros.DefineMacro.run()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/lime/8,2,3/src
|
||||||
|
-D lime=8.2.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-cairngorm/1,0,0/src
|
||||||
|
-D feathersui-cairngorm=1.0.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui/1,3,0/src
|
||||||
|
-D feathersui=1.3.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/actuate/1,9,0/src
|
||||||
|
-D actuate=1.9.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/hxargs/4,0,0
|
||||||
|
-D hxargs=4.0.0
|
||||||
|
--macro openfl.utils._internal.ExtraParamsMacro.include()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/openfl/9,4,2/src
|
||||||
|
-D openfl=9.4.2
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-rpc-services/1,0,3/src
|
||||||
|
-D feathersui-rpc-services=1.0.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/amfio/1,0,2/src
|
||||||
|
-D amfio=1.0.2
|
||||||
|
-cp src
|
||||||
|
-D AIR_SDK=/Users/chatmurai/Documents/code/AS3/SDKs/AIR_SDK_32.0
|
||||||
|
-D lime-threads
|
||||||
|
-D tools=8.2.3
|
||||||
|
-D lime-canvas
|
||||||
|
-D howlerjs
|
||||||
|
-D no-compilation
|
||||||
|
-D openfl-html5
|
||||||
|
-D disable_preloader_assets=1
|
||||||
|
-D lime-webgl
|
||||||
|
-D lime-dom
|
||||||
|
-D lime-howlerjs
|
||||||
|
-D lime-html5
|
||||||
|
-D html5
|
||||||
|
-D web
|
||||||
|
--remap flash:openfl
|
||||||
|
-js bin/html5/bin/LPTCManager2026.js
|
||||||
|
-cp bin/html5/haxe
|
||||||
|
-D html5
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>com.apple.security.app-sandbox</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>English</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>LPTCManager2026</string>
|
||||||
|
<key>CFBundleIconFile</key>
|
||||||
|
<string>icon.icns</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.nekotoro.LPTCManager2026</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>LPTCManager2026</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0.0</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>haxe</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>2</string>
|
||||||
|
<key>NSAppleScriptEnabled</key>
|
||||||
|
<string>NO</string>
|
||||||
|
<key>LSApplicationCategoryType</key>
|
||||||
|
<string>public.app-category.games</string>
|
||||||
|
<key>NSHighResolutionCapable</key>
|
||||||
|
<string>True</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>com.apple.security.app-sandbox</key>
|
||||||
|
<true/>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
|
<plist version="1.0">
|
||||||
|
<dict>
|
||||||
|
<key>CFBundleDevelopmentRegion</key>
|
||||||
|
<string>English</string>
|
||||||
|
<key>CFBundleExecutable</key>
|
||||||
|
<string>MyApplication</string>
|
||||||
|
<key>CFBundleIconFile</key>
|
||||||
|
<string>icon.icns</string>
|
||||||
|
<key>CFBundleIdentifier</key>
|
||||||
|
<string>com.nekotoro.LPTCManager2026</string>
|
||||||
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
|
<string>6.0</string>
|
||||||
|
<key>CFBundleName</key>
|
||||||
|
<string>LPTCManager2026</string>
|
||||||
|
<key>CFBundlePackageType</key>
|
||||||
|
<string>APPL</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>1.0.0</string>
|
||||||
|
<key>CFBundleSignature</key>
|
||||||
|
<string>haxe</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>2</string>
|
||||||
|
<key>NSAppleScriptEnabled</key>
|
||||||
|
<string>NO</string>
|
||||||
|
<key>LSApplicationCategoryType</key>
|
||||||
|
<string>public.app-category.games</string>
|
||||||
|
<key>NSHighResolutionCapable</key>
|
||||||
|
<string>True</string>
|
||||||
|
</dict>
|
||||||
|
</plist>
|
||||||
Binary file not shown.
@@ -0,0 +1,330 @@
|
|||||||
|
package;
|
||||||
|
|
||||||
|
#if macro
|
||||||
|
import haxe.macro.Compiler;
|
||||||
|
import haxe.macro.Context;
|
||||||
|
import haxe.macro.Expr;
|
||||||
|
#end
|
||||||
|
|
||||||
|
@:access(lime.app.Application)
|
||||||
|
@:access(lime.system.System)
|
||||||
|
@:access(openfl.display.Stage)
|
||||||
|
@:access(openfl.events.UncaughtErrorEvents)
|
||||||
|
@:dox(hide)
|
||||||
|
class ApplicationMain
|
||||||
|
{
|
||||||
|
#if !macro
|
||||||
|
public static function main()
|
||||||
|
{
|
||||||
|
lime.system.System.__registerEntryPoint("LPTCManager2026", create);
|
||||||
|
|
||||||
|
#if (js && html5)
|
||||||
|
#if (munit || (utest && openfl_enable_utest_legacy_mode))
|
||||||
|
lime.system.System.embed("LPTCManager2026", null, 800, 600);
|
||||||
|
#end
|
||||||
|
#else
|
||||||
|
create(null);
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function create(config):Void
|
||||||
|
{
|
||||||
|
var app = new openfl.display.Application();
|
||||||
|
|
||||||
|
#if !disable_preloader_assets
|
||||||
|
ManifestResources.init(config);
|
||||||
|
#end
|
||||||
|
|
||||||
|
app.meta["build"] = "2";
|
||||||
|
app.meta["company"] = "Nekotoro";
|
||||||
|
app.meta["file"] = "LPTCManager2026";
|
||||||
|
app.meta["name"] = "LPTCManager2026";
|
||||||
|
app.meta["packageName"] = "com.nekotoro.LPTCManager2026";
|
||||||
|
app.meta["version"] = "1.0.0";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if !flash
|
||||||
|
|
||||||
|
var attributes:lime.ui.WindowAttributes = {
|
||||||
|
allowHighDPI: true,
|
||||||
|
alwaysOnTop: false,
|
||||||
|
borderless: false,
|
||||||
|
// display: 0,
|
||||||
|
element: null,
|
||||||
|
frameRate: 60,
|
||||||
|
#if !web fullscreen: false, #end
|
||||||
|
height: 600,
|
||||||
|
hidden: #if munit true #else false #end,
|
||||||
|
maximized: false,
|
||||||
|
minimized: false,
|
||||||
|
parameters: {},
|
||||||
|
resizable: true,
|
||||||
|
title: "LPTCManager2026",
|
||||||
|
width: 800,
|
||||||
|
x: null,
|
||||||
|
y: null,
|
||||||
|
};
|
||||||
|
|
||||||
|
attributes.context = {
|
||||||
|
antialiasing: 0,
|
||||||
|
background: 16777215,
|
||||||
|
colorDepth: 32,
|
||||||
|
depth: true,
|
||||||
|
hardware: true,
|
||||||
|
stencil: true,
|
||||||
|
type: null,
|
||||||
|
vsync: false
|
||||||
|
};
|
||||||
|
|
||||||
|
if (app.window == null)
|
||||||
|
{
|
||||||
|
if (config != null)
|
||||||
|
{
|
||||||
|
for (field in Reflect.fields(config))
|
||||||
|
{
|
||||||
|
if (Reflect.hasField(attributes, field))
|
||||||
|
{
|
||||||
|
Reflect.setField(attributes, field, Reflect.field(config, field));
|
||||||
|
}
|
||||||
|
else if (Reflect.hasField(attributes.context, field))
|
||||||
|
{
|
||||||
|
Reflect.setField(attributes.context, field, Reflect.field(config, field));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#if sys
|
||||||
|
lime.system.System.__parseArguments(attributes);
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
|
||||||
|
app.createWindow(attributes);
|
||||||
|
|
||||||
|
#elseif air
|
||||||
|
app.window.title = "LPTCManager2026";
|
||||||
|
#else
|
||||||
|
app.window.context.attributes.background = 16777215;
|
||||||
|
app.window.frameRate = 60;
|
||||||
|
#end
|
||||||
|
|
||||||
|
var preloader = getPreloader();
|
||||||
|
app.preloader.onProgress.add (function(loaded, total)
|
||||||
|
{
|
||||||
|
@:privateAccess preloader.update(loaded, total);
|
||||||
|
});
|
||||||
|
app.preloader.onComplete.add(function()
|
||||||
|
{
|
||||||
|
@:privateAccess preloader.start();
|
||||||
|
});
|
||||||
|
|
||||||
|
preloader.onComplete.add(start.bind((cast app.window:openfl.display.Window).stage));
|
||||||
|
|
||||||
|
#if !disable_preloader_assets
|
||||||
|
for (library in ManifestResources.preloadLibraries)
|
||||||
|
{
|
||||||
|
app.preloader.addLibrary(library);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (name in ManifestResources.preloadLibraryNames)
|
||||||
|
{
|
||||||
|
app.preloader.addLibraryName(name);
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
|
||||||
|
app.preloader.load();
|
||||||
|
|
||||||
|
var result = app.exec();
|
||||||
|
|
||||||
|
#if (sys && !ios && !nodejs && !emscripten)
|
||||||
|
lime.system.System.exit(result);
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
|
||||||
|
public static function start(stage:openfl.display.Stage):Void
|
||||||
|
{
|
||||||
|
#if flash
|
||||||
|
ApplicationMain.getEntryPoint();
|
||||||
|
#else
|
||||||
|
if (stage.__uncaughtErrorEvents.__enabled)
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ApplicationMain.getEntryPoint();
|
||||||
|
|
||||||
|
stage.dispatchEvent(new openfl.events.Event(openfl.events.Event.RESIZE, false, false));
|
||||||
|
|
||||||
|
if (stage.window.fullscreen)
|
||||||
|
{
|
||||||
|
stage.dispatchEvent(new openfl.events.FullScreenEvent(openfl.events.FullScreenEvent.FULL_SCREEN, false, false, true, true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (e:Dynamic)
|
||||||
|
{
|
||||||
|
#if !display
|
||||||
|
stage.__handleError(e);
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ApplicationMain.getEntryPoint();
|
||||||
|
|
||||||
|
stage.dispatchEvent(new openfl.events.Event(openfl.events.Event.RESIZE, false, false));
|
||||||
|
|
||||||
|
if (stage.window.fullscreen)
|
||||||
|
{
|
||||||
|
stage.dispatchEvent(new openfl.events.FullScreenEvent(openfl.events.FullScreenEvent.FULL_SCREEN, false, false, true, true));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
|
||||||
|
macro public static function getEntryPoint()
|
||||||
|
{
|
||||||
|
var hasMain = false;
|
||||||
|
|
||||||
|
switch (Context.follow(Context.getType("LPTCManager2026")))
|
||||||
|
{
|
||||||
|
case TInst(t, params):
|
||||||
|
|
||||||
|
var type = t.get();
|
||||||
|
for (method in type.statics.get())
|
||||||
|
{
|
||||||
|
if (method.name == "main")
|
||||||
|
{
|
||||||
|
hasMain = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (hasMain)
|
||||||
|
{
|
||||||
|
return Context.parse("@:privateAccess LPTCManager2026.main()", Context.currentPos());
|
||||||
|
}
|
||||||
|
else if (type.constructor != null)
|
||||||
|
{
|
||||||
|
return macro
|
||||||
|
{
|
||||||
|
var current = stage.getChildAt (0);
|
||||||
|
|
||||||
|
if (current == null || !(current is openfl.display.DisplayObjectContainer))
|
||||||
|
{
|
||||||
|
current = new openfl.display.MovieClip();
|
||||||
|
stage.addChild(current);
|
||||||
|
}
|
||||||
|
|
||||||
|
new DocumentClass(cast current);
|
||||||
|
};
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Context.fatalError("Main class \"LPTCManager2026\" has neither a static main nor a constructor.", Context.currentPos());
|
||||||
|
}
|
||||||
|
|
||||||
|
default:
|
||||||
|
|
||||||
|
Context.fatalError("Main class \"LPTCManager2026\" isn't a class.", Context.currentPos());
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
macro public static function getPreloader()
|
||||||
|
{
|
||||||
|
|
||||||
|
return macro
|
||||||
|
{
|
||||||
|
new openfl.display.Preloader(new openfl.display.Preloader.DefaultPreloader());
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#if !macro
|
||||||
|
@:noCompletion @:dox(hide) public static function __init__()
|
||||||
|
{
|
||||||
|
var init = lime.app.Application;
|
||||||
|
|
||||||
|
#if neko
|
||||||
|
// Copy from https://github.com/HaxeFoundation/haxe/blob/development/std/neko/_std/Sys.hx#L164
|
||||||
|
// since Sys.programPath () isn't available in __init__
|
||||||
|
var sys_program_path = {
|
||||||
|
var m = neko.vm.Module.local().name;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
sys.FileSystem.fullPath(m);
|
||||||
|
}
|
||||||
|
catch (e:Dynamic)
|
||||||
|
{
|
||||||
|
// maybe the neko module name was supplied without .n extension...
|
||||||
|
if (!StringTools.endsWith(m, ".n"))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
sys.FileSystem.fullPath(m + ".n");
|
||||||
|
}
|
||||||
|
catch (e:Dynamic)
|
||||||
|
{
|
||||||
|
m;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
var loader = new neko.vm.Loader(untyped $loader);
|
||||||
|
loader.addPath(haxe.io.Path.directory(#if (haxe_ver >= 3.3) sys_program_path #else Sys.executablePath() #end));
|
||||||
|
loader.addPath("./");
|
||||||
|
loader.addPath("@executable_path/");
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
#end
|
||||||
|
}
|
||||||
|
|
||||||
|
#if !macro
|
||||||
|
@:build(DocumentClass.build())
|
||||||
|
@:keep @:dox(hide) class DocumentClass extends LPTCManager2026 {}
|
||||||
|
#else
|
||||||
|
class DocumentClass
|
||||||
|
{
|
||||||
|
macro public static function build():Array<Field>
|
||||||
|
{
|
||||||
|
var classType = Context.getLocalClass().get();
|
||||||
|
var searchTypes = classType;
|
||||||
|
|
||||||
|
while (searchTypes != null)
|
||||||
|
{
|
||||||
|
if (searchTypes.module == "openfl.display.DisplayObject" || searchTypes.module == "flash.display.DisplayObject")
|
||||||
|
{
|
||||||
|
var fields = Context.getBuildFields();
|
||||||
|
|
||||||
|
var method = macro
|
||||||
|
{
|
||||||
|
current.addChild(this);
|
||||||
|
super();
|
||||||
|
dispatchEvent(new openfl.events.Event(openfl.events.Event.ADDED_TO_STAGE, false, false));
|
||||||
|
}
|
||||||
|
|
||||||
|
fields.push({ name: "new", access: [ APublic ], kind: FFun({ args: [ { name: "current", opt: false, type: macro :openfl.display.DisplayObjectContainer, value: null } ], expr: method, params: [], ret: macro :Void }), pos: Context.currentPos() });
|
||||||
|
|
||||||
|
return fields;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (searchTypes.superClass != null)
|
||||||
|
{
|
||||||
|
searchTypes = searchTypes.superClass.t.get();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
searchTypes = null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#end
|
||||||
@@ -0,0 +1,112 @@
|
|||||||
|
package;
|
||||||
|
|
||||||
|
import haxe.io.Bytes;
|
||||||
|
import haxe.io.Path;
|
||||||
|
import lime.utils.AssetBundle;
|
||||||
|
import lime.utils.AssetLibrary;
|
||||||
|
import lime.utils.AssetManifest;
|
||||||
|
import lime.utils.Assets;
|
||||||
|
|
||||||
|
#if sys
|
||||||
|
import sys.FileSystem;
|
||||||
|
#end
|
||||||
|
|
||||||
|
#if disable_preloader_assets
|
||||||
|
@:dox(hide) class ManifestResources {
|
||||||
|
public static var preloadLibraries:Array<Dynamic>;
|
||||||
|
public static var preloadLibraryNames:Array<String>;
|
||||||
|
public static var rootPath:String;
|
||||||
|
|
||||||
|
public static function init (config:Dynamic):Void {
|
||||||
|
preloadLibraries = new Array ();
|
||||||
|
preloadLibraryNames = new Array ();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
@:access(lime.utils.Assets)
|
||||||
|
|
||||||
|
|
||||||
|
@:keep @:dox(hide) class ManifestResources {
|
||||||
|
|
||||||
|
|
||||||
|
public static var preloadLibraries:Array<AssetLibrary>;
|
||||||
|
public static var preloadLibraryNames:Array<String>;
|
||||||
|
public static var rootPath:String;
|
||||||
|
|
||||||
|
|
||||||
|
public static function init (config:Dynamic):Void {
|
||||||
|
|
||||||
|
preloadLibraries = new Array ();
|
||||||
|
preloadLibraryNames = new Array ();
|
||||||
|
|
||||||
|
rootPath = null;
|
||||||
|
|
||||||
|
if (config != null && Reflect.hasField (config, "rootPath")) {
|
||||||
|
|
||||||
|
rootPath = Reflect.field (config, "rootPath");
|
||||||
|
|
||||||
|
if(!StringTools.endsWith (rootPath, "/")) {
|
||||||
|
|
||||||
|
rootPath += "/";
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if (rootPath == null) {
|
||||||
|
|
||||||
|
#if (ios || tvos || webassembly)
|
||||||
|
rootPath = "assets/";
|
||||||
|
#elseif android
|
||||||
|
rootPath = "";
|
||||||
|
#elseif (console || sys)
|
||||||
|
rootPath = lime.system.System.applicationDirectory;
|
||||||
|
#else
|
||||||
|
rootPath = "./";
|
||||||
|
#end
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#if (openfl && !flash && !display)
|
||||||
|
|
||||||
|
#end
|
||||||
|
|
||||||
|
var data, manifest, library, bundle;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#if !display
|
||||||
|
#if flash
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#elseif (desktop || cpp)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#end
|
||||||
|
|
||||||
|
#if (openfl && !flash)
|
||||||
|
|
||||||
|
#if html5
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#end
|
||||||
|
|
||||||
|
#end
|
||||||
|
#end
|
||||||
|
|
||||||
|
#end
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
-main ApplicationMain
|
||||||
|
--macro lime._internal.macros.DefineMacro.run()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/lime/8,2,3/src
|
||||||
|
-D lime=8.2.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-cairngorm/1,0,0/src
|
||||||
|
-D feathersui-cairngorm=1.0.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui/1,3,0/src
|
||||||
|
-D feathersui=1.3.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/actuate/1,9,0/src
|
||||||
|
-D actuate=1.9.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/hxargs/4,0,0
|
||||||
|
-D hxargs=4.0.0
|
||||||
|
--macro openfl.utils._internal.ExtraParamsMacro.include()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/openfl/9,4,2/src
|
||||||
|
-D openfl=9.4.2
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-rpc-services/1,0,3/src
|
||||||
|
-D feathersui-rpc-services=1.0.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/amfio/1,0,2/src
|
||||||
|
-D amfio=1.0.2
|
||||||
|
-cp src
|
||||||
|
-D AIR_SDK=/Users/chatmurai/Documents/code/AS3/SDKs/AIR_SDK_32.0
|
||||||
|
-D lime-openal
|
||||||
|
-D native
|
||||||
|
-D lime-curl
|
||||||
|
-D openfl-native
|
||||||
|
-D lime-harfbuzz
|
||||||
|
-D lime-threads
|
||||||
|
-D tools=8.2.3
|
||||||
|
-D lime-cairo
|
||||||
|
-D lime-opengl
|
||||||
|
-D no-compilation
|
||||||
|
-D disable_preloader_assets=1
|
||||||
|
-D lime-native
|
||||||
|
-D lime-vorbis
|
||||||
|
-D MACOSX_DEPLOYMENT_TARGET=10.9
|
||||||
|
-D lime-cffi
|
||||||
|
-D mac
|
||||||
|
-D desktop
|
||||||
|
--remap flash:openfl
|
||||||
|
-cp bin/neko/haxe
|
||||||
|
-neko bin/neko/obj/ApplicationMain.n
|
||||||
|
--macro keep("LPTCManager2026")
|
||||||
|
-debug
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
-main ApplicationMain
|
||||||
|
--macro lime._internal.macros.DefineMacro.run()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/lime/8,2,3/src
|
||||||
|
-D lime=8.2.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-cairngorm/1,0,0/src
|
||||||
|
-D feathersui-cairngorm=1.0.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui/1,3,0/src
|
||||||
|
-D feathersui=1.3.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/actuate/1,9,0/src
|
||||||
|
-D actuate=1.9.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/hxargs/4,0,0
|
||||||
|
-D hxargs=4.0.0
|
||||||
|
--macro openfl.utils._internal.ExtraParamsMacro.include()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/openfl/9,4,2/src
|
||||||
|
-D openfl=9.4.2
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-rpc-services/1,0,3/src
|
||||||
|
-D feathersui-rpc-services=1.0.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/amfio/1,0,2/src
|
||||||
|
-D amfio=1.0.2
|
||||||
|
-cp src
|
||||||
|
-D AIR_SDK=/Users/chatmurai/Documents/code/AS3/SDKs/AIR_SDK_32.0
|
||||||
|
-D lime-openal
|
||||||
|
-D native
|
||||||
|
-D lime-curl
|
||||||
|
-D openfl-native
|
||||||
|
-D lime-harfbuzz
|
||||||
|
-D lime-threads
|
||||||
|
-D tools=8.2.3
|
||||||
|
-D lime-cairo
|
||||||
|
-D lime-opengl
|
||||||
|
-D no-compilation
|
||||||
|
-D disable_preloader_assets=1
|
||||||
|
-D lime-native
|
||||||
|
-D lime-vorbis
|
||||||
|
-D MACOSX_DEPLOYMENT_TARGET=10.9
|
||||||
|
-D lime-cffi
|
||||||
|
-D mac
|
||||||
|
-D desktop
|
||||||
|
--remap flash:openfl
|
||||||
|
-cp bin/neko/haxe
|
||||||
|
-neko bin/neko/obj/ApplicationMain.n
|
||||||
|
--macro keep("LPTCManager2026")
|
||||||
|
-D final
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
-main ApplicationMain
|
||||||
|
--macro lime._internal.macros.DefineMacro.run()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/lime/8,2,3/src
|
||||||
|
-D lime=8.2.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-cairngorm/1,0,0/src
|
||||||
|
-D feathersui-cairngorm=1.0.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui/1,3,0/src
|
||||||
|
-D feathersui=1.3.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/actuate/1,9,0/src
|
||||||
|
-D actuate=1.9.0
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/hxargs/4,0,0
|
||||||
|
-D hxargs=4.0.0
|
||||||
|
--macro openfl.utils._internal.ExtraParamsMacro.include()
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/openfl/9,4,2/src
|
||||||
|
-D openfl=9.4.2
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/feathersui-rpc-services/1,0,3/src
|
||||||
|
-D feathersui-rpc-services=1.0.3
|
||||||
|
-cp /Users/chatmurai/Documents/code/Haxe/lib/amfio/1,0,2/src
|
||||||
|
-D amfio=1.0.2
|
||||||
|
-cp src
|
||||||
|
-D AIR_SDK=/Users/chatmurai/Documents/code/AS3/SDKs/AIR_SDK_32.0
|
||||||
|
-D lime-openal
|
||||||
|
-D native
|
||||||
|
-D lime-curl
|
||||||
|
-D openfl-native
|
||||||
|
-D lime-harfbuzz
|
||||||
|
-D lime-threads
|
||||||
|
-D tools=8.2.3
|
||||||
|
-D lime-cairo
|
||||||
|
-D lime-opengl
|
||||||
|
-D no-compilation
|
||||||
|
-D disable_preloader_assets=1
|
||||||
|
-D lime-native
|
||||||
|
-D lime-vorbis
|
||||||
|
-D MACOSX_DEPLOYMENT_TARGET=10.9
|
||||||
|
-D lime-cffi
|
||||||
|
-D mac
|
||||||
|
-D desktop
|
||||||
|
--remap flash:openfl
|
||||||
|
-cp bin/neko/haxe
|
||||||
|
-neko bin/neko/obj/ApplicationMain.n
|
||||||
|
--macro keep("LPTCManager2026")
|
||||||
Executable
BIN
Binary file not shown.
Binary file not shown.
+9
-3
@@ -1,17 +1,23 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<project>
|
<project>
|
||||||
<meta title="LPTCManager2026" package="com.example.LPTCManager2026" version="1.0.0" company="My Company"/>
|
<meta title="LPTCManager2026" package="com.nekotoro.LPTCManager2026" version="1.0.0" company="Nekotoro"/>
|
||||||
<app main="LPTCManager2026"/>
|
<meta title="lepetittrot.com - manager" if="html5"/>
|
||||||
|
<app main="LPTCManager2026" file="LPTCManager2026"/>
|
||||||
|
|
||||||
<window allow-high-dpi="true"/>
|
<window allow-high-dpi="true"/>
|
||||||
<window fps="60"/>
|
<window fps="60"/>
|
||||||
<window fps="0" if="html5"/>
|
<window fps="0" if="html5"/>
|
||||||
|
<window background="#c8c1bd"
|
||||||
|
width="500"
|
||||||
|
height="800"
|
||||||
|
orientation="portrait" />
|
||||||
|
|
||||||
<source path="src"/>
|
<source path="src"/>
|
||||||
|
|
||||||
<haxelib name="openfl"/>
|
<haxelib name="openfl"/>
|
||||||
<haxelib name="actuate"/>
|
<haxelib name="actuate"/>
|
||||||
<haxelib name="feathersui"/>
|
<haxelib name="feathersui"/>
|
||||||
|
<haxelib name="feathersui-cairngorm"/>
|
||||||
|
|
||||||
<icon path="assets/icons/icon.svg"/>
|
<icon path="assets/icons/icon.svg"/>
|
||||||
</project>
|
</project>
|
||||||
+55
-5
@@ -1,12 +1,62 @@
|
|||||||
|
import components.NekoRectangle;
|
||||||
|
import openfl.display.Shape;
|
||||||
|
import openfl.display.Graphics;
|
||||||
|
import feathers.layout.AnchorLayoutData;
|
||||||
|
import feathers.layout.AnchorLayout;
|
||||||
|
import feathers.controls.LayoutGroup;
|
||||||
|
import openfl.display.Sprite;
|
||||||
|
import feathers.controls.Panel;
|
||||||
|
import feathers.controls.navigators.StackNavigator;
|
||||||
import feathers.controls.Application;
|
import feathers.controls.Application;
|
||||||
import feathers.controls.Label;
|
import feathers.controls.Label;
|
||||||
|
|
||||||
class LPTCManager2026 extends Application {
|
class LPTCManager2026 extends Application {
|
||||||
|
private var mainPanel:Panel;
|
||||||
|
|
||||||
|
// private var nav:StackNavigator;
|
||||||
|
|
||||||
public function new() {
|
public function new() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
var label = new Label();
|
|
||||||
label.text = "Hello World";
|
|
||||||
addChild(label);
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
override private function initialize():Void {
|
||||||
|
super.initialize();
|
||||||
|
|
||||||
|
stage.displayState = NORMAL;
|
||||||
|
stage.scaleMode = NO_SCALE;
|
||||||
|
|
||||||
|
mainPanel = new Panel();
|
||||||
|
mainPanel.autoSizeMode = STAGE;
|
||||||
|
mainPanel.backgroundSkin = new NekoRectangle(0x93E9CB);
|
||||||
|
|
||||||
|
var header = new LayoutGroup();
|
||||||
|
header.variant = LayoutGroup.VARIANT_TOOL_BAR;
|
||||||
|
header.layout = new AnchorLayout();
|
||||||
|
|
||||||
|
var title = new Label();
|
||||||
|
title.text = "Header";
|
||||||
|
title.variant = Label.VARIANT_HEADING;
|
||||||
|
title.layoutData = AnchorLayoutData.center();
|
||||||
|
header.addChild(title);
|
||||||
|
|
||||||
|
mainPanel.header = header;
|
||||||
|
|
||||||
|
var footer = new LayoutGroup();
|
||||||
|
footer.variant = LayoutGroup.VARIANT_TOOL_BAR;
|
||||||
|
footer.layout = new AnchorLayout();
|
||||||
|
|
||||||
|
var title = new Label();
|
||||||
|
title.text = "Footer";
|
||||||
|
title.variant = Label.VARIANT_HEADING;
|
||||||
|
title.layoutData = AnchorLayoutData.center();
|
||||||
|
footer.addChild(title);
|
||||||
|
|
||||||
|
mainPanel.footer = footer;
|
||||||
|
|
||||||
|
addChild(mainPanel);
|
||||||
|
|
||||||
|
// nav = new StackNavigator();
|
||||||
|
|
||||||
|
trace(this, "--> initialize()");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package components;
|
||||||
|
|
||||||
|
import openfl.display.Shape;
|
||||||
|
|
||||||
|
class NekoRectangle extends Shape {
|
||||||
|
public function new(pColor:Int = 0xFF0000, pX:Int = 0, pY:Int = 0, pWidth:Int = 100, pHeight:Int = 100) {
|
||||||
|
super();
|
||||||
|
|
||||||
|
graphics.beginFill(pColor);
|
||||||
|
graphics.drawRect(pX, pY, pWidth, pHeight);
|
||||||
|
graphics.endFill();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
package view;
|
||||||
|
|
||||||
|
import feathers.controls.ScrollContainer;
|
||||||
|
|
||||||
|
class UserLogin extends ScrollContainer {
|
||||||
|
public function new() {
|
||||||
|
super();
|
||||||
|
}
|
||||||
|
|
||||||
|
override private function initialize():Void {
|
||||||
|
super.initialize();
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user