Alt+Enter MapHUD issue...
by John McGlamory · in RTS Starter Kit · 11/20/2004 (10:40 am) · 2 replies
I spoke to Stephen Zepp about this and he concurs that it isn't just me getting this, so I am no longer hesitant to post. If a solution was posted in the General forum, then please consider this as an entry in the correct forum and don't hate me for beating a dead horse. :)
When you are in Windowed or FullScreen mode and press Alt+Enter to switch to the opposite mode, the MapHUD will be redrawn as white and will not refresh.
If anyone has a fix, please post it here. If not, I will try my best to find out how to fix it, though I am not a programmer and it could take me a lot longer than normal. :) If a solution is in the General forum and I come across it, expect an update with the relevant information/link! :)
When you are in Windowed or FullScreen mode and press Alt+Enter to switch to the opposite mode, the MapHUD will be redrawn as white and will not refresh.
If anyone has a fix, please post it here. If not, I will try my best to find out how to fix it, though I am not a programmer and it could take me a lot longer than normal. :) If a solution is in the General forum and I come across it, expect an update with the relevant information/link! :)
About the author
I am mainly an artist, but I love tinkering with engines like T3D, TGEA, TGE, T2D, Leadwerks and ShiVa. I know enough about scripting and coding to follow good directions.
#2
11/21/2004 (3:48 am)
Well, I've proven to myself at least that MapHud->rebuildMap(); works fine if you schedule it (don't call it directly, let it grab it's own slice of cpu) while working on the integration with Night/Day cycle, so it probably is a matter of tracking down the times when it needs to be scheduled to be rebuilt, and adding them in.if ( (SimObject * guiMapHudObj = Sim::findObject("MapHud")) )
Con::executef(guiMapHudObj, 4, "schedule", "10", "rebuildMap", "true" );(note: I modified the code just a touch from the Celestial.cc "updateSunPosition" method in this resource so it might not be perfect/needs debugging, but should work.
Torque Owner Josh Williams
Default Studio Name
If somebody works on this bug, there are other issues as well.. 1) mini-map is white all the time in DirectX mode. 2) if you alt+tab to a different window while a mission is loading and don't switch back until the mission is playing, the mini-map will render incorrectly, drawing parts of the lobby GUI background instead of the terrain map (at least, on my machine).
Any help appreciated!