Return the base color for BitmapText.getColor() because
other things make less sense... though no answer is exactly "right". git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7859 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
0a58b3c92b
commit
dd5d56ab42
@ -133,7 +133,7 @@ public class BitmapText extends Node {
|
||||
* @return color of the text
|
||||
*/
|
||||
public ColorRGBA getColor() {
|
||||
return block.getColor();
|
||||
return letters.getBaseColor();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -311,6 +311,10 @@ class Letters {
|
||||
setColor( 0, block.getText().length(), color );
|
||||
}
|
||||
|
||||
ColorRGBA getBaseColor() {
|
||||
return baseColor;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param start start index to set style. inclusive.
|
||||
* @param end end index to set style. EXCLUSIVE.
|
||||
|
Loading…
x
Reference in New Issue
Block a user