• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.

[Scripting Question] Color in party ( Version 16.2)

  • 50
    Posts
    5
    Years
    • Seen Oct 17, 2023
    [PokeCommunity.com] Color in party ( Version 16.2)


    I am trying to do the same function, I know that in version 17-20 it is with the following code:

    class Window_CommandPokemonColor < Window_CommandPokemon
    def initialize(commands,width=nil)
    @colorKey = []
    for i in 0...commands.length
    if commands.is_a?(Array)
    @colorKey = commands[1]
    commands = commands[0]
    end
    end
    super(commands,width)
    end

    def drawItem(index,count,rect)
    pbSetSystemFont(self.contents) if @starting
    rect = drawCursor(index,rect)
    base = self.baseColor
    shadow = self.shadowColor
    if @colorKey[index] && @colorKey[index]==1
    base = Color.new(0,80,160)
    shadow = Color.new(128,192,240)
    end
    pbDrawShadowText(self.contents,rect.x,rect.y,rect.width,rect.height,@commands[index],base,shadow)
    end
    end



    Can it be done in version 16.2?
     
    Back
    Top