13 #ifndef __diguyViewLabel_H
14 #define __diguyViewLabel_H
19 #define CPLUSPLUS_ONLY
23 class bdiGraphicsLabel;
81 const char* get_name();
99 void set_text(
const char* text);
110 const char* get_text();
117 int set_font(
const char* name);
128 const char* get_font();
138 void set_text_color(
float r,
float g,
float b,
float a,
139 float interp_time = 0.0f);
149 void set_text_shadow_color(
float r,
float g,
float b,
float a,
150 float interp_time = 0.0f);
161 void set_text_shadow_enabled(
int text_shadow_enabled);
198 void set_text_offset_x(
int offset);
205 int get_text_offset_x();
212 void set_text_offset_y(
int offset);
219 int get_text_offset_y();
248 void set_x(
float screen_x_offset,
249 float interp_time = 0.0f);
276 void set_y(
float screen_y_offset,
277 float interp_time = 0.0f);
297 void set_world_xyz(
float x,
float y,
float z);
304 void get_world_xyz(
float* x,
float* y,
float* z);
316 void set_negative_wraps_x(
int wrap);
323 int get_negative_wraps_x();
335 void set_negative_wraps_y(
int wrap);
342 int get_negative_wraps_y();
394 void set_offset_x(
int offset);
408 void set_offset_y(
int offset);
428 void set_minimum_width(
int min_x);
435 int get_minimum_width();
442 void set_minimum_height(
int min_y);
449 int get_minimum_height();
482 void set_full_window(
int full_window);
489 int get_full_window();
508 void set_visible(
int visible);
544 void set_background_color(
float r,
float g,
float b,
float a,
545 float interp_time = 0.0f);
556 void set_background_image(
const char* filename);
567 void set_background_enabled(
int background_enabled);
591 void set_border_color(
float r,
float g,
float b,
float a,
592 float interp_time = 0.0f);
603 void set_margin_size(
int margin_size);
614 void set_border_enabled(
int border_enabled);
682 void enable_bar_graph(
int num_lines,
683 int lines_are_vertical = 1,
684 int line_thickness = 10,
685 int space_between_lines = 2,
686 int derive_minimum_label_size = 1);
694 void disable_bar_graph();
701 int get_bar_graph_num_lines();
708 int get_bar_graph_lines_are_vertical();
715 void set_bar_graph_line_color(
int line_number,
716 float r,
float g,
float b,
float a);
736 void set_bar_graph_line_magnitude_ratio(
int line_number,
float ratio);
752 void set_bar_graph_line_magnitude_pixels(
int line_number,
int pixels);
773 void set_is_temporary(
int temporary);
780 int get_is_temporary();
792 void set_draw_limit(
float draw_limit);
800 float get_draw_limit();
820 void set_is_clickable(
int is_clickable);
828 int get_is_clickable();
835 const char* get_type_name();
844 CALLBACK_ID_USER_SELECTED = 1,
845 CALLBACK_ID_USER_UNSELECTED,
846 CALLBACK_ID_IGUY_INTERACT,
847 CALLBACK_ID_MOUSE_DOWN,
848 CALLBACK_ID_MOUSE_UP,
849 CALLBACK_ID_LEFT_CLICK,
850 CALLBACK_ID_RIGHT_CLICK,
851 CALLBACK_ID_MIDDLE_CLICK,
852 CALLBACK_ID_DOUBLE_CLICK,
853 CALLBACK_ID_BEGIN_DRAG,
900 int add_callback_script(
int callback_id,
901 const char* callback_script,
902 const char* callback_script_type = NULL);
943 int remove_callback_script(
int callback_id,
944 const char* callback_script,
945 const char* callback_script_type = NULL);
948 #ifdef CPLUSPLUS_ONLY
975 int add_callback(
int callback_id,
977 void* callback_params = NULL,
978 void* callback_user_data = NULL);
1000 int remove_callback(
int callback_id,
1022 int remove_callback_with_user_data(
int callback_id,
1023 void* callback_user_data);
1030 bdiGraphicsLabel* get_scripted_object() {
return m_label;}
1042 bdiGraphicsLabel* m_label;
1044 friend class bdiGraphicsLabel;
int diguyViewLabelJustification
Definition: diguyViewLabel.h:27
The diguyViewLabel allows on screen 2D and 3D labels in diguy scenario and the opengl renderer...
Definition: diguyViewLabel.h:52
diguyCallbackReturn diguyViewLabelCallback(diguyViewLabel *character, int callback_id, void *callback_params, void *callback_user_data)
Definition: diguy_typedefs.h:223
Definition: diguyViewLabel.h:34
Definition: diguyViewLabel.h:38
Definition: diguyViewLabel.h:36
Definition: diguyViewLabel.h:35
Definition: diguyViewLabel.h:37