Centering Commands

Discussion in 'Learning Javascript' started by Milena, Jan 15, 2016.

    Tags:
  1. Milena

    Milena The woman of many questions Veteran

    Messages:
    1,282
    Likes Received:
    106
    Location:
    Ireland
    First Language:
    Irish
    Primarily Uses:
    N/A
    Hi. Just wondering how you can center a command's text? For example, in my menu, I want to center the command names rather than them being on the left side. is there a way to do this? Thanks.
     
    #1
  2. Suzume

    Suzume Event Addict Member

    Messages:
    22
    Likes Received:
    0
    Location:
    Black Marsh
    First Language:
    English
    Download yanfly's main menu manager plugin.
     
    #2
  3. meowchelle

    meowchelle Veteran

    Messages:
    221
    Likes Received:
    81
        Window_MenuCommand.prototype.itemTextAlign = function() {


        return 'center';


        };
     
    #3
  4. Iavra

    Iavra Veteran Veteran

    Messages:
    1,797
    Likes Received:
    856
    First Language:
    German
    Window_MenuCommand.prototype.itemTextAlign = function() {
        return 'center';


    };

    Ninja'd o_O
     
    Last edited by a moderator: Jan 15, 2016
    #4
    meowchelle likes this.
  5. Suzume

    Suzume Event Addict Member

    Messages:
    22
    Likes Received:
    0
    Location:
    Black Marsh
    First Language:
    English
    oh, this is about javascript, not plugin...  :p   :p   :p
     
    #5
  6. Milena

    Milena The woman of many questions Veteran

    Messages:
    1,282
    Likes Received:
    106
    Location:
    Ireland
    First Language:
    Irish
    Primarily Uses:
    N/A
    Thanks a lot everyone who helped. Works fine now :D
     
    #6

Share This Page