13 #ifndef __diguyViewLabel_H
14 #define __diguyViewLabel_H
19 #define CPLUSPLUS_ONLY
23 class bdiGraphicsLabel;
73 const char* get_name();
91 void set_text(
const char* text);
102 const char* get_text();
112 void set_text_color(
float r,
float g,
float b,
float a,
113 float interp_time = 0.0f);
123 void set_text_shadow_color(
float r,
float g,
float b,
float a,
124 float interp_time = 0.0f);
135 void set_text_shadow_enabled(
int text_shadow_enabled);
172 void set_text_offset_x(
int offset);
179 int get_text_offset_x();
186 void set_text_offset_y(
int offset);
193 int get_text_offset_y();
222 void set_x(
float screen_x_offset,
223 float interp_time = 0.0f);
250 void set_y(
float screen_y_offset,
251 float interp_time = 0.0f);
272 void set_negative_wraps_x(
int wrap);
279 int get_negative_wraps_x();
291 void set_negative_wraps_y(
int wrap);
298 int get_negative_wraps_y();
356 void set_minimum_width(
int min_x);
363 int get_minimum_width();
370 void set_minimum_height(
int min_y);
377 int get_minimum_height();
410 void set_full_window(
int full_window);
417 int get_full_window();
436 void set_visible(
int visible);
472 void set_background_color(
float r,
float g,
float b,
float a,
473 float interp_time = 0.0f);
484 void set_background_image(
const char* filename);
495 void set_background_enabled(
int background_enabled);
519 void set_border_color(
float r,
float g,
float b,
float a,
520 float interp_time = 0.0f);
531 void set_margin_size(
int margin_size);
542 void set_border_enabled(
int border_enabled);
610 void enable_bar_graph(
int num_lines,
611 int lines_are_vertical = 1,
612 int line_thickness = 10,
613 int space_between_lines = 2,
614 int derive_minimum_label_size = 1);
622 void disable_bar_graph();
629 int get_bar_graph_num_lines();
636 int get_bar_graph_lines_are_vertical();
643 void set_bar_graph_line_color(
int line_number,
644 float r,
float g,
float b,
float a);
664 void set_bar_graph_line_magnitude_ratio(
int line_number,
float ratio);
680 void set_bar_graph_line_magnitude_pixels(
int line_number,
int pixels);
701 void set_is_temporary(
int temporary);
708 int get_is_temporary();
720 void set_draw_limit(
float draw_limit);
728 float get_draw_limit();
748 void set_is_clickable(
int is_clickable);
756 int get_is_clickable();
771 void set_is_noise(
int is_noise);
786 const char* get_type_name();
795 CALLBACK_ID_USER_SELECTED = 1,
796 CALLBACK_ID_USER_UNSELECTED,
797 CALLBACK_ID_IGUY_INTERACT
843 int add_callback_script(
int callback_id,
844 const char* callback_script,
845 const char* callback_script_type = NULL);
886 int remove_callback_script(
int callback_id,
887 const char* callback_script,
888 const char* callback_script_type = NULL);
891 #ifdef CPLUSPLUS_ONLY
918 int add_callback(
int callback_id,
920 void* callback_params = NULL,
921 void* callback_user_data = NULL);
943 int remove_callback(
int callback_id,
965 int remove_callback_with_user_data(
int callback_id,
966 void* callback_user_data);
973 bdiGraphicsLabel* get_scripted_object() {
return m_label;}
985 bdiGraphicsLabel* m_label;
987 friend class bdiGraphicsLabel;