• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión4cbf1d385ec5be8bcc9b06813af06b6b52e01eba (tree)
Tiempo2012-09-13 21:55:22
Autorangeart <angeart@git....>
Commiterangeart

Log Message

軽量化、ファイル構造の変更
Pキーでスクリーンショット

Cambiar Resumen

Diferencia incremental

--- a/client/3d/Stage.cpp
+++ b/client/3d/Stage.cpp
@@ -13,7 +13,7 @@ Stage::Stage(const tstring& model_name) :
1313 min_height_(map_handle_.property().get<float>("min_height", -200.0))
1414 {
1515 MV1SetScale(map_handle_.handle(), VGet(map_scale_, map_scale_, map_scale_));
16- MV1SetupCollInfo(map_handle_.handle(), -1, 256, 256, 256);
16+ MV1SetupCollInfo(map_handle_.handle(), -1, 128, 64, 128);// 元の数値は256,256,256
1717
1818 auto start_points_array = map_handle_.property().get_child("stage.start_points", ptree());
1919 for (auto it = start_points_array.begin(); it != start_points_array.end(); ++it) {
Binary files a/client/InputManager.cpp and b/client/InputManager.cpp differ
Binary files a/client/InputManager.hpp and b/client/InputManager.hpp differ
Binary files a/client/ResourceManager.cpp and b/client/ResourceManager.cpp differ
--- a/client/scene/MainLoop.cpp
+++ b/client/scene/MainLoop.cpp
@@ -17,7 +17,8 @@ MainLoop::MainLoop(const ManagerAccessorPtr& manager_accessor) :
1717 account_manager_(manager_accessor->account_manager().lock()),
1818 config_manager_(manager_accessor->config_manager().lock()),
1919 inputbox_(manager_accessor_),
20- minimap_(manager_accessor_)
20+ minimap_(manager_accessor_),
21+ snapshot_number_(0)
2122 {
2223 manager_accessor_->set_player_manager(player_manager_);
2324 manager_accessor_->set_command_manager(command_manager_);
@@ -86,10 +87,26 @@ void MainLoop::Draw()
8687 card_manager_->Draw();
8788 inputbox_.Draw();
8889 minimap_.Draw();
90+
91+ InputManager input;
92+
93+ ProcessInput(&input);
8994 }
9095
9196 void MainLoop::End()
9297 {
9398 }
9499
100+void MainLoop::ProcessInput(InputManager *input)
101+{
102+ if(input->GetKeyCount(InputManager::KEYBIND_SCREEN_SHOT) > 0)
103+ {
104+ TCHAR tmp_str[MAX_PATH];
105+ _stprintf( tmp_str , _T(".\\screenshot\\ss%03d.png") , snapshot_number_ );
106+ SaveDrawScreenToPNG( 0, 0, config_manager_->screen_width(), config_manager_->screen_height(),tmp_str);
107+ snapshot_number_++;
108+ }
95109 }
110+
111+}
112+
--- a/client/scene/MainLoop.hpp
+++ b/client/scene/MainLoop.hpp
@@ -31,6 +31,7 @@ class MainLoop : public Base {
3131
3232 private:
3333 std::function<void(const tstring&)> push_message_;
34+ void ProcessInput(InputManager *input);
3435
3536 private:
3637 // アクセサ
@@ -43,6 +44,7 @@ class MainLoop : public Base {
4344 ConfigManagerPtr config_manager_;
4445 MiniMap minimap_;
4546 InputBox inputbox_;
47+ int snapshot_number_;
4648 };
4749
4850 }
--- a/client/version.hpp
+++ b/client/version.hpp
@@ -9,7 +9,7 @@
99
1010 #define MMO_VERSION_MAJOR 0
1111 #define MMO_VERSION_MINOR 3
12-#define MMO_VERSION_REVISION 2
12+#define MMO_VERSION_REVISION 3
1313
1414 #ifdef MMO_VERSION_BUILD
1515 #define MMO_VERSION_BUILD_TEXT " Build " MMO_VERSION_TOSTRING(MMO_VERSION_BUILD)