Jump to content
Dalhan

Modifying Main Menu Elements/Backgrounds

Recommended Posts

Normally, its easier for you to define the specific fonts for each text you draw.

 

 

You can change the default values set for each component when a new Font object is created.

 

So, say you want to draw a text:

    Font.default_name = ["Myriad", "Verdana"]
    Font.default_size = 92
    Font.default_bold = true
    draw_text_ex(x, y, "Hey")

however, as you can see here those are the default names.This means that these are the default values whenever the font object is created. Therefore, when you call it like that, it would change your default size to 92 for the text for ALL of your window texts.

 

How can I change individual texts then?

 

If you're drawing it in a window, I always can do it this way:

    contents.font.name = ["Myriad", "Verdana"]
    contents.font.size = 90
    draw_text_ex(x, y, "Hey")

Share this post


Link to post
Share on other sites

Just thought I'd give a small update in case you wanted to see where I was at. 

http://i1340.photobucket.com/albums/o731/Beau_Lovett/UpdatedMenu_zps08612b45.png

 

I was wondering if it's possible to replace the selector box with an actual image depending on which window it is in. I'd like to have png used for the top menu options and the actual players. It's likely to be used in other menus too. 

Share this post


Link to post
Share on other sites

Photobucket seems to load your image slowly. You can try uploading them in imgur instead. As for your question, yes, you can actually do that. you need to look at item_rect function. Actually, you need to duplicate that and place it on your custom window, rather than replacing it entirely.

Share this post


Link to post
Share on other sites

Awesome, I'll give that a shot. I also think I used the wrong link, so I'll give it another go!

 

 

 

UpdatedMenu_zps08612b45.png

 

 

 

Also, came across something with the custom backgrounds as I am adding them into each scene. There's an odd delay between the transition where the background fades before text/portraits/etc and it looks a little odd. 

I'd like to have the background be disposed of last if possible, but if that's too complex, is it possible to have a static black image set on the lower-most layer of the menus, so that when the transitions happen, it would fade to back?

Edited by Dalhan

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted