Hi!
How can I make INDEPENDENT (I meant that for changing colors, size etc) AND STICKED draw letters or characters next to a changeable value (so they will be automatically positioned next to them when the value changes)? What do I need to rewrite?
E.g. a sticked character "+" is placed next to the "changeable" exp value and then is automatically positioned as the needed exp value became lesser (I changed the position in the script manually to show you what I meant):
[IMG]http://s9.postimg.org/oxdi57uor/image.jpg[/IMG]
[IMG]http://s9.postimg.org/njlv9wvff/image.jpg[/IMG]
This is the exp part of a script that modifies the status window a bit (where the "s2" is the exp value):
def draw_exp_info(x, y) s1 = @actor.exp_s s2 = @actor.next_rest_exp_s s_next = sprintf(Vocab::ExpNext, Vocab::level) self.contents.font.color = system_color self.contents.draw_text(x, y + WLH * 0, 90, WLH, Vocab::ExpTotal) self.contents.draw_text(x, y + WLH * 2, 90, WLH, s_next) self.contents.font.color = normal_color self.contents.draw_text(x, y + WLH * 1, 110, WLH, s1, 2) self.contents.draw_text(x, y + WLH * 3, 110, WLH, s2, 2) endI can make an independent "+" with this:
self.contents.draw_text(x, y, "A CHOSEN NUMBER", WLH, "+")but then how do I stick it to the "s2" = exp value (and with the auto-positioning)?
I can make a sticked "+" with this:
s2 = "+ ", @actor.next_rest_exp_sbut then how can I change its color (the blue system color is fine) and size etc?
I started to understand things but still long way to go...
How can I make INDEPENDENT (I meant that for changing colors, size etc) AND STICKED draw letters or characters next to a changeable value (so they will be automatically positioned next to them when the value changes)? What do I need to rewrite?
E.g. a sticked character "+" is placed next to the "changeable" exp value and then is automatically positioned as the needed exp value became lesser (I changed the position in the script manually to show you what I meant):
[IMG]http://s9.postimg.org/oxdi57uor/image.jpg[/IMG]
[IMG]http://s9.postimg.org/njlv9wvff/image.jpg[/IMG]
This is the exp part of a script that modifies the status window a bit (where the "s2" is the exp value):
def draw_exp_info(x, y) s1 = @actor.exp_s s2 = @actor.next_rest_exp_s s_next = sprintf(Vocab::ExpNext, Vocab::level) self.contents.font.color = system_color self.contents.draw_text(x, y + WLH * 0, 90, WLH, Vocab::ExpTotal) self.contents.draw_text(x, y + WLH * 2, 90, WLH, s_next) self.contents.font.color = normal_color self.contents.draw_text(x, y + WLH * 1, 110, WLH, s1, 2) self.contents.draw_text(x, y + WLH * 3, 110, WLH, s2, 2) endI can make an independent "+" with this:
self.contents.draw_text(x, y, "A CHOSEN NUMBER", WLH, "+")but then how do I stick it to the "s2" = exp value (and with the auto-positioning)?
I can make a sticked "+" with this:
s2 = "+ ", @actor.next_rest_exp_sbut then how can I change its color (the blue system color is fine) and size etc?
I started to understand things but still long way to go...