mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 07:43:01 +01:00
Remove event handlers (#20439)
This commit is contained in:
@@ -286,26 +286,6 @@ WindowBase* WindowCreate(
|
||||
return w;
|
||||
}
|
||||
|
||||
WindowBase* WindowCreate(
|
||||
const ScreenCoordsXY& pos, int32_t width, int32_t height, WindowEventList* event_handlers, WindowClass cls, uint32_t flags)
|
||||
{
|
||||
auto w = std::make_unique<WindowBase>();
|
||||
w->event_handlers = event_handlers;
|
||||
return WindowCreate(std::move(w), cls, pos, width, height, flags);
|
||||
}
|
||||
|
||||
WindowBase* WindowCreateAutoPos(int32_t width, int32_t height, WindowEventList* event_handlers, WindowClass cls, uint32_t flags)
|
||||
{
|
||||
auto pos = GetAutoPositionForNewWindow(width, height);
|
||||
return WindowCreate(pos, width, height, event_handlers, cls, flags);
|
||||
}
|
||||
|
||||
WindowBase* WindowCreateCentred(int32_t width, int32_t height, WindowEventList* event_handlers, WindowClass cls, uint32_t flags)
|
||||
{
|
||||
auto pos = GetCentrePositionForNewWindow(width, height);
|
||||
return WindowCreate(pos, width, height, event_handlers, cls, flags);
|
||||
}
|
||||
|
||||
static int32_t WindowGetWidgetIndex(const WindowBase& w, Widget* widget)
|
||||
{
|
||||
int32_t i = 0;
|
||||
|
||||
Reference in New Issue
Block a user