• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Changing color of individual menu items

  • 223
    Posts
    11
    Years
    • Seen Sep 24, 2020
    I'm not sure this is even possible, but hopefully it is.

    I'm trying to implement an achievement system, so that when you get the achievement the color of the achievement title changes. So you'll have a list of achievements, and the ones that you've got will be red, but the ones you don't have will be black.

    I know how to change the color of EVERY entry, which is something like:

    Spoiler:


    So, if that switch is on, which also turns the achievement on, then the color changes to red. But I have no idea how to make it so that ONLY that achievement turns red, and not the entire list.
    These are the images, to make it clearer what's going wrong.
    Spoiler:


    Here's the entire script, in case it's necessary. I've been adapting the Pokegear Jukebox script, so some of it is still obviously from there.
    Spoiler:
     
    It would be possible if you changed how Window_CommandPokemon worked. I couldn't tell you what to do, though.
    You can set a new flag in Window_CommandPokemon initialize arguments (or just a method call to "activates" this feature) and, when this flag is on, you can change the pbDrawShadowText call at drawItem with other logic to define the colors. I suggest you to extends Window_CommandPokemon class rather than do this. I think that my other solution is better.
     
    Back
    Top