public void AddTabStream(Object form, String title, LuaStream image, LGView ui) { FormPivotItem fpi = new FormPivotItem((LuaForm)form, ui); fpi.Title = title; mTabList.Add(fpi); }
public static Object GetResourceSd(String path, String resName) { LuaStream ls = new LuaStream(); ls.SetStream(Defines.GetResourceSd(path, resName)); return(ls); }
/** * This function gets resource based on defines.lua config * @param path root path to search. * @param resName resource name to search * @return LuaStream of resource */ public static LuaStream GetResource(String path, String resName) { //String scriptsRoot = LuaEngine.getInstance().GetScriptsRoot(); int primaryLoad = LuaEngine.Instance.GetPrimaryLoad(); switch (primaryLoad) { case LuaEngine.EXTERNAL_DATA: { LuaStream ls = new LuaStream(); ls.SetStream(Defines.GetResourceSdAsset(path + "/", resName)); return(ls); } case LuaEngine.INTERNAL_DATA: case LuaEngine.RESOURCE_DATA: { LuaStream ls = new LuaStream(); ls.SetStream(Defines.GetResourceAsset(path + "/", resName)); return(ls); } default: { LuaStream ls = new LuaStream(); ls.SetStream(Defines.GetResourceAsset(path + "/", resName)); return(ls); } } }
public static LuaStream GetResourceAsset(String path, String resName) { LuaStream ls = new LuaStream(); ls.SetStream(Defines.GetResourceAsset(path, resName)); return(ls); }