Old conversation are now grayed out

Old conversation are now grayed out for a better lisibility.
This commit is contained in:
LucasDelvallet
2015-02-09 20:20:48 +01:00
parent 0acd31f090
commit 96440f27b0

View File

@@ -46,6 +46,9 @@ public final class ConversationActivity
private static final int playerPhraseColor = 0;
private static final int NPCPhraseColor = 0;
private static final int rewardColor = Color.argb(255, 0x99, 0x99, 0x55);
private static final int oldPhraseColor = Color.argb(255,0x5a,0x5a, 0x5a);
private static final int oldPlayerNameColor = Color.argb(255, 0x5d, 0x11, 0x11);
private static final int oldNPCNameColor = Color.argb(255, 0x5d, 0x5d, 0x11);
private WorldContext world;
private Player player;
@@ -206,7 +209,19 @@ public final class ConversationActivity
return null; // No reply was found. This is probably an error.
}
private void greyAllConversationStatement(){
for(ConversationStatement conversation : this.conversationHistory ){
conversation.textColor = oldPhraseColor;
if(conversation.isPlayerActor){
conversation.nameColor = oldPlayerNameColor;
} else {
conversation.nameColor = oldNPCNameColor;
}
}
}
private void nextButtonClicked() {
greyAllConversationStatement();
RadioButton rb = getSelectedReplyButton();
replyGroup.removeAllViews();
nextButton.setEnabled(false);