• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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] UI coordinates not changing for some values (v18.1)

  • 19
    Posts
    6
    Years
    • Seen Dec 13, 2023
    Not much to it: I've been creating custom UI for my game, it's my first time doing UI editing, and a couple elements refuse to change their coordinates, even though i've trial-and-error'ed every possible numerical variable in the function that draws them. They don't change places, whether it's 2 or 200.

    The unchanging elements are the pokemon name, the level, the gender symbol, and the status marker. Other elements change just fine and I've got the HP bar, Exp bar, and HP numbers working perfectly. What's the reason for this?

    If it helps at all, here is a complete dump of my PokeBattle_SceneElements script.
     
    Not much to it: I've been creating custom UI for my game, it's my first time doing UI editing, and a couple elements refuse to change their coordinates, even though i've trial-and-error'ed every possible numerical variable in the function that draws them. They don't change places, whether it's 2 or 200.

    The unchanging elements are the pokemon name, the level, the gender symbol, and the status marker. Other elements change just fine and I've got the HP bar, Exp bar, and HP numbers working perfectly. What's the reason for this?

    If it helps at all, here is a complete dump of my PokeBattle_SceneElements script.

    Did you install ZUD or maybe another script that alters the UI?
    Sounds to me that you're editing the wrong "instance" or PokemonDataBox (what you are editing is being rewritten by anther script).
    Search in your code (use CTRL+SHIFT+F) if there are other definitions of "class PokemonDataBox", and of the function "def refresh".
     
    aha, you got it! i didn't think ZUD would change those parts of the ui like that, lol. thank you very much!
     
    Back
    Top