diff --git a/src/ui/ui_mod_menu.cpp b/src/ui/ui_mod_menu.cpp index 31e5d5a..c815305 100644 --- a/src/ui/ui_mod_menu.cpp +++ b/src/ui/ui_mod_menu.cpp @@ -11,7 +11,7 @@ namespace recompui { -ModEntry::ModEntry(Element *parent, const recomp::mods::ModDetails &details, uint32_t mod_index, ModMenu *mod_menu) : Element(parent, Events(EventType::Click, EventType::Hover, EventType::Focus)) { +ModEntry::ModEntry(Element *parent, uint32_t mod_index, ModMenu *mod_menu) : Element(parent, Events(EventType::Click, EventType::Hover, EventType::Focus, EventType::Drag)) { assert(mod_menu != nullptr); this->mod_index = mod_index; @@ -29,6 +29,7 @@ ModEntry::ModEntry(Element *parent, const recomp::mods::ModDetails &details, uin set_border_color(Color{ 242, 242, 242, 204 }); set_background_color(Color{ 242, 242, 242, 12 }); set_cursor(Cursor::Pointer); + set_drag(Drag::Drag); ContextId context = get_current_context(); @@ -47,7 +48,7 @@ ModEntry::ModEntry(Element *parent, const recomp::mods::ModDetails &details, uin body_container->set_overflow(Overflow::Hidden); { - name_label = context.create_element