Freeciv-3.3
|
#include <gdk/gdkkeysyms.h>
#include "fcintl.h"
#include "log.h"
#include "shared.h"
#include "featured_text.h"
#include "game.h"
#include "options.h"
#include "chatline.h"
#include "gui_main.h"
#include "gui_stuff.h"
#include "script_client.h"
#include "luaconsole.h"
Go to the source code of this file.
Data Structures | |
struct | luaconsole_data |
Macros | |
#define | MAX_LUACONSOLE_HISTORY 20 |
Enumerations | |
enum | luaconsole_res { LUACONSOLE_RES_OPEN } |
Variables | |
static struct luaconsole_data * | luaconsole = NULL |
#define MAX_LUACONSOLE_HISTORY 20 |
Definition at line 46 of file luaconsole.c.
Enumerator | |
---|---|
LUACONSOLE_RES_OPEN |
Definition at line 42 of file luaconsole.c.
|
static |
When the luaconsole text view is resized, scroll it to the bottom. This prevents users from accidentally missing messages when the chatline gets scrolled up a small amount and stops scrolling down automatically.
Definition at line 404 of file luaconsole.c.
|
static |
Initialize a lua console.
Definition at line 182 of file luaconsole.c.
|
static |
Closes a lua console.
Definition at line 452 of file luaconsole.c.
Free a script lua console.
Definition at line 100 of file luaconsole.c.
|
static |
Get the data for the lua console.
Definition at line 117 of file luaconsole.c.
Create a lua console.
Definition at line 82 of file luaconsole.c.
Return TRUE iff the lua console is open.
Definition at line 156 of file luaconsole.c.
Closes the lua console; the content is saved till the client is done.
Definition at line 143 of file luaconsole.c.
Popup the lua console inside the main-window, and optionally raise it.
Definition at line 125 of file luaconsole.c.
|
static |
Refresh a lua console.
Definition at line 444 of file luaconsole.c.
Scrolls the luaconsole all the way to the bottom. If delayed is TRUE, it will be done in a idle_callback.
Modified copy of chatline_scroll_to_bottom().
Definition at line 423 of file luaconsole.c.
Called when a key is pressed.
Definition at line 359 of file luaconsole.c.
Called when the return key is pressed.
Definition at line 257 of file luaconsole.c.
Callback for luaconsole_load_file_popup().
Definition at line 334 of file luaconsole.c.
Create a file selector for loading a lua file..
Definition at line 312 of file luaconsole.c.
|
static |
Dialog response callback.
Definition at line 291 of file luaconsole.c.
Appends the string to the chat output window. The string should be inserted on its own line, although it will have no newline.
Definition at line 468 of file luaconsole.c.
Update the lua console.
Definition at line 168 of file luaconsole.c.
|
static |
Definition at line 58 of file luaconsole.c.