mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-16 20:45:53 +00:00
Minor tweaks
This commit is contained in:
parent
b5e66fdc83
commit
6e242bcf12
@ -42,9 +42,10 @@ class SplashScreen : public Specter::ModalWindow
|
|||||||
m_splash.m_fileBrowser.m_view.reset(
|
m_splash.m_fileBrowser.m_view.reset(
|
||||||
new Specter::FileBrowser(m_splash.rootView().viewRes(),
|
new Specter::FileBrowser(m_splash.rootView().viewRes(),
|
||||||
m_splash, m_splash.m_newString,
|
m_splash, m_splash.m_newString,
|
||||||
Specter::FileBrowser::Type::SaveFile,
|
Specter::FileBrowser::Type::SaveDirectory,
|
||||||
[](bool, const HECL::SystemString& path)
|
[](bool ok, const HECL::SystemString& path)
|
||||||
{
|
{
|
||||||
|
if (ok)
|
||||||
Log.report(LogVisor::Info, _S("Making project '%s'"), path.c_str());
|
Log.report(LogVisor::Info, _S("Making project '%s'"), path.c_str());
|
||||||
}));
|
}));
|
||||||
m_splash.updateSize();
|
m_splash.updateSize();
|
||||||
@ -64,8 +65,9 @@ class SplashScreen : public Specter::ModalWindow
|
|||||||
new Specter::FileBrowser(m_splash.rootView().viewRes(),
|
new Specter::FileBrowser(m_splash.rootView().viewRes(),
|
||||||
m_splash, m_splash.m_openString,
|
m_splash, m_splash.m_openString,
|
||||||
Specter::FileBrowser::Type::OpenHECLProject,
|
Specter::FileBrowser::Type::OpenHECLProject,
|
||||||
[](bool, const HECL::SystemString& path)
|
[](bool ok, const HECL::SystemString& path)
|
||||||
{
|
{
|
||||||
|
if (ok)
|
||||||
Log.report(LogVisor::Info, _S("Opening project '%s'"), path.c_str());
|
Log.report(LogVisor::Info, _S("Opening project '%s'"), path.c_str());
|
||||||
}));
|
}));
|
||||||
m_splash.updateSize();
|
m_splash.updateSize();
|
||||||
@ -85,8 +87,9 @@ class SplashScreen : public Specter::ModalWindow
|
|||||||
new Specter::FileBrowser(m_splash.rootView().viewRes(),
|
new Specter::FileBrowser(m_splash.rootView().viewRes(),
|
||||||
m_splash, m_splash.m_extractString,
|
m_splash, m_splash.m_extractString,
|
||||||
Specter::FileBrowser::Type::OpenFile,
|
Specter::FileBrowser::Type::OpenFile,
|
||||||
[](bool, const HECL::SystemString& path)
|
[](bool ok, const HECL::SystemString& path)
|
||||||
{
|
{
|
||||||
|
if (ok)
|
||||||
Log.report(LogVisor::Info, _S("Extracting game '%s'"), path.c_str());
|
Log.report(LogVisor::Info, _S("Extracting game '%s'"), path.c_str());
|
||||||
}));
|
}));
|
||||||
m_splash.updateSize();
|
m_splash.updateSize();
|
||||||
|
@ -45,7 +45,7 @@ public:
|
|||||||
const char* help() const {return "Sets scale factor to 1.0";}
|
const char* help() const {return "Sets scale factor to 1.0";}
|
||||||
void activated(const boo::SWindowCoord& coord)
|
void activated(const boo::SWindowCoord& coord)
|
||||||
{
|
{
|
||||||
m_vm.RequestPixelFactor(1.0);
|
m_vm.requestPixelFactor(1.0);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
SetTo1 m_setTo1;
|
SetTo1 m_setTo1;
|
||||||
@ -59,7 +59,7 @@ public:
|
|||||||
const char* help() const {return "Sets scale factor to 2.0";}
|
const char* help() const {return "Sets scale factor to 2.0";}
|
||||||
void activated(const boo::SWindowCoord& coord)
|
void activated(const boo::SWindowCoord& coord)
|
||||||
{
|
{
|
||||||
m_vm.RequestPixelFactor(2.0);
|
m_vm.requestPixelFactor(2.0);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
SetTo2 m_setTo2;
|
SetTo2 m_setTo2;
|
||||||
@ -72,7 +72,7 @@ public:
|
|||||||
~ViewManager();
|
~ViewManager();
|
||||||
|
|
||||||
Specter::RootView& rootView() const {return *m_rootView;}
|
Specter::RootView& rootView() const {return *m_rootView;}
|
||||||
void RequestPixelFactor(float pf)
|
void requestPixelFactor(float pf)
|
||||||
{
|
{
|
||||||
m_reqPf = pf;
|
m_reqPf = pf;
|
||||||
m_updatePf = true;
|
m_updatePf = true;
|
||||||
|
2
hecl
2
hecl
@ -1 +1 @@
|
|||||||
Subproject commit ad8fe70182557d4e09d91dce0a10870124b83fd3
|
Subproject commit ca39b64201938f45b9a8550f057de09d9824d12c
|
@ -1 +1 @@
|
|||||||
Subproject commit 00cf6c8e7ac037cdf49e048883f0a8e4936d9e8d
|
Subproject commit 7f1ed824a6200a6e6478180c8ea729abc758006b
|
Loading…
x
Reference in New Issue
Block a user