Variable Window (for menu screen)

Discussion in 'RGSS3 Scripts (RMVX Ace)' started by tale, Oct 21, 2019.

  1. tale

    tale Volunteer Veteran

    Messages:
    455
    Likes Received:
    737
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    N/A
    Variable Window (menu screen addon) - 2012.12.06 (Ver1.00)

    Creator name:
    prico​

    Overview

    Adds a window that can display variable.

    Features
    - Switch number to show variable window (0, already displayed by default)
    - Variable window title string
    - Variable window suffix: ex- ".Pt"
    - Shown above the gold window in the menu screen.

    Screen
    [​IMG]

    Installation

    Paste this script above Main.



    Credit and Thanks- Prico
    website: Sister's Eternal 4th(Ancient)
    URL: http://pricono.whitesnow.jp/

    Permission to use: Not required, but please mention in the game, Readme, etc.

    Terms of Use- Free for commercial and non-commercial use.
     
    #1
    Tw0Face likes this.
  2. Tw0Face

    Tw0Face Chief Executive Officer Veteran

    Messages:
    277
    Likes Received:
    299
    First Language:
    German
    Primarily Uses:
    RMVXA
    Pretty nice script. :wink: I want to use it but I have to ask some questions before:

    - How can I make the Var_Suffix not appear in blue?
    - Is there a way to display an icon before Var_Prefix? I tried to insert \i[...] and \\I[...] but both ways didn't work.
    - Can "0 .pt" be displayed on the left side or centered instead of right side?
     
    #2
  3. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,741
    Likes Received:
    381
    Location:
    Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    Put in a change color, or move the normal_color up one line. (line 67)
    draw_icon(icon_index, 110, Line_height - 5) # change icon_index
    Prico::Var_Suffix,2
    change the 2. other options are 0 and 1. I believe 0 is left.
     
    #3
    Tw0Face likes this.
  4. Tw0Face

    Tw0Face Chief Executive Officer Veteran

    Messages:
    277
    Likes Received:
    299
    First Language:
    German
    Primarily Uses:
    RMVXA
    @Roninator2: I managed to get the left side display but I have no idea on where to write the draw_icon and how to add the change color.
     
    #4
  5. Roninator2

    Roninator2 Gamer Veteran

    Messages:
    1,741
    Likes Received:
    381
    Location:
    Canada
    First Language:
    English
    Primarily Uses:
    RMVXA
    If you changed the left side display then you should have seen normal_color. Change the order... code is run from top to bottom. If change color is above the text you want to display, then the text will be the color you set.
    I haven't been talking about multiple methods, and this script is pretty small.
    You're changing info inside the window. There's initialize, refresh and update. All of the display stuff is in refresh, so...
     
    #5
    Tw0Face likes this.
  6. Tw0Face

    Tw0Face Chief Executive Officer Veteran

    Messages:
    277
    Likes Received:
    299
    First Language:
    German
    Primarily Uses:
    RMVXA
    #6

Share This Page