MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / y_set

Method y_set

src/openrct2-ui/scripting/ScWindow.cpp:72–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70 return JS_NewInt32(ctx, 0);
71 }
72 JSValue ScWindow::y_set(JSContext* ctx, JSValue thisVal, JSValue value)
73 {
74 JS_UNPACK_INT32(valueInt, ctx, value);
75
76 auto w = GetWindow(thisVal);
77 if (w != nullptr)
78 {
79 WindowSetPosition(*w, { w->windowPos.x, valueInt });
80 }
81 return JS_UNDEFINED;
82 }
83 JSValue ScWindow::width_get(JSContext* ctx, JSValue thisVal)
84 {
85 auto w = GetWindow(thisVal);

Callers

nothing calls this directly

Calls 2

GetWindowFunction · 0.85
WindowSetPositionFunction · 0.85

Tested by

no test coverage detected