//gets called when pigment button is clicked public void pigment_selected(Pigment p) { //set currently displayed color color_picker_ui.set_color(p.get_color()); //update pigment information view //pigment_name.text = p.name; // pigment_text.text = p.description; }
public void exit_UI() { // reset to default color brush_button.transform.Find("BrushIcon").Find("BrushHead").GetComponent <Image>().color = drawing_script.default_color; bucket_button.transform.Find("BucketIcon").Find("BucketContents").GetComponent <Image>().color = drawing_script.default_color; color_picker.set_color(drawing_script.default_color); drawing_script.drawing_color = drawing_script.default_color; // close drawing screen save_dialog.SetActive(false); brush_size_slider.SetActive(false); drawing_script.active = false; }