From 7e7755c5391645f0734b860d9fb3774742ddb98a Mon Sep 17 00:00:00 2001 From: Joshua Granick Date: Mon, 16 Jun 2014 14:11:34 -0700 Subject: [PATCH] Use 'create' instead of 'init' for consistency --- lime/app/Preloader.hx | 2 +- lime/system/System.hx | 2 +- templates/haxe/ApplicationMain.hx | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lime/app/Preloader.hx b/lime/app/Preloader.hx index c5f88993a..7c2675e88 100644 --- a/lime/app/Preloader.hx +++ b/lime/app/Preloader.hx @@ -26,7 +26,7 @@ class Preloader #if flash extends Sprite #end { } - public function init (config:Config):Void { + public function create (config:Config):Void { #if flash Lib.current.stage.align = flash.display.StageAlign.TOP_LEFT; diff --git a/lime/system/System.hx b/lime/system/System.hx index 4a4406b71..17dcedde1 100644 --- a/lime/system/System.hx +++ b/lime/system/System.hx @@ -65,7 +65,7 @@ class System { ApplicationMain.config.background = color; ApplicationMain.config.element = element; - ApplicationMain.init (); + ApplicationMain.create (); } #end diff --git a/templates/haxe/ApplicationMain.hx b/templates/haxe/ApplicationMain.hx index 0a2f87cfd..a028a0108 100644 --- a/templates/haxe/ApplicationMain.hx +++ b/templates/haxe/ApplicationMain.hx @@ -10,11 +10,11 @@ class ApplicationMain { private static var app:lime.app.Application; - public static function init ():Void { + public static function create ():Void { preloader = new ::if (PRELOADER_NAME != "")::::PRELOADER_NAME::::else::lime.app.Preloader::end:: (); preloader.onComplete = start; - preloader.init (config); + preloader.create (config); } @@ -41,7 +41,7 @@ class ApplicationMain { #if (js && munit) embed (null, ::WIN_WIDTH::, ::WIN_HEIGHT::, "::WIN_FLASHBACKGROUND::"); #else - init (); + create (); #end }