Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_image.c
| Show First 20 Lines • Show All 703 Lines • ▼ Show 20 Lines | static void rna_def_image(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "use_animation", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_animation", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "tpageflag", IMA_TWINANIM); | RNA_def_property_boolean_sdna(prop, NULL, "tpageflag", IMA_TWINANIM); | ||||
| RNA_def_property_ui_text(prop, "Animated", "Use as animated texture in the game engine"); | RNA_def_property_ui_text(prop, "Animated", "Use as animated texture in the game engine"); | ||||
| RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, "rna_Image_animated_update"); | RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, "rna_Image_animated_update"); | ||||
| prop = RNA_def_property(srna, "frame_start", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "frame_start", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "twsta"); | RNA_def_property_int_sdna(prop, NULL, "twsta"); | ||||
| RNA_def_property_range(prop, 0, 128); | RNA_def_property_range(prop, 0, 255); | ||||
| RNA_def_property_ui_text(prop, "Animation Start", "Start frame of an animated texture"); | RNA_def_property_ui_text(prop, "Animation Start", "Start frame of an animated texture"); | ||||
| RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, "rna_Image_animated_update"); | RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, "rna_Image_animated_update"); | ||||
| prop = RNA_def_property(srna, "frame_end", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "frame_end", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "twend"); | RNA_def_property_int_sdna(prop, NULL, "twend"); | ||||
| RNA_def_property_range(prop, 0, 128); | RNA_def_property_range(prop, 0, 255); | ||||
| RNA_def_property_ui_text(prop, "Animation End", "End frame of an animated texture"); | RNA_def_property_ui_text(prop, "Animation End", "End frame of an animated texture"); | ||||
| RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, "rna_Image_animated_update"); | RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, "rna_Image_animated_update"); | ||||
| prop = RNA_def_property(srna, "fps", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "fps", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "animspeed"); | RNA_def_property_int_sdna(prop, NULL, "animspeed"); | ||||
| RNA_def_property_range(prop, 1, 100); | RNA_def_property_range(prop, 1, 100); | ||||
| RNA_def_property_ui_text(prop, "Animation Speed", "Speed of the animation in frames per second"); | RNA_def_property_ui_text(prop, "Animation Speed", "Speed of the animation in frames per second"); | ||||
| RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, NULL); | RNA_def_property_update(prop, NC_IMAGE | ND_DISPLAY, NULL); | ||||
| ▲ Show 20 Lines • Show All 113 Lines • Show Last 20 Lines | |||||