Révision | 8eab5d0459b5e22feaa506965ea6d45824535221 (tree) |
---|---|
l'heure | 2012-09-29 10:10:10 |
Auteur | h2so5 <h2so5@git....> |
Commiter | h2so5 |
wigetsをpluginsに変更
Optionのラジオボタンのデザインを少し変更
@@ -101,7 +101,7 @@ void WindowManager::DrawButtons() | ||
101 | 101 | |
102 | 102 | void WindowManager::DrawIcons(const Rect& rect) |
103 | 103 | { |
104 | - int x = 32; | |
104 | + int x = 16; | |
105 | 105 | auto card_manager = manager_accessor_->card_manager().lock(); |
106 | 106 | BOOST_FOREACH(const auto& card, card_manager->cards()) { |
107 | 107 |
@@ -116,32 +116,32 @@ void WindowManager::DrawIcons(const Rect& rect) | ||
116 | 116 | if (ptr->visible()) { |
117 | 117 | SetDrawBlendMode(DX_BLENDMODE_SUB, 40); |
118 | 118 | } |
119 | - DrawGraph(rect.x + x, rect.y + 100 + 4, *image_handle, TRUE); | |
119 | + DrawGraph(rect.x + x, rect.y + 100 + 8, *image_handle, TRUE); | |
120 | 120 | SetDrawBlendMode(DX_BLENDMODE_NOBLEND, 0); |
121 | 121 | |
122 | - x += 64; | |
122 | + x += 40; | |
123 | 123 | } |
124 | 124 | } |
125 | 125 | } |
126 | 126 | |
127 | 127 | void WindowManager::ProcessInputIcons(const Rect& rect, InputManager* input) |
128 | 128 | { |
129 | - int x = 32; | |
129 | + int x = 16; | |
130 | 130 | auto card_manager = manager_accessor_->card_manager().lock(); |
131 | 131 | BOOST_FOREACH(const auto& card, card_manager->cards()) { |
132 | 132 | if (auto ptr = card->GetWindow()) { |
133 | 133 | |
134 | 134 | int icon_x = rect.x + x; |
135 | - int icon_y = rect.y + 100 + 4; | |
135 | + int icon_y = rect.y + 100 + 8; | |
136 | 136 | |
137 | - bool hover = (icon_x <= input->GetMouseX() && input->GetMouseX() <= icon_x + 48 | |
138 | - && icon_y <= input->GetMouseY() && input->GetMouseY() <= icon_y + 48); | |
137 | + bool hover = (icon_x <= input->GetMouseX() && input->GetMouseX() <= icon_x + 32 | |
138 | + && icon_y <= input->GetMouseY() && input->GetMouseY() <= icon_y + 32); | |
139 | 139 | |
140 | 140 | if (hover && input->GetMouseLeftCount() == 1) { |
141 | 141 | ptr->set_visible(!(ptr->visible())); |
142 | 142 | input->CancelMouseLeft(); |
143 | 143 | } |
144 | - x += 64; | |
144 | + x += 40; | |
145 | 145 | } |
146 | 146 | } |
147 | 147 | } |
@@ -5,7 +5,7 @@ | ||
5 | 5 | "name": "レーダー", |
6 | 6 | "icon": "icon.png", |
7 | 7 | "api_version": 1, |
8 | - "native": "rader" | |
8 | + "native": "radar" | |
9 | 9 | } |
10 | 10 | |
11 | 11 | ***MetaData***/ |
\ No newline at end of file |
@@ -74,7 +74,7 @@ void Dashboard::Update() | ||
74 | 74 | bg_alpha_ = std::min(150, bg_alpha_); |
75 | 75 | |
76 | 76 | base_rect_.width = 800; |
77 | - base_rect_.height = 160; | |
77 | + base_rect_.height = 148; | |
78 | 78 | base_rect_.x = (screen_width - base_rect_.width) / 2; |
79 | 79 | |
80 | 80 | if (end_count_ > 0) { |
@@ -34,14 +34,10 @@ MainLoop::MainLoop(const ManagerAccessorPtr& manager_accessor) : | ||
34 | 34 | |
35 | 35 | inputbox_->ReloadTabs(); |
36 | 36 | inputbox_->Activate(); |
37 | - inputbox_->set_icon_image_handle( | |
38 | - ResourceManager::LoadCachedGraph(_T("system/images/gui/gui_icon_input.png"))); | |
39 | 37 | card_manager_->AddNativeCard("inputbox", inputbox_); |
40 | 38 | |
41 | 39 | minimap_->UIPlacement(config_manager_->screen_width() - MINIMAP_MINSIZE - 12, 12); |
42 | - minimap_->set_icon_image_handle( | |
43 | - ResourceManager::LoadCachedGraph(_T("system/images/gui/gui_icon_map.png"))); | |
44 | - card_manager_->AddNativeCard("rader", minimap_); | |
40 | + card_manager_->AddNativeCard("radar", minimap_); | |
45 | 41 | |
46 | 42 | window_manager_->RestorePosition(); |
47 | 43 |
@@ -499,7 +499,7 @@ RadioButtonItem::RadioButtonItem(const tstring& name, | ||
499 | 499 | selecting_index_(0) |
500 | 500 | { |
501 | 501 | selecting_bg_image_handle_ = ResourceManager::LoadCachedDivGraph<3>( |
502 | - _T("system/images/gui/gui_option_selecting_bg.png"), 3, 1, 16, 20); | |
502 | + _T("system/images/gui/gui_option_selecting_bg.png"), 3, 1, 16, 24); | |
503 | 503 | |
504 | 504 | ptree item_array; |
505 | 505 | read_json(std::stringstream(unicode::ToString(items)), item_array); |
@@ -557,13 +557,13 @@ void RadioButtonItem::Draw() | ||
557 | 557 | SetDrawBlendMode(DX_BLENDMODE_SUB, 40); |
558 | 558 | } |
559 | 559 | |
560 | - DrawGraph(left - 8, base_rect_.y - 2, *selecting_bg_image_handle_[0], TRUE); | |
561 | - DrawRectExtendGraphF(left - 8 + 16, base_rect_.y - 2, | |
562 | - right - 16 + 8, base_rect_.y - 2 + 20, | |
563 | - 0, 0, 1, 20, *selecting_bg_image_handle_[2], TRUE); | |
564 | - DrawGraph(right - 16 + 8, base_rect_.y - 2, *selecting_bg_image_handle_[2], TRUE); | |
560 | + DrawGraph(left - 8, base_rect_.y - 4, *selecting_bg_image_handle_[0], TRUE); | |
561 | + DrawRectExtendGraphF(left - 8 + 16, base_rect_.y - 4, | |
562 | + right - 16 + 8, base_rect_.y + 20, | |
563 | + 0, 0, 1, 24, *selecting_bg_image_handle_[2], TRUE); | |
564 | + DrawGraph(right - 16 + 8, base_rect_.y - 4, *selecting_bg_image_handle_[2], TRUE); | |
565 | 565 | |
566 | - SetDrawBlendMode(DX_BLENDMODE_NOBLEND, 0); | |
566 | + SetDrawBlendMode(DX_BLENDMODE_NOBLEND, 4); | |
567 | 567 | |
568 | 568 | DrawStringToHandle(left, base_rect_.y, |
569 | 569 | item.name.c_str(), |