22 #ifndef NUVIE_SCRIPT_SCRIPT_CUTSCENE_H 23 #define NUVIE_SCRIPT_SCRIPT_CUTSCENE_H 25 #include "common/lua/lua.h" 27 #include "ultima/nuvie/gui/gui.h" 28 #include "ultima/nuvie/gui/widgets/gui_widget.h" 29 #include "ultima/nuvie/files/u6_shape.h" 30 #include "ultima/nuvie/fonts/wou_font.h" 31 #include "ultima/nuvie/conf/configuration.h" 58 void setScale(uint16 percentage);
63 virtual void updateEffect() { };
66 #define STAR_FIELD_NUM_STARS 70 76 } stars[STAR_FIELD_NUM_STARS];
80 void updateEffect()
override;
127 uint32 loop_interval;
128 uint8 screen_opacity;
131 bool rotate_game_palette;
141 CSImage *load_image(
const char *filename,
int idx,
int sub_idx = 0);
150 void load_palette(
const char *filename,
int idx);
151 void set_palette_entry(uint8 idx, uint8 r, uint8 g, uint8 b);
152 void rotate_palette(uint8 idx, uint8 length);
153 void set_screen_opacity(uint8 new_opacity);
154 void enable_game_palette_rotation(
bool val) {
155 rotate_game_palette = val;
158 void set_update_interval(uint16 interval);
162 void Display(
bool full_redraw)
override;
163 void Hide()
override;
165 void print_text(
CSImage *image,
const char *
string, uint16 *x, uint16 *y, uint16 startx, uint16 width, uint8 color);
168 return sound_manager;
171 uint16 get_x_off()
const {
174 uint16 get_y_off()
const {
187 void set_bg_color(uint8 new_color) {
188 bg_color = new_color;
190 void set_solid_bg(
bool value) {
198 uint16 get_text_width(
const char *text) {
199 return font->getStringWidth(text);
203 bool is_lzc(
const char *filename);
205 void display_wrapped_text(
CSSprite *s);
206 int display_wrapped_text_line(
Std::string str, uint8 text_color,
int x,
int y, uint8 align_val);
Definition: script_cutscene.h:107
Definition: configuration.h:61
Definition: script_cutscene.h:114
Definition: script_cutscene.h:68
Definition: script_cutscene.h:83
Definition: u6_shape.h:47
Definition: detection.h:27
Definition: script_cutscene.h:41
Definition: u6_line_walker.h:30
Definition: atari-cursor.h:38
Definition: sound_manager.h:62
void remove(const T &val)
Definition: list.h:125
Definition: containers.h:200
void push_back(const T &element)
Definition: list.h:140
Definition: containers.h:38
Definition: wou_font.h:34