how to change text and outline color

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By pixeljp

Im not sure how to change the text and outline color… im trying to change $rightwrong’s outline and text to purple and add it to a function.

func rightAnswer(nextQuestion):
  addPoint() #adds a point
  $ # sfx
  $question.text = ""
  $rightwrong.text = "correct"
  yield(get_tree().create_timer(1), "timeout") # correct label timer
  $rightwrong.text = "" #correctness indicator
  $question.text = nextQuestion

Maybe $rightwrong.set("custom_colors/font_color",Color(0.5,0.5,0.5)) and $rightwrong.set("custom_colors/font_outline_modulate",Color(0.5,0.5,0.5)) would do the trick?

godot_dev_ | 2023-06-22 22:05