Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_userdef.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 2,801 Lines • ▼ Show 20 Lines | static void rna_def_userdef_theme_space_node(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "noodle_curving", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "noodle_curving", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "noodle_curving"); | RNA_def_property_int_sdna(prop, NULL, "noodle_curving"); | ||||
| RNA_def_property_int_default(prop, 5); | RNA_def_property_int_default(prop, 5); | ||||
| RNA_def_property_range(prop, 0, 10); | RNA_def_property_range(prop, 0, 10); | ||||
| RNA_def_property_ui_text(prop, "Noodle curving", "Curving of the noodle"); | RNA_def_property_ui_text(prop, "Noodle curving", "Curving of the noodle"); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); | RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); | ||||
| prop = RNA_def_property(srna, "grid_levels", PROP_INT, PROP_NONE); | |||||
| RNA_def_property_int_sdna(prop, NULL, "grid_levels"); | |||||
| RNA_def_property_int_default(prop, 2); | |||||
| RNA_def_property_range(prop, 0, 2); | |||||
| RNA_def_property_ui_text( | |||||
brecht: Use either "levels" or "depth" for both the UI and internal name.
The description should also… | |||||
| prop, "Grid levels", "Amount of grid lines displayed in the background"); | |||||
| RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); | |||||
| prop = RNA_def_property(srna, "input_node", PROP_FLOAT, PROP_COLOR_GAMMA); | prop = RNA_def_property(srna, "input_node", PROP_FLOAT, PROP_COLOR_GAMMA); | ||||
| RNA_def_property_float_sdna(prop, NULL, "syntaxn"); | RNA_def_property_float_sdna(prop, NULL, "syntaxn"); | ||||
| RNA_def_property_array(prop, 3); | RNA_def_property_array(prop, 3); | ||||
| RNA_def_property_ui_text(prop, "Input Node", ""); | RNA_def_property_ui_text(prop, "Input Node", ""); | ||||
| RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); | RNA_def_property_update(prop, 0, "rna_userdef_theme_update"); | ||||
| prop = RNA_def_property(srna, "output_node", PROP_FLOAT, PROP_COLOR_GAMMA); | prop = RNA_def_property(srna, "output_node", PROP_FLOAT, PROP_COLOR_GAMMA); | ||||
| RNA_def_property_float_sdna(prop, NULL, "nodeclass_output"); | RNA_def_property_float_sdna(prop, NULL, "nodeclass_output"); | ||||
| ▲ Show 20 Lines • Show All 3,277 Lines • Show Last 20 Lines | |||||
Use either "levels" or "depth" for both the UI and internal name.
The description should also be changed, maybe something like "Control amount of grid lines to display in the background".