本文整理汇总了Java中com.badlogic.gdx.Files.FileType.External方法的典型用法代码示例。如果您正苦于以下问题:Java FileType.External方法的具体用法?Java FileType.External怎么用?Java FileType.External使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.badlogic.gdx.Files.FileType
的用法示例。
在下文中一共展示了FileType.External方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: build
import com.badlogic.gdx.Files.FileType; //导入方法依赖的package包/类
public void build (Array<FileHandle> favorites, FileHandle file) {
sortingPopupMenu.build();
this.file = file;
clearChildren();
addItem(newDirectory);
addItem(sortBy);
addItem(refresh);
addSeparator();
if (file.type() == FileType.Absolute || file.type() == FileType.External) addItem(delete);
if (file.type() == FileType.Absolute) {
addItem(showInExplorer);
if (file.isDirectory()) {
if (favorites.contains(file, false))
addItem(removeFromFavorites);
else
addItem(addToFavorites);
}
}
}
示例2: file
import com.badlogic.gdx.Files.FileType; //导入方法依赖的package包/类
@Override
public File file () {
if (type == FileType.Internal) return new File(IOSFiles.internalPath, file.getPath());
if (type == FileType.External) return new File(IOSFiles.externalPath, file.getPath());
if (type == FileType.Local) return new File(IOSFiles.localPath, file.getPath());
return file;
}
示例3: file
import com.badlogic.gdx.Files.FileType; //导入方法依赖的package包/类
@Override
public File file() {
if (type == FileType.Internal) return new File(internalPath, file.getPath());
if (type == FileType.External) return new File(externalPath, file.getPath());
if (type == FileType.Local) return new File(localPath, file.getPath());
return file;
}
示例4: file
import com.badlogic.gdx.Files.FileType; //导入方法依赖的package包/类
public File file () {
if (type == FileType.External) return new File(DesktopFileHandle.externalPath, file.getPath());
if (type == FileType.Local) return new File(DesktopFileHandle.localPath, file.getPath());
return file;
}
示例5: file
import com.badlogic.gdx.Files.FileType; //导入方法依赖的package包/类
public File file () {
if (type == FileType.External) return new File(JglfwFiles.externalPath, file.getPath());
if (type == FileType.Local) return new File(JglfwFiles.localPath, file.getPath());
return file;
}
示例6: JglfwPreferences
import com.badlogic.gdx.Files.FileType; //导入方法依赖的package包/类
public JglfwPreferences (String name, String directory) {
this(new JglfwFileHandle(new File(directory, name), FileType.External));
}
示例7: file
import com.badlogic.gdx.Files.FileType; //导入方法依赖的package包/类
/** Returns a java.io.File that represents this file handle. Note the returned file will only be usable for
* {@link FileType#Absolute} and {@link FileType#External} file handles. */
public File file () {
if (type == FileType.External) return new File(Gdx.files.getExternalStoragePath(), file.getPath());
return file;
}
示例8: HeadlessPreferences
import com.badlogic.gdx.Files.FileType; //导入方法依赖的package包/类
public HeadlessPreferences(String name, String directory) {
this(new HeadlessFileHandle(new File(directory, name), FileType.External));
}
示例9: file
import com.badlogic.gdx.Files.FileType; //导入方法依赖的package包/类
public File file () {
if (type == FileType.External) return new File(HeadlessFiles.externalPath, file.getPath());
if (type == FileType.Local) return new File(HeadlessFiles.localPath, file.getPath());
return file;
}
示例10: LwjglPreferences
import com.badlogic.gdx.Files.FileType; //导入方法依赖的package包/类
public LwjglPreferences (String name, String directory) {
this(new LwjglFileHandle(new File(directory, name), FileType.External));
}
示例11: file
import com.badlogic.gdx.Files.FileType; //导入方法依赖的package包/类
public File file () {
if (type == FileType.External) return new File(LwjglFiles.externalPath, file.getPath());
if (type == FileType.Local) return new File(LwjglFiles.localPath, file.getPath());
return file;
}