Results 1 to 4 of 4

Thread: Imagem Pop Up

  1. #1
    MSgt. Shooter Person
    Join Date
    Mar 2012
    Posts
    61

    Default Imagem Pop Up

    Hi guys!

    Someone can help with this one:

    When I execute a action, I want to an imagem (texture, or something like that ) be displayed in screen for a period.

    How can I do that?

    Draw Image? But where I link the "Draw Image"?


    THanks!

  2. #2

    Default

    Which action? take a look at playercontroller
    an example:

    Code:
    state Dead
    {
    DrawSomeImage();
    }
    
    
    function DrawSomeImage()
    {
    	local Canvas Canvas;
    
    	Canvas = HUD.Canvas;
    	
    	Canvas.DrawIcon(ROFLIcon, 8, 8, 0.5);
    }
    
    defaultproperties
    {
    ROFLIcon=(Texture=Texture2D'YourContent.ROFLImage',U=72,V=8,UL=48,VL=48)
    }
    More information on http://udn.epicgames.com/Three/Canva...icalGuide.html

  3. #3
    MSgt. Shooter Person
    Join Date
    Mar 2012
    Posts
    61

    Default

    I trying to add just a simple image when player change Weapon...

    WHen I compile your example is missing the HUD variable...

    "Error, Bad or missing expression for token: HUD, in '='"

  4. #4

    Default

    My example will never work! it was just to show how
    Take a look at InventoryManager.uc... function ChangedWeapon. A sample, just taking out of my mind could be

    Code:
    simulated function ChangedWeapon()
    {
    local Canvas Canvas;
    Canvas = PlayerController.myHUD.Canvas;
    Canvas.DrawIcon(ROFLIcon, 8, 8, 0.5);
    super.ChangedWeapon();
    }


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.