Leaning the command texts to left in Window_Command

Discussion in 'RGSSx Script Support' started by virusasa, Feb 14, 2018.

  1. virusasa

    virusasa Avernite Member

    Messages:
    15
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMVXA
    [​IMG]

    Can I lean all the text of choices to left somehow? When they are centered they seem unorginazed.
    Edit:
    I just realised I posted this in wrong place. I cant seem to delete it though sorry :rswt2:
     
    #1
  2. mlogan

    mlogan Global Moderators Global Mod

    Messages:
    12,391
    Likes Received:
    6,776
    Location:
    Texas
    First Language:
    English
    Primarily Uses:
    RMMV
    No need to delete it, just report it and we can move it if it happens again. Moving it for you now.
     
    #2
    virusasa likes this.
  3. TheoAllen

    TheoAllen Self-proclaimed jack of all trades Veteran

    Messages:
    3,048
    Likes Received:
    3,069
    Location:
    Riftverse
    First Language:
    Indonesian
    Primarily Uses:
    RMVXA
    In Window_Command class, there is a method "alignment". Simply overwrite the value to something else will affect the entire window. But that said, I have no idea which script are u using, so I can't point out where you gonna edit it
     
    #3
    virusasa likes this.
  4. virusasa

    virusasa Avernite Member

    Messages:
    15
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMVXA
    Thanks a lot! I'll keep that in mind.

    Thank you Theo! I found the part you were talking about. The script was a custom shop scene I wrote, I just added this code to the buy window and it worked like a charm.
    Code:
    def alignment
      return 0
    end
    [​IMG]

    It seems 0 is left, 1 is centered and 2 is right if anyone else stumbles upon this post looking for a similar solution.
     
    #4

Share This Page