Small ui for confirming script download as to make script downloads within scripts noticable
This commit is contained in:
parent
e120c9853f
commit
309ec4b07a
@ -854,6 +854,7 @@ void error_ui(pixel *vid_buf, int err, char *txt)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
char *input_ui(pixel *vid_buf, char *title, char *prompt, char *text, char *shadow)
|
char *input_ui(pixel *vid_buf, char *title, char *prompt, char *text, char *shadow)
|
||||||
{
|
{
|
||||||
int xsize = 244;
|
int xsize = 244;
|
||||||
|
@ -1077,6 +1077,7 @@ return 0;
|
|||||||
int luatpt_getscriptid(lua_State* l)
|
int luatpt_getscriptid(lua_State* l)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
int sock, port, numrec;
|
int sock, port, numrec;
|
||||||
struct sockaddr_in serv_addr;
|
struct sockaddr_in serv_addr;
|
||||||
struct hostent *server;
|
struct hostent *server;
|
||||||
@ -1088,6 +1089,8 @@ int luatpt_getscriptid(lua_State* l)
|
|||||||
luaL_error(l, "Invalid ID format.");
|
luaL_error(l, "Invalid ID format.");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
if(!confirm_ui(vid_buf,"Do you want to install script?",id,"Install"))
|
||||||
|
return 0;
|
||||||
|
|
||||||
port = 10457;
|
port = 10457;
|
||||||
sock = socket(AF_INET, SOCK_STREAM, 0);
|
sock = socket(AF_INET, SOCK_STREAM, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user