My first bugfix is about the Resolution in Game and GUI.
The bug was, that there were two Resolutions: GUI and Standard-Resolution.
C4Game.cpp line 299
You have to write instead
The bug was, that there were two Resolutions: GUI and Standard-Resolution.
C4Game.cpp line 299
int32_t iGuiResX = Min<int32_t>(Config.Graphics.GuiResX, Config.Graphics.ResX);
int32_t iGuiResY = Min<int32_t>(Config.Graphics.GuiResY, Config.Graphics.ResY);
You have to write instead
int32_t iGuiResX = Config.Graphics.ResX;
int32_t iGuiResY = Config.Graphics.ResY;
Attachment: C4Game.cpp (131k)
That's not a bug. It's an incomplete feature.
The GUI resolution is supposed to be independent of the selected graphics resolution. This should simplify the design of new InGame-GUI, especially scripted GUI, because you can use fixed sizes for all UI elements.
Anyway, it is disabled in the main branch because fonts aren't rendered properly, there are some clipping errors and high resolution GUI graphics do not exist yet. I wonder how you got there. Did you check out the GUIZoom branch?
The GUI resolution is supposed to be independent of the selected graphics resolution. This should simplify the design of new InGame-GUI, especially scripted GUI, because you can use fixed sizes for all UI elements.
Anyway, it is disabled in the main branch because fonts aren't rendered properly, there are some clipping errors and high resolution GUI graphics do not exist yet. I wonder how you got there. Did you check out the GUIZoom branch?
We threw away the mercurial test repos and started a new one with the clonk.de svn trunk, because the test repos had some secret stuff in it. I applied your disable-gui-zoom patch to the real openclonk repos some days afterwards.
Here a second feature:
Add those two lines into C4Game.cpp line 3136:
These Two lines enable +/- keys for zooming. It makes it easier for noobs to test the zoom feature.
Add those two lines into C4Game.cpp line 3136:
KeyboardInput.RegisterKey(new C4CustomKey(C4KeyCodeEx(VK_OEM_PLUS ), "ZoomIn", KEYSCOPE_Generic, new C4KeyCB <C4GraphicsSystem>(GraphicsSystem, &C4GraphicsSystem::ViewportZoomIn)));
KeyboardInput.RegisterKey(new C4CustomKey(C4KeyCodeEx(VK_OEM_MINUS ), "ZoomOut", KEYSCOPE_Generic, new C4KeyCB <C4GraphicsSystem>(GraphicsSystem, &C4GraphicsSystem::ViewportZoomOut)));
These Two lines enable +/- keys for zooming. It makes it easier for noobs to test the zoom feature.
Attachment: C4Game.cpp (131k)
The +/- keys are already used for recording. I think F5 and F6 are easy enough.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill