use of main.entity.type.ObjType in project Eidolons by IDemiurge.
the class AV_DataManager method save.
public void save(ObjType type) {
Stack<ObjType> stack = stackMap.get(type);
if (stack == null) {
addType(type);
stack = stackMap.get(type);
}
stack.push(new ObjType(type));
}
use of main.entity.type.ObjType in project Eidolons by IDemiurge.
the class AE_Manager method getDoc.
public static Node getDoc(String typeName) {
OBJ_TYPE TYPE = ArcaneVault.getSelectedOBJ_TYPE();
// if (!ArcaneVault.isDialogueMode()) {
// TYPE = DC_TYPE.ABILS;
// } else {
// TYPE = DC_TYPE.DIALOGUE;
// }
ObjType type;
if (ArcaneVault.isMacroMode()) {
type = DataManager.getType(typeName);
// DialogueType diagType = (DialogueType) type;
// return diagType.getDoc();
}
type = DataManager.getType(typeName, TYPE.getName());
XmlDocHolder abilType = (XmlDocHolder) type;
// return XML_Converter.getDoc(abilType.getProperty(G_PROPS.ABILITIES));
return abilType.getDoc();
}
use of main.entity.type.ObjType in project Eidolons by IDemiurge.
the class MusicCore method findList.
public static MusicList findList(String name) {
// String list = new SearchMaster<String>().find(name,
// listTypeMap.keySet());
// if (list == null)
// list = new SearchMaster<String>().findClosest(name,
// listTypeMap.keySet());
ObjType type = DataManager.findType(name, AT_OBJ_TYPE.MUSIC_LIST);
MusicList list = getList(type.getName());
if (list == null) {
list = new MusicList(type);
}
return list;
}
use of main.entity.type.ObjType in project Eidolons by IDemiurge.
the class MusicCore method getFilterView.
public static MusicListPanel getFilterView(String filterVal, PROPERTY filterProp) {
Map<String, List<String>> map = new XLinkedMap<>();
String name = filterProp.getName() + " by " + filterVal;
MusicListPanel panel = new MusicListPanel(name, map);
int maxSize = 0;
int i = 0;
for (String substring : StringMaster.open(filterVal)) {
List<String> list = new ArrayList<>();
for (ObjType type : DataManager.getTypes(AT_OBJ_TYPE.MUSIC_LIST)) {
if (type.checkProperty(filterProp, substring)) {
list.add(type.getProperty(G_PROPS.HOTKEY) + "::" + type.getProperty(AT_PROPS.PATH));
}
}
if (maxSize < list.size()) {
maxSize = list.size();
}
map.put(i + "", list);
i++;
}
List<String> musicConsts = StringMaster.openContainer(filterVal);
int customWrap = 2 + maxSize / 14;
if (customWrap < 0) {
customWrap = 0;
}
G_Panel v = panel.initView(map, false, customWrap, musicConsts);
panel.setView(v);
panel.setName(name);
v.setName(name);
return panel;
}
use of main.entity.type.ObjType in project Eidolons by IDemiurge.
the class MusicCore method getList.
public static MusicList getList(String name, String keyPart, String funcPart) {
MusicList list = listTypeMap.get(name);
if (list != null) {
return list;
}
ObjType type = DataManager.getOrAddType(name, AT_OBJ_TYPE.MUSIC_LIST);
// DataManager.ge
String tracks = getTrackStringFromList(funcPart);
type.setProperty(AT_PROPS.TRACKS, tracks);
type.setProperty(AT_PROPS.PATH, funcPart);
type.setProperty(G_PROPS.HOTKEY, keyPart);
// type, genre?
list = new MusicList(type);
listTypeMap.put(name, list);
return list;
}
Aggregations