I'm curious about how to change the font size and color in the message window at any given time. In searching through some older threads, I found this bit of code:
This works perfectly for adjusting the font itself whenever, and I tried similar code to adjust the size (@message_window.contents.font.size = size, in a separate section called message_size), but it didn't work. The font size remained the same.
What did I do wrong?
Code:
def message_font=(font)
return if font.nil? || !font.is_a?(String)
@message_window.contents.font.name = font
end
This works perfectly for adjusting the font itself whenever, and I tried similar code to adjust the size (@message_window.contents.font.size = size, in a separate section called message_size), but it didn't work. The font size remained the same.
What did I do wrong?