Definition
-- @/=[C]:-1
function SetScrollY(...)
Callers
@/lua/ge/extensions/editor/assetBrowser.lua
if var.treeViewScrollPos then
im.SetScrollY(var.treeViewScrollPos)
var.treeViewScrollPos = nil
var.scrollY = var.assetViewMainPanel_scrollPrev
im.SetScrollY(var.assetViewMainPanel_scrollPrev)
-- Mouse wheel has been used
else
im.SetScrollY(var.scrollY)
end
end
im.SetScrollY(mScroll)
end
@/lua/common/extensions/ui/imgui_gen_luaintf.lua
function M.SetScrollX(float_scroll_x) imgui.SetScrollX(float_scroll_x) end
function M.SetScrollY(float_scroll_y) imgui.SetScrollY(float_scroll_y) end
function M.GetScrollMaxX() return imgui.GetScrollMaxX() end
function M.SetScrollX(float_scroll_x) imgui.SetScrollX(float_scroll_x) end
function M.SetScrollY(float_scroll_y) imgui.SetScrollY(float_scroll_y) end
function M.GetScrollMaxX() return imgui.GetScrollMaxX() end
@/lua/ge/extensions/editor/flowgraph/nodelibrary.lua
if self.resetScrollY then
im.SetScrollY(0)
self.resetScrollY = false
if cursor.y > im.GetScrollY() + im.GetWindowHeight() then
im.SetScrollY(math.min(cursor.y - im.GetWindowHeight()/2, im.GetScrollMaxY()))
end
if cursor.y < im.GetScrollY() then
im.SetScrollY(math.max(cursor.y - im.GetWindowHeight()/2, 0))
end
if self.resetScrollY then
im.SetScrollY(0)
self.resetScrollY = false
if self.resetScrollY then
im.SetScrollY(0)
self.resetScrollY = false
if self.resetScrollY then
im.SetScrollY(0)
self.resetScrollY = false
if self.resetScrollY then
im.SetScrollY(0)
self.resetScrollY = false
if self.resetScrollY then
im.SetScrollY(0)
self.resetScrollY = false
if cursor.y > im.GetScrollY() + im.GetWindowHeight() then
im.SetScrollY(math.min(cursor.y - im.GetWindowHeight()/2, im.GetScrollMaxY()))
end
if cursor.y < im.GetScrollY() then
im.SetScrollY(math.max(cursor.y - im.GetWindowHeight()/2, 0))
end
@/lua/ge/extensions/editor/flowgraph/events.lua
if autoScroll then
im.SetScrollY(im.GetScrollMaxY())
end
@/lua/ge/extensions/editor/flowgraph/examples.lua
if cursor.y > im.GetScrollY() + im.GetWindowHeight() then
im.SetScrollY(math.min(cursor.y - im.GetWindowHeight()/2, im.GetScrollMaxY()))
end
if cursor.y < im.GetScrollY() then
im.SetScrollY(math.max(cursor.y - im.GetWindowHeight()/2, 0))
end
@/lua/ge/extensions/editor/flowgraph/search.lua
if cursor.y > im.GetScrollY() + im.GetWindowHeight() then
im.SetScrollY(math.min(cursor.y - im.GetWindowHeight()/2, im.GetScrollMaxY()))
end
if cursor.y < im.GetScrollY() then
im.SetScrollY(math.max(cursor.y - im.GetWindowHeight()/2, 0))
end
@/lua/ge/extensions/editor/createObjectTool.lua
if resetScrollY then
imgui.SetScrollY(0)
resetScrollY = false
@/lua/ge/extensions/editor/sceneTree.lua
if imgui.GetCursorPosY() + entrySize > (imgui.GetScrollY() + imgui.GetWindowHeight()) or imgui.GetCursorPosY() < imgui.GetScrollY() then
imgui.SetScrollY(imgui.GetCursorPosY() - imgui.GetWindowHeight()/2)
end
if imgui.GetCursorPosY() > (imgui.GetScrollY() + imgui.GetWindowHeight()) or imgui.GetCursorPosY() + entrySize < imgui.GetScrollY() then
imgui.SetScrollY((node.listIndex or 1) * entrySize - imgui.GetWindowHeight()/2)
end
if mouseDragEndPos.y < winPos.y then
imgui.SetScrollY(imgui.GetScrollY() - 10)
end
if mouseDragEndPos.y > winPos.y + winSize.y then
imgui.SetScrollY(imgui.GetScrollY() + 10)
end
@/lua/ge/extensions/ui/console.lua
if forceAutoScroll or (scroll2Bot and scrollMaxPrev ~= im.GetScrollMaxY() ) then
im.SetScrollY(im.GetScrollMaxY())
end
-- if forceAutoScroll or (scroll2Bot and scrollMaxPrev ~= im.GetScrollMaxY() ) then
-- im.SetScrollY(im.GetScrollMaxY())
-- end