godot-addon-integer_resolution_handler icon indicating copy to clipboard operation
godot-addon-integer_resolution_handler copied to clipboard

Godot 4

Open chucklepie opened this issue 2 years ago • 3 comments

Hello, have you thought about migrating this to Godot 4 given (I don't think) Godot 4 supports integer scaling.

I tried to convert it myself, but the documentation is somewhat lacking and everything has moved between SceneTree, SubViewPort, Viewport, DisplayServer, etc that I got dizzy and gave up.

chucklepie avatar Jan 10 '23 21:01 chucklepie

The main 2 changes were:

  • _root was changed from SubViewport to Window (I'm 90% sure it was a SubViewport earlier)
  • A lot of the functions and constants from SceneTree were moved to Window, meaning they now sit on _root

I've made a bit of progress, but I'm stuck at actually applying the settings the script is overriding

guyguy2001 avatar Jan 13 '23 21:01 guyguy2001

Thanks. I tried but got stuck on the black bar method calls as they don't exist.

You'd have thought they would have added integer scaling by now, given in 4 they've added extra pixel scaling to cameras, etc.

chucklepie avatar Jan 14 '23 11:01 chucklepie

Has anyone had success porting this to Godot 4? I found this but it's a little more cumbersome to use since it requires a very specific (sub)viewport setup.

pencil avatar Apr 13 '23 15:04 pencil