-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdialogscript.ash
121 lines (105 loc) · 2.99 KB
/
dialogscript.ash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// Script header for module 'dialogscript'
//
// simplified custom dialog gui based on v.1.6.3
//
// This script is compatible with AGS 3.2 and higher
// Therefore it doesn't work with AGS 3.1 and below.
//
//
// Licence:
//
// CustomDialogGui AGS script module
// Copyright (C) 2008 - 2015 Dirk Kreyenberg
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
// sell copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
struct CustomDialogGui {
import function init();
DialogOptionsRenderingInfo *dialog_window;
bool hide_gui_while_dialog;
int gui_xpos;
int gui_ypos;
int gui_width;
int gui_height;
bool autosize_height;
bool autosize_width;
int yscreenborder;
int xscreenborder;
int autosize_minheight;
int autosize_maxheight;
int autosize_minwidth;
int autosize_maxwidth;
int auto_arrow_align;
int auto_arrow_up_offset_x;
int auto_arrow_up_offset_y;
int auto_arrow_down_offset_x;
int auto_arrow_down_offset_y;
int bullet;
int uparrow_img;
int uparrow_hi_img;
int uparrow_push_img;
int uparrow_xpos;
int uparrow_ypos;
int downarrow_img;
int downarrow_hi_img;
int downarrow_push_img;
int downarrow_xpos;
int downarrow_ypos;
float scroll_btn_delay;
int border_top;
int border_bottom;
int border_left;
int border_right;
int border_visible;
int border_color;
bool mousewheel;
bool reset_scrollstate;
bool dialog_options_upwards;
int bg_img;
int bg_img_scaling;
int bg_img_transparency;
int bg_color;
int scroll_rows;
int text_font;
int text_color;
int text_color_active;
int text_alignment;
int text_bg;
int text_bg_xpos;
int text_bg_scaling;
int text_bg_transparency;
int text_line_space;
int text_numbering;
// internal Stuff from here on
int scroll_from;
int scroll_to;
int max_option_height;
int max_option_width;
int active_options_count;
int locked_xpos;
int locked_ypos;
int uparrow_current_img;
int downarrow_current_img;
};
struct CDG_Arrow {
int x1;
int y1;
int x2;
int y2;
};
import CustomDialogGui CDG;