[editor] build fix
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
package ru.m.tankz.editor;
|
package ru.m.tankz.editor;
|
||||||
|
|
||||||
import haxework.provider.Provider;
|
|
||||||
import haxework.resources.IResources;
|
import haxework.resources.IResources;
|
||||||
import haxework.resources.Resources;
|
import haxework.resources.Resources;
|
||||||
import haxework.view.frame.FrameSwitcher;
|
import haxework.view.frame.FrameSwitcher;
|
||||||
import haxework.view.popup.PopupManager;
|
import haxework.view.popup.PopupManager;
|
||||||
import haxework.view.Root;
|
import haxework.view.Root;
|
||||||
import haxework.view.theme.ITheme;
|
import haxework.view.theme.ITheme;
|
||||||
|
import ru.m.tankz.bundle.CachedLevelBundle;
|
||||||
|
import ru.m.tankz.bundle.ClientLevelSource;
|
||||||
import ru.m.tankz.bundle.ConfigBundle;
|
import ru.m.tankz.bundle.ConfigBundle;
|
||||||
import ru.m.tankz.bundle.IConfigBundle;
|
import ru.m.tankz.bundle.IConfigBundle;
|
||||||
import ru.m.tankz.bundle.ILevelBundle;
|
import ru.m.tankz.bundle.ILevelBundle;
|
||||||
import ru.m.tankz.bundle.ClientLevelSource;
|
|
||||||
import ru.m.tankz.editor.view.EditorView;
|
import ru.m.tankz.editor.view.EditorView;
|
||||||
import ru.m.tankz.editor.view.PackListFrame;
|
import ru.m.tankz.editor.view.PackListFrame;
|
||||||
|
|
||||||
@@ -22,6 +22,8 @@ class Editor {
|
|||||||
@:provide static var switcher:FrameSwitcher;
|
@:provide static var switcher:FrameSwitcher;
|
||||||
@:provide static var storage:EditorStorage;
|
@:provide static var storage:EditorStorage;
|
||||||
@:provide static var popupManager:PopupManager;
|
@:provide static var popupManager:PopupManager;
|
||||||
|
@:provide static var configBundle:IConfigBundle;
|
||||||
|
@:provide static var levelBundle:ILevelBundle;
|
||||||
|
|
||||||
public static function main() {
|
public static function main() {
|
||||||
L.push(new haxework.log.TraceLogger());
|
L.push(new haxework.log.TraceLogger());
|
||||||
@@ -39,9 +41,8 @@ class Editor {
|
|||||||
resources.text.put("version", '${Const.VERSION}');
|
resources.text.put("version", '${Const.VERSION}');
|
||||||
|
|
||||||
theme = new AppTheme();
|
theme = new AppTheme();
|
||||||
|
configBundle = new ConfigBundle();
|
||||||
Provider.setFactory(IConfigBundle, ConfigBundle);
|
levelBundle = new CachedLevelBundle(new ClientLevelSource());
|
||||||
Provider.setFactory(ILevelBundle, ClientLevelSource);
|
|
||||||
storage = new EditorStorage();
|
storage = new EditorStorage();
|
||||||
popupManager = new PopupManager();
|
popupManager = new PopupManager();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user