Hi again!
Sorry for double-post, but I got some questions, again...
I noticed these lines in this script:
There is that 'change_color(normal_color)' line in it. My question is, why?
Because it brakes the shop's 'enable?(item)' coloring. Regardless if you got enough gold for it or not, it will show up as an enabled item (like if you got the gold for it). It is not possible to actually buy it without enough gold, but the color will always show an enabled state with that line there.
Removing it fixed the issue. So far, nothing seems to be broken because of the erased line, but I want to know if that line was an important thing for this script or was it just an accidental leftover line forgotten there?
And another question regarding the 'change_color(item.color, enabled)' line from that same definition...
That color change is needed for weapons/armors/items only, right? It is to color the randomized items in most of the scenes, or not?
Because I needed to make a conditional check on that, so that line could only affect items and nothing else. It was necessary for a compatibility issue with another part of the Crafting Script.
Thanks for the answers in advance!
Sorry for double-post, but I got some questions, again...
I noticed these lines in this script:
Code:
class Window_Base def draw_item_name(item, x, y, enabled = true, width = 172) return unless item draw_icon(item.icon_index, x, y, enabled) change_color(item.color, enabled) change_color(normal_color) # why is this line here? draw_text(x + 24, y, width, line_height, item.name) endend
There is that 'change_color(normal_color)' line in it. My question is, why?
Because it brakes the shop's 'enable?(item)' coloring. Regardless if you got enough gold for it or not, it will show up as an enabled item (like if you got the gold for it). It is not possible to actually buy it without enough gold, but the color will always show an enabled state with that line there.
Removing it fixed the issue. So far, nothing seems to be broken because of the erased line, but I want to know if that line was an important thing for this script or was it just an accidental leftover line forgotten there?
And another question regarding the 'change_color(item.color, enabled)' line from that same definition...
That color change is needed for weapons/armors/items only, right? It is to color the randomized items in most of the scenes, or not?
Because I needed to make a conditional check on that, so that line could only affect items and nothing else. It was necessary for a compatibility issue with another part of the Crafting Script.
Thanks for the answers in advance!