Hello !
I'm using Nov2011 release.
I got an issue while trying to scale my HUD menu.
I got a menu swf (1024px 576px)
And my ingame HUD swf (1024px 576px)
As you can see they got both the same size.
I launch the menu within a map with kismeth => It fit perfectly to the screen.
However, when I start my regular map, the HUD class create my GFx class containing the ingame HUD swf.
But it doesn't scale correctly : (
I've found/seen those post:
http://forums.epicgames.com/archive/.../t-740442.html
http://forums.epicgames.com/threads/...nd-SetViewport
Saying that it should work, but it doesn't in my case -_-
If anyone got an idea please ^^'
Nothing fancy on unrealScript side : /
My class extending HUD:
My class extending GFx holding the swf file to load:
I'm using Nov2011 release.
I got an issue while trying to scale my HUD menu.
I got a menu swf (1024px 576px)
And my ingame HUD swf (1024px 576px)
As you can see they got both the same size.
I launch the menu within a map with kismeth => It fit perfectly to the screen.
However, when I start my regular map, the HUD class create my GFx class containing the ingame HUD swf.
But it doesn't scale correctly : (
I've found/seen those post:
http://forums.epicgames.com/archive/.../t-740442.html
http://forums.epicgames.com/threads/...nd-SetViewport
Saying that it should work, but it doesn't in my case -_-
If anyone got an idea please ^^'
Nothing fancy on unrealScript side : /
My class extending HUD:
Code:
class MineHUD extends HUD; // Scaleform mouse movie var GFxHUD MouseInterfaceGFx; //Actor hovered var Actor actorHovered; simulated event PostBeginPlay() { Super.PostBeginPlay(); MouseInterfaceGFx = new () class'GFxHUD'; if (MouseInterfaceGFx != None) { MouseInterfaceGFx.MouseInterfaceHUD = Self; MouseInterfaceGFx.SetTimingMode(TM_Game); MouseInterfaceGFx.Init(class'Engine'.static.GetEngine().GamePlayers[MouseInterfaceGFx.LocalPlayerOwnerIndex]); MouseInterfaceGFx.SetViewScaleMode(SM_ExactFit); } } etc
Code:
class GFxHUD extends GFxMoviePlayer; var GFxObject RootMC; var MineHUD MouseInterfaceHUD; function Init(optional LocalPlayer LocalPlayer) { // Initialize the ScaleForm movie Super.Init(LocalPlayer); Start(); Advance(0); SetViewScaleMode(SM_ExactFit); //Does nothing : ( //SetAlignment(Align_BottomRight); RootMC = GetVariableObject("_root"); } etc... DefaultProperties { MovieInfo = SwfMovie'MyProject.InGameHud'' }
Comment