About Store Forum Documentation Contact



Post Reply 
Mini Map question
Author Message
docrst Offline
Member

Post: #1
Mini Map question
how can I put a custom frame around the Mini Map?
10-23-2013 03:48 AM
Visit this user's website Find all posts by this user Quote this message in a reply
1991mirec Offline
Member

Post: #2
RE: Mini Map question
something like this should work.. not sure if it s made correct way but that s how i got it and it works
ImagePtr SomeImage = your image UID;
SomeImage->drawBorder(rect);

rect is minimap rectangle
10-23-2013 04:25 PM
Find all posts by this user Quote this message in a reply
docrst Offline
Member

Post: #3
RE: Mini Map question
thank you, i will try it out.

would it go here

// draw the image
Image &image=Game.World.mini_map(VecI2(x, y)); // access the image map from the world manager
if( image.is())image.drawMask(WHITE, TRANSPARENT, map_image_rect, *Images(UID(3960408949, 1263566522, 647874702, 859924211)), rect); // if the image map is valid then draw it on the screen using masked drawing
}

rect.center().draw(WHITE);
(This post was last modified: 10-25-2013 03:54 AM by docrst.)
10-25-2013 03:45 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply