33 #ifndef __diguyViewLabel_H
34 #define __diguyViewLabel_H
39 #define CPLUSPLUS_ONLY
43 class bdiGraphicsLabel;
94 const char* get_name();
113 void set_text(
const char* text);
129 const char* get_text();
144 void set_text_color(
float r,
float g,
float b,
float a,
145 float interp_time = 0.0f);
160 void set_text_shadow_color(
float r,
float g,
float b,
float a,
161 float interp_time = 0.0f);
177 void set_text_shadow_enabled(
int text_shadow_enabled);
229 void set_text_offset_x(
int offset);
241 int get_text_offset_x();
253 void set_text_offset_y(
int offset);
265 int get_text_offset_y();
295 void set_x(
float screen_x_offset,
296 float interp_time = 0.0f);
333 void set_y(
float screen_y_offset,
334 float interp_time = 0.0f);
366 void set_negative_wraps_x(
int wrap);
378 int get_negative_wraps_x();
395 void set_negative_wraps_y(
int wrap);
407 int get_negative_wraps_y();
490 void set_minimum_width(
int min_x);
502 int get_minimum_width();
509 void set_minimum_height(
int min_y);
516 int get_minimum_height();
564 void set_full_window(
int full_window);
576 int get_full_window();
605 void set_visible(
int visible);
647 void set_background_color(
float r,
float g,
float b,
float a,
648 float interp_time = 0.0f);
664 void set_background_image(
const char* filename);
680 void set_background_enabled(
int background_enabled);
705 void set_border_color(
float r,
float g,
float b,
float a,
706 float interp_time = 0.0f);
722 void set_margin_size(
int margin_size);
738 void set_border_enabled(
int border_enabled);
807 void enable_bar_graph(
int num_lines,
808 int lines_are_vertical = 1,
809 int line_thickness = 10,
810 int space_between_lines = 2,
811 int derive_minimum_label_size = 1);
819 void disable_bar_graph();
826 int get_bar_graph_num_lines();
833 int get_bar_graph_lines_are_vertical();
840 void set_bar_graph_line_color(
int line_number,
841 float r,
float g,
float b,
float a);
861 void set_bar_graph_line_magnitude_ratio(
int line_number,
float ratio);
877 void set_bar_graph_line_magnitude_pixels(
int line_number,
int pixels);
894 void set_is_temporary(
int temporary);
901 int get_is_temporary();
918 void set_draw_limit(
float draw_limit);
931 float get_draw_limit();
956 void set_is_clickable(
int is_clickable);
969 int get_is_clickable();
989 void set_is_noise(
int is_noise);
1009 const char* get_type_name();
1023 CALLBACK_ID_USER_SELECTED = 1,
1024 CALLBACK_ID_USER_UNSELECTED,
1025 CALLBACK_ID_IGUY_INTERACT
1076 int add_callback_script(
int callback_id,
1077 const char* callback_script,
1078 const char* callback_script_type = NULL);
1124 int remove_callback_script(
int callback_id,
1125 const char* callback_script,
1126 const char* callback_script_type = NULL);
1129 #ifdef CPLUSPLUS_ONLY
1156 int add_callback(
int callback_id,
1158 void* callback_params = NULL,
1159 void* callback_user_data = NULL);
1181 int remove_callback(
int callback_id,
1203 int remove_callback_with_user_data(
int callback_id,
1204 void* callback_user_data);
1211 bdiGraphicsLabel* get_scripted_object() {
return m_label;}
1223 bdiGraphicsLabel* m_label;
1225 friend class bdiGraphicsLabel;