The Infinity Blade Forums Have Moved

We've launched brand new Infinity Blade forums with improved features and revamped layout. We've also included a complete archive of the previous posts. Come check out the new Infinity Blade forums.
See more
See less

Problem with GFxMinimap (2DMapTexture) [+HUD flaw :D]

  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with GFxMinimap (2DMapTexture) [+HUD flaw :D]

    I'm trying to make my custom Hud(+minimap)
    main trouble is "Minimap" !

    According to Scaleform tutorials about HUD (Mastering a GFx HUD (Part 1-4) ) ,I made my three classes :
    >GFXHudWrapper [extend HUD] : Handle HUD + Inventory + ...
    >GFxHud [extend GFxMoviePlayer]: Handling and updating HUD's itesm+ Initialing and updating Minimap
    >GFxMinimap [extend GFxObject] : Minimap Logic

    First "GFxHudWrapper.uc" create a "GFxHud" .
    Then "GFxHud.uc" load "Hud.swf" .
    "Hud.swf" load "minimap.swf" internally, at the beginning with action-script :
    var minimapContainer:MovieClip = this.createEmptyMovieClip("minimapContainer", this.getNextHighestDepth());
    minimapContainer._x = 970;
    minimapContainer._y = 8;
    In minimap.swf , I call "registerHUDMinimap" unrealscript function ,to initial "minimap GFxObject" in "GFxHud.uc" :
    Code:"registerHUDMinimap", this);
    "registerHUDMinimap" is a function in GfXHud.uc that Init my Minimap :
    function registerHUDMinimap(GFxMinimap mp )
    	//`log("Initiing MINIMAP !!!!--!!!!! ");
    	Minimap = mp ;
    	Radius = 10; //?
    	CurZoomf = 64;
    	NormalZoomf = 64;
    	Minimap.Init(self); // <---- *
    	Minimap.SetFloat("_xscale", 85);
    	Minimap.SetFloat("_yscale", 85);
    Initialization process for Minimap ...
    var UTMapInfo		MapInfo;
    function Init(GFxHud h)
    if (MapInfo.MapTexture != none)
    		MapTexSize = Texture2D(MapInfo.MapTexture).SizeX;
    		SetString("mapImagePath", "img://" $ PathName(MapInfo.MapTexture));  <---------------- ****
    And the problem ...
    I wonder how minimap 2DTexure is set in above code ?!??!
    I use "" map , that really has a minimap with a map-texture ! But when I play it with my GameCode (not UTGame) , nothing show in minimap except enemy+.. item as a red point !

    PS: I can show my enemy+flag+... in minimap without problem ! I just have problem with 2D-map-texture showing .
    PS: I knew editor method to change minimap texture ( Editor::WorldProperties->WorldInfo->MyMapInfo-> ... )

    Thanks is advance for your helps