Simutrans-Squirrel-API OTRP v63_4
Loading...
Searching...
No Matches
api_gui.cc
Go to the documentation of this file.
1
6public:
10integer x;
14integer y;
18integer w;
22integer h;
23};
24
59
64public:
68integer id;
72string role;
96string text;
100array<gui_component_x> children;
104integer scroll_x;
108integer scroll_y;
109};
110
113class gui {
114public:
120 static void open_info_win();
127 static void open_info_win_at(string tab);
135 static void open_info_win_client(string tab, integer player_nr);
146 static string add_message_at(string text, coord position);
155 static string add_message(player_x text, string);
166 static string add_message_at(player_x player, string text, coord position);
174 static void jump(any_x position);
178 static void close_all_windows();
182 static void take_screenshot();
188 static void export_minimap();
196 static void export_minimap_with_mode(any_x mapmode);
202 static void set_zoom(any_x zoom);
209 static bool open_dialog_tool(integer tool_nr);
216 array<gui_window_x> get_windows();
225 array<gui_component_x> get_window_components(integer window_id);
234 void click(any_x x, any_x y, any_x shift, any_x ctrl);
245 void drag(any_x from_x, any_x from_y, any_x to_x, any_x to_y, any_x shift, any_x ctrl);
246};
integer y
Definition api_gui.cc:14
integer w
Definition api_gui.cc:18
integer x
Definition api_gui.cc:10
integer h
Definition api_gui.cc:22
integer scroll_x
Definition api_gui.cc:104
gui_bounds_x bounds
Definition api_gui.cc:88
gui_bounds_x screen_bounds
Definition api_gui.cc:92
array< gui_component_x > children
Definition api_gui.cc:100
integer scroll_y
Definition api_gui.cc:108
integer z_order
Definition api_gui.cc:37
string title
Definition api_gui.cc:45
integer id
Definition api_gui.cc:33
gui_bounds_x bounds
Definition api_gui.cc:53
gui_bounds_x client_bounds
Definition api_gui.cc:57
bool has_title
Definition api_gui.cc:49
static void set_zoom(any_x zoom)
static void close_all_windows()
static bool open_dialog_tool(integer tool_nr)
static void jump(any_x position)
static void open_info_win()
static void export_minimap()
static void open_info_win_client(string tab, integer player_nr)
void click(any_x x, any_x y, any_x shift, any_x ctrl)
static void export_minimap_with_mode(any_x mapmode)
array< gui_window_x > get_windows()
static void open_info_win_at(string tab)
array< gui_component_x > get_window_components(integer window_id)
void drag(any_x from_x, any_x from_y, any_x to_x, any_x to_y, any_x shift, any_x ctrl)
static void take_screenshot()
static string add_message_at(player_x player, string text, coord position)
static string add_message(player_x text, string)
static string add_message_at(string text, coord position)