GD19 Ogre 1.9 File View Commands 200120
@@ -144,6 +144,11 @@ | ||
144 | 144 | |
145 | 145 | if (ImGui::CollapsingHeader("Objects")) |
146 | 146 | { |
147 | + if (ImGui::Button(" Action ")) | |
148 | + { | |
149 | + ImGui::OpenPopup("my_select_popup"); | |
150 | + } | |
151 | + | |
147 | 152 | ImGui::Indent(); |
148 | 153 | int Count = 0; |
149 | 154 | while (Count < Object_Names_Count) |
@@ -178,6 +183,7 @@ | ||
178 | 183 | selected_Areas = -1; |
179 | 184 | selected_Players = -1; |
180 | 185 | Block = 1; |
186 | + | |
181 | 187 | } |
182 | 188 | Count++; |
183 | 189 | } |
@@ -187,6 +193,22 @@ | ||
187 | 193 | Update_Properties_Objects(Selected_Object_Name); |
188 | 194 | } |
189 | 195 | |
196 | + // ------------------------------------------------- PoP Up | |
197 | + if (ImGui::BeginPopup("my_select_popup")) | |
198 | + { | |
199 | + if (ImGui::Selectable("Add")) | |
200 | + { | |
201 | + App->Say("Add"); | |
202 | + } | |
203 | + | |
204 | + if (ImGui::Selectable("Rename")) | |
205 | + { | |
206 | + App->Say("Rename"); | |
207 | + } | |
208 | + | |
209 | + ImGui::EndPopup(); | |
210 | + } | |
211 | + | |
190 | 212 | SelectObject = 0; |
191 | 213 | ImGui::Unindent(); |
192 | 214 | } |
@@ -800,6 +800,7 @@ | ||
800 | 800 | return 1; |
801 | 801 | } |
802 | 802 | } |
803 | + return 1; | |
803 | 804 | } |
804 | 805 | case WM_RBUTTONUP: |
805 | 806 | { |