mirror of https://github.com/axmolengine/axmol.git
cleanup
This commit is contained in:
parent
d986c974d7
commit
2652a67040
|
@ -31,8 +31,6 @@
|
||||||
#include "ProjectConfig/SimulatorConfig.h"
|
#include "ProjectConfig/SimulatorConfig.h"
|
||||||
#include "AppDelegate.h"
|
#include "AppDelegate.h"
|
||||||
|
|
||||||
void createSimulator(const char* viewName, float width, float height,bool isLandscape = true,float frameZoomFactor = 1.0f);
|
|
||||||
|
|
||||||
@interface AppController : NSObject <NSApplicationDelegate, NSWindowDelegate, NSFileManagerDelegate>
|
@interface AppController : NSObject <NSApplicationDelegate, NSWindowDelegate, NSFileManagerDelegate>
|
||||||
{
|
{
|
||||||
NSWindow *_window;
|
NSWindow *_window;
|
||||||
|
|
|
@ -9,27 +9,6 @@ PLAYER_NS_BEGIN
|
||||||
class PlayerFileDialogServiceMac : public PlayerFileDialogServiceProtocol
|
class PlayerFileDialogServiceMac : public PlayerFileDialogServiceProtocol
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// 选择一个已有的文件,并返回文件的完整路径
|
|
||||||
// 如果用户取消对话框,返回空字符串
|
|
||||||
//
|
|
||||||
// @param title 对话框标题
|
|
||||||
// @param directory 默认打开的目录
|
|
||||||
//
|
|
||||||
// 如果 directory 不为空,则对话框打开时,直接进入 directory 参数指定的目录;
|
|
||||||
// 否则进入进程当前目录(Current Directory)。
|
|
||||||
//
|
|
||||||
// @param extensions 用于限制可以打开的文件类型
|
|
||||||
//
|
|
||||||
// extensions 示例:
|
|
||||||
// extensions = "Lua Script File|*.lua;JSON File|*.json";
|
|
||||||
//
|
|
||||||
// 每一种类型分为“描述”和“扩展名”两部分,用“|”分隔
|
|
||||||
// 扩展名如果有多个,则用“,”分隔
|
|
||||||
// 不同类型用“;”分隔
|
|
||||||
//
|
|
||||||
// 如果 extensions 参数为空,则表示可以选择任何扩展名的文件。
|
|
||||||
//
|
|
||||||
|
|
||||||
virtual std::string openFile(const std::string &title,
|
virtual std::string openFile(const std::string &title,
|
||||||
const std::string &directory,
|
const std::string &directory,
|
||||||
const std::string &extensions) const;
|
const std::string &extensions) const;
|
||||||
|
|
Loading…
Reference in New Issue