Opened 9 years ago

Closed 9 years ago

#492 closed defect (fixed)

BAR: Chili doesnt handle viewresize

Reported by: beherith Owned by:
Priority: minor Milestone:
Component: Chili Version:
Keywords: Cc:

Description

Only a /luaui reload gets it to resize the UI, namely the minimap and the 'tooltip'

Change History (3)

comment:1 by Jalmari Ikävalko, 9 years ago

Fixed for minimap and the tooltip.

Resizing the window causes quite poor alignment for many of the UI widgets. For example, buildmenu can go under the unit icon or even outside the screen. I suppose eventually screen space will run out and some UI elements will have to overlap, but maybe there could be some scaling applied before that happens, like there's scaling for the minimap.

Anyhow, here are the fixes:

luaui/gui_chili_funks_minimap.lua, add the ViewResize function (I added it before Initialize(), since that's where it is in some other lua files):

function widget:ViewResize(vsx, vsy)
	MakeMinimapWindow()
end

luaui/gui_chili_funks_cursortip.lua, add the ViewResize function (I added it before Initialize(), since that's where it is in some other lua files):

function widget:ViewResize(vsx, vsy)
	screenWidth = vsx
	screenHeight = vsy
end

comment:2 by beherith, 9 years ago

fixed in [1857]

comment:3 by beherith, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.