File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "geode": "v2.0.0",
3- "version": "v1.4 .0",
3+ "version": "v1.5 .0",
44 "gd": "*",
55 "id": "geode.devtools",
66 "name": "DevTools",
Original file line number Diff line number Diff line change @@ -190,6 +190,7 @@ void DevTools::setup() {
190190#ifdef GEODE_IS_MOBILE
191191 ImGui::GetIO().FontGlobalScale = 2.f;
192192 ImGui::GetStyle().ScrollbarSize = 60.f;
193+ // ImGui::GetStyle().TabBarBorderSize = 60.f;
193194#endif
194195}
195196
Original file line number Diff line number Diff line change @@ -217,6 +217,21 @@ void DevTools::drawNodeAttributes(CCNode* node) {
217217 }
218218 }
219219
220+ ImGui::NewLine();
221+ ImGui::Separator();
222+ ImGui::NewLine();
223+
224+ if (auto delegate = typeinfo_cast<CCTouchDelegate*>(node)) {
225+ if (auto handler = CCTouchDispatcher::get()->findHandler(delegate)) {
226+ auto priority = handler->getPriority();
227+
228+ if (ImGui::DragInt("Touch Priority", &priority, .03f)) {
229+ CCTouchDispatcher::get()->setPriority(priority, handler->getDelegate());
230+ }
231+ }
232+ }
233+
234+
220235 ImGui::NewLine();
221236 ImGui::Separator();
222237 ImGui::NewLine();
You can’t perform that action at this time.
0 commit comments