Revisión | 4cbf1d385ec5be8bcc9b06813af06b6b52e01eba (tree) |
---|---|
Tiempo | 2012-09-13 21:55:22 |
Autor | angeart <angeart@git....> |
Commiter | angeart |
軽量化、ファイル構造の変更
Pキーでスクリーンショット
@@ -13,7 +13,7 @@ Stage::Stage(const tstring& model_name) : | ||
13 | 13 | min_height_(map_handle_.property().get<float>("min_height", -200.0)) |
14 | 14 | { |
15 | 15 | 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 | |
17 | 17 | |
18 | 18 | auto start_points_array = map_handle_.property().get_child("stage.start_points", ptree()); |
19 | 19 | for (auto it = start_points_array.begin(); it != start_points_array.end(); ++it) { |
@@ -17,7 +17,8 @@ MainLoop::MainLoop(const ManagerAccessorPtr& manager_accessor) : | ||
17 | 17 | account_manager_(manager_accessor->account_manager().lock()), |
18 | 18 | config_manager_(manager_accessor->config_manager().lock()), |
19 | 19 | inputbox_(manager_accessor_), |
20 | - minimap_(manager_accessor_) | |
20 | + minimap_(manager_accessor_), | |
21 | + snapshot_number_(0) | |
21 | 22 | { |
22 | 23 | manager_accessor_->set_player_manager(player_manager_); |
23 | 24 | manager_accessor_->set_command_manager(command_manager_); |
@@ -86,10 +87,26 @@ void MainLoop::Draw() | ||
86 | 87 | card_manager_->Draw(); |
87 | 88 | inputbox_.Draw(); |
88 | 89 | minimap_.Draw(); |
90 | + | |
91 | + InputManager input; | |
92 | + | |
93 | + ProcessInput(&input); | |
89 | 94 | } |
90 | 95 | |
91 | 96 | void MainLoop::End() |
92 | 97 | { |
93 | 98 | } |
94 | 99 | |
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 | + } | |
95 | 109 | } |
110 | + | |
111 | +} | |
112 | + |
@@ -31,6 +31,7 @@ class MainLoop : public Base { | ||
31 | 31 | |
32 | 32 | private: |
33 | 33 | std::function<void(const tstring&)> push_message_; |
34 | + void ProcessInput(InputManager *input); | |
34 | 35 | |
35 | 36 | private: |
36 | 37 | // アクセサ |
@@ -43,6 +44,7 @@ class MainLoop : public Base { | ||
43 | 44 | ConfigManagerPtr config_manager_; |
44 | 45 | MiniMap minimap_; |
45 | 46 | InputBox inputbox_; |
47 | + int snapshot_number_; | |
46 | 48 | }; |
47 | 49 | |
48 | 50 | } |
@@ -9,7 +9,7 @@ | ||
9 | 9 | |
10 | 10 | #define MMO_VERSION_MAJOR 0 |
11 | 11 | #define MMO_VERSION_MINOR 3 |
12 | -#define MMO_VERSION_REVISION 2 | |
12 | +#define MMO_VERSION_REVISION 3 | |
13 | 13 | |
14 | 14 | #ifdef MMO_VERSION_BUILD |
15 | 15 | #define MMO_VERSION_BUILD_TEXT " Build " MMO_VERSION_TOSTRING(MMO_VERSION_BUILD) |