stulee1

Warper
Member
Joined
Mar 25, 2021
Messages
3
Reaction score
1
First Language
english
Primarily Uses
RMVX
Help this is my first post sorry if in wrong section i do apologise in advance

ive used vx for years on and off and only just starting to delve into scripting a little

ive managed to change the txt colour throughout to the desired colour which is 02 - light orange
all other text has changed to the same which is what i want my only problem is the name inputting screen i cant find anywhere to change that to the same colour if anyone could help id be greatfull

thanks in advance and again im sorry if this belongs in another thread

(the game i am working on ive called the kings sword )
 

Attachments

  • title.png
    title.png
    448.3 KB · Views: 6
  • orange text.png
    orange text.png
    78.9 KB · Views: 6
  • name input.png
    name input.png
    22.2 KB · Views: 6

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,984
Reaction score
665
First Language
English
Primarily Uses
RMVXA
the name inputting screen
You'll need to edit the code.
Window_NameEdit
under def initialize before refresh add in
self.contents.font.color = text_color(2)

Same for Window_NameInput
under def initialize before refresh add in
self.contents.font.color = text_color(2)

The best way is to add in a new script slot those changes.
Ruby:
class Window_NameEdit < Window_Base
  def initialize(actor, max_char)
    super(88, 20, 368, 128)
    @actor = actor
    @name = actor.name
    @max_char = max_char
    name_array = @name.split(//)[0...@max_char]   # Fit within max length
    @name = ""
    for i in 0...name_array.size
      @name += name_array[i]
    end
    @default_name = @name
    @index = name_array.size
    self.active = false
    self.contents.font.color = text_color(2)
    refresh
    update_cursor
  end
end
class Window_NameInput < Window_Base
  def initialize(mode = 0)
    super(88, 148, 368, 248)
    @mode = mode
    @index = 0
    self.contents.font.color = text_color(2)
    refresh
    update_cursor
  end
end

When posting a thread for help, don't just say help. Make the title of your post descriptive of what you need or what the problem is.
 

stulee1

Warper
Member
Joined
Mar 25, 2021
Messages
3
Reaction score
1
First Language
english
Primarily Uses
RMVX
You'll need to edit the code.
Window_NameEdit
under def initialize before refresh add in
self.contents.font.color = text_color(2)

Same for Window_NameInput
under def initialize before refresh add in
self.contents.font.color = text_color(2)

The best way is to add in a new script slot those changes.
Ruby:
class Window_NameEdit < Window_Base
  def initialize(actor, max_char)
    super(88, 20, 368, 128)
    @actor = actor
    @name = actor.name
    @max_char = max_char
    name_array = @name.split(//)[0...@max_char]   # Fit within max length
    @name = ""
    for i in 0...name_array.size
      @name += name_array[i]
    end
    @default_name = @name
    @index = name_array.size
    self.active = false
    self.contents.font.color = text_color(2)
    refresh
    update_cursor
  end
end
class Window_NameInput < Window_Base
  def initialize(mode = 0)
    super(88, 148, 368, 248)
    @mode = mode
    @index = 0
    self.contents.font.color = text_color(2)
    refresh
    update_cursor
  end
end

When posting a thread for help, don't just say help. Make the title of your post descriptive of what you need or what the problem is.
thanks for the heads up i never ask for help usually i try to do everything myself and ill make sure any further post will be more descriptive thanks again
 

Latest Threads

Latest Profile Posts

A good way to practice writing is to write "flash fiction"; very short stories. Link
[CM]
5VaUMjAFpz1I6fSsgDrfJc.jpg

Title is star.
Dam, does the night get to me, I sound and look like a monster. Its 3:54 am right now...I need sleep...or...coffee.
It has nothing to do with my project, but I'm in love with voxels
If you feel like your story isn't that great, just look at final fantasy.

Forum statistics

Threads
110,484
Messages
1,053,634
Members
143,576
Latest member
hsytrggfsdb
Top