d4rk_br

Simple Minimap README

May 10th, 2019 (edited)
698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. First of all, you have to place the widget 'Minimap_Widget' at your player's widget. This file is located at 'SimpleMinimap/Content/Minimap/Widget'.
  2.  
  3. - Create a folder inside your project 'Content' folder called 'Minimap'. This is where you will save the configuration for each map.
  4. - Iniside 'Minimap' folder create a new blueprint class derived from 'Minimap_Information'. The file name must match the name of the map you want to configure.
  5. - Open the file created in the previous step and configure the minimap as you wish.
  6.  
  7. - OBS:
  8. - The center of the texture used for the minimap should be the center of the world (0,0)
  9.  
  10. - Structures:
  11.  
  12. -- Minimap Information
  13. - Minimap Image: Texture used in minimap.
  14. - Background color: Background color outside minimap image.
  15. - Map Size: Map size in centimeters. See 'map_size.bmp'.
  16. - Initial Map Zoom: Map zoom at creation of widget, can be changed at anytime calling 'SetMapZoom( float Zoom )' function.
  17. - Rotation Mode:
  18. - Minimap Rotate - Pawn: The Minimap follows pawn yaw rotation.
  19. - Minimap Rotate - Pawn's Camera: The Minimap follows the pawn's yaw rotation camera.
  20. - Icon Rotate - Pawn: The Player icon indicator follows pawn yaw rotation.
  21. - Icon Rotate - Pawn's Camera: The Player icon indicator the pawn's yaw rotation camera.
  22.  
  23. -- FRadarIcon Struct
  24. - Icon: Icon image.
  25. - Icon Location: Icon static location.
  26. - Actor: Follows actor location. Setting this will override Icon Location.
  27. - Actor Component: Follows an actor component.
  28. - Icon name: Must be unique, since it will be how you will identify the icon.
  29. - ZOrder: Icons with larger ZOrder values will draw above icons with smaller ZOrder values.
  30.  
  31. -- Icons and map zoom can be changed at anytime using functions in your minimap widget.
  32. - AddRadarIcon(FRadarIcon Icon);
  33. - RemoveRadarIcon(FString IconName);
  34. - SetMapZoom( float Zoom );
  35.  
  36. - Updates:
  37.  
  38. - Version 1.5:
  39. - Round Radar: Use a round radar instead of square one.
  40. - bool GetRadarIcon(FString IconName, FRadarIcon& RadarIcon);
  41. - bool IconExist(FString IconName);
  42. - SetIconTexture(FString IconName, class UTexture2D* NewTexture);
  43. - SetMinimapSize(FVector2D NewSize = FVector2D(300,300));
  44. - Angle: Relative icon angle.
  45. - ScaleOverZoom(Curve Float): Scale the icon in relation to the map zoom.
  46. - KeepOnRadar: The icon will stay on the edge of the map instead of disappearing.
  47. - bKeepIconAngle: The icon will maintain its angle independent of the radar angle.
  48. - FollowActorAngle: The icon will follow the rotation of the actor or actor component if set.
  49. - LifeSpan: Icon life time. If it is greater than zero the icon will automatically be removed at the set time.
Advertisement
Add Comment
Please, Sign In to add comment