RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RMVXA] Question about stat placement

0 Members and 1 Guest are viewing this topic.

*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Biggest Drama Whore2013 Zero to HeroParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
I was wondering how the placement of stats was determent.

All I can find is ~

Code: [Select]
draw_actor_simple_status(actor, rect.x + 108, rect.y + line_height / 2)

It looks like it just draw all the stats at once. Is there a way to change the locations of the individual stats?

I want to change it from this -
Spoiler for:

to this something like this-
Spoiler for:

« Last Edit: March 13, 2013, 05:47:31 AM by Boe »
&&&&&&&&&&&&&&&&

**
Rep:
Level 41
Addict
Hi!

You need to take a look at Window_Base.
The "draw_actor_simple_status" method is defined there:

Code: [Select]
  def draw_actor_simple_status(actor, x, y)
    draw_actor_name(actor, x, y)
    draw_actor_level(actor, x, y + line_height * 1)
    draw_actor_icons(actor, x, y + line_height * 2)
    draw_actor_class(actor, x + 120, y)
    draw_actor_hp(actor, x + 120, y + line_height * 1)
    draw_actor_mp(actor, x + 120, y + line_height * 2)
  end

But be a bit careful. As the method is defined in Window_Base it is most probably used in many other windows as well. I´m still new to the maker so I don´t know where exactly.

If you want to change the look for only the main menu status window you could define your own method to draw the values and call that instead of draw_actor_simple_status.

Hope this helps :)

*
Rep:
Level 82
Alternatively, because that method is in the Window_Base class, if you wanted to have this method only change the way that Window_MenuStatus behaves, you can redefine this method (using the same method name) in the Window_MenuStatus class itself, instead of adding a new method in Window_Base. This will let other classes that inherit from Window_Base behave in the default way, and have Window_MenuStatus (and any classes which inherit from Window_MenuStatus) to behave somewhat differently.

If, on the other hand, you wanted to make sure that all simple_status calls (such as the one that Window_Status will call) to also have the hp and mp bars side by side, you would probably be better redefining the method in Window_Base instead.

What method you do use, really depends on the overall goal.
(Why do I always feel like it's the end of the world and I'm the last man standing?)

*
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
Rep:
Level 96
&&&&&&&&&&&&&&&&&&&&&&&&&&&
GIAW 14: 2nd Place (Hard Mode)2013 Biggest Drama Whore2013 Zero to HeroParticipant - GIAW 11Secret Santa 2013 ParticipantFor taking arms in the name of your breakfast.
Thank you.
You both help me a lot. ^_^

I'll try out both, and see which one I prefer.

:3
Spoiler for:

I like the new placement, but it still feels like it missing something. ~_~
&&&&&&&&&&&&&&&&