146 void arsalang(
const char* src_name);
172 bool psd(
const char* filename,
bool clear =
true,
bool cache =
true,
bool snd =
true);
195 bool openloading(
const char* filename,
bool only_psd =
true);
213 void textarea(
const char* layername,
const char* areaname,
const char*
string,
int r = 255,
int g = 255,
int b = 255,
int a = 255);
226 void textareafont(
const char* layername,
const char* areaname,
const char* fontname,
const char*
string,
int r = 255,
int g = 255,
int b = 255,
int a = 255);
237 void textlayer(
const char* layername,
const char*
string,
int r = 255,
int g = 255,
int b = 255,
int a = 255);
249 void textlayerfont(
const char* layername,
const char* fontname,
const char*
string,
int r = 255,
int g = 255,
int b = 255,
int a = 255);
257 void text(
int x,
int y,
const char*
string);
285 void text(
int x,
int y,
const char*
string,
int r,
int g,
int b,
int a);
295 void text(
const char* fontname,
int fontsize,
int x,
int y,
const char*
string);
310 void text(
const char* fontname,
int fontsize,
int x,
int y,
const char*
string,
int r,
int g,
int b,
int a);
339 void int(
const char* name,
int value);
347 void gint(
const char* name,
int value);
356 void lint(
const char* name,
int value);
380 void float(
const char* name,
float value);
388 void gfloat(
const char* name,
float value);
396 void lfloat(
const char* name,
float value);
420 void string(
const char* name,
const char* value);
428 void gstring(
const char* name,
const char* value);
436 void lstring(
const char* name,
const char* value);
480 void struct(
const char* name,
const char* element, ...);
488 void gstruct(
const char* name,
int value);
495 void set(
const char* name,
const char* value);
502 void setstring(
const char* name,
const char* value);
509 void add(
const char* name,
const char* value);
516 void addstring(
const char* name,
const char* value);
523 void sub(
const char* name,
const char* value);
530 void mul(
const char* name,
const char* value);
537 void div(
const char* name,
const char* value);
544 void mod(
const char* name,
const char* value);
551 void _sin(
const char* name,
const char* value);
558 void _cos(
const char* name,
const char* value);
569 if(test_expr)
void*
function;
583 ifcount (
const char* name, test_expr,
int count )
void*
function;
597 iftime(
const char* name, test_expr,
int delay)
void*
function;
603 void ifreset(
const char* name =
"");
616 void function(
const char* name);
630 void procedure(
void* function1 >>
void* function2 >> ... >>
void* functionN );
633 void proc(
void* function1 >>
void* function2 >> ... >>
void* functionN);
645 ifelse(test_expr,
void* function1,
void* function2);
664 for(init_expr; test_expr; increment_expr)
void*
function;
677 while(test_expr)
void*
function;
709 int random(
int min,
int max);
761 void msgbox(
const char* msg);
774 void alog(
const char* msg );
816 bool touch(
const char* state);
826 void touch(
const char* state,
void*
function);
837 bool touch(
const char* state,
const char* layername);
853 void touch(
const char* state,
const char* layername,
void*
function);
905 bool touchid(
int touch_id,
const char* state);
916 void touchid(
int touch_id,
const char* state,
void*
function);
928 bool touchid(
int touch_id,
const char* state,
const char* layername);
940 void touchid(
int touch_id,
const char* state,
const char* layername,
void*
function);
949 bool strstr(
const char*
string,
const char* keyword);
982 const char*
strtok(
const char*
string,
const char* token =
"");
1019 void winsize(
int width,
int height);
1053 float getzrot(
float x1,
float y1,
float x2,
float y2);
1130 void drawonce(
bool clear =
false,
bool updateall =
false );
1145 bool url(
const char*
url,
bool webapp =
false ,
bool use_webbrowser =
true);
1174 bool sharefile(
const char* mailto,
const char* subject,
const char* msg,
const char* filename);
1194 bool sharescreenshot(
const char* mailto,
const char* subject,
const char* msg);
1214 bool isset(
const char* var );
1228 bool isint(
const char* var);
1235 bool isfloat(
const char* var);
1249 bool isspace(
const char* var);
1274 bool pickup(
const char* state,
const char* layername);
1304 const char*
scanvar(
const char* str);
1332 const char*
md5(
const char* filename_or_string);
1339 const char*
sha256(
const char* filename_or_string);
1395 int clamp(
int value,
int min,
int max);
1401 float clamp(
float value,
float min,
float max);
1407 int lerp(
int a,
int b,
float t);
1413 float lerp(
float a,
float b,
float t);
1428 void delay(
int millisec );
1463 const char*
strftime(
const char* format);
1471 const char*
strcmp(
const char* str1,
const char* str2);
1479 const char*
getfilebasename(
const char* filename,
bool keep_extension =
true );
1493 const char*
getfiledir(
const char* filename);
1505 bool permission(
const char* permission_name,
bool require =
true );
1571 bool _or(test_expr, ...);
1582 bool _and(test_expr, ...);
1588 void maxsize(
int left,
int top,
int right,
int bottom);
1628 void screensize(
int width,
int height,
bool upscale =
false);
1708 const char*
getthaipromptpay(
const char* thaiid_or_mobile,
const char* value);
1728 int gettextlayerx(
const char* layername,
const char*
string);
1736 int gettextlayery(
const char* layername,
const char*
string);
1745 void gettextlayerfontx(
const char* layername,
const char* fontname,
const char*
string);
1754 void gettextlayerfonty(
const char* layername,
const char* fontname,
const char*
string);
bool isnumber(const char *var)
Determine if a variable is a number both int or float.
void clearqueuerender()
clear queue rendering both psd and font.
bool permission(const char *permission_name, bool require=true)
checking permission on mobile devices only.
void lfloat(const char *name, float value)
define low variable as float
void textlayer(const char *layername, const char *string, int r=255, int g=255, int b=255, int a=255)
display text follow layer position and attribute (build-in font is default)
void gettextlayerfonty(const char *layername, const char *fontname, const char *string)
get y position of text with custom font follow layer position and attribute.
void procedure(void *function1 >> void *function2 >> ... >> void *functionN)
procedure, a single line of commands that together perform a task
void textareafont(const char *layername, const char *areaname, const char *fontname, const char *string, int r=255, int g=255, int b=255, int a=255)
display text in area with custom font follow layer position and attribute.
bool sharefile(const char *mailto, const char *subject, const char *msg, const char *filename)
share text and file
void setscreentexturesize(int width, int height)
bool ispsdfile(const char *filename)
checking is psd file
bool isint(const char *var)
Determine if a variable is an int.
void maxsize(int left, int top, int right, int bottom)
maximum scene size
const char * getscreenshotname()
get a random name of screenshot
void updatescreentoucharea()
void setportrait()
set portrait mode call before screensize()
void add(const char *name, const char *value)
add value on variable
int getwinsizeheight()
get height on windows size Emulator only!!!
int getsizeupscaleheight(int ow, int oh, int maxw, int maxh)
get a new size upscale in height, calculate from original and max size.
int getcurrentfps()
get current fps
float getdpix()
get screen dpi x
float getdpiy()
get screen dpi y
void textlayerfont(const char *layername, const char *fontname, const char *string, int r=255, int g=255, int b=255, int a=255)
display text with custom font follow layer position and attribute.
void lint(const char *name, int value)
iftime(const char *name, test_expr, int delay) void *function
An if statement with time delay in millisecond. reset call ifreset()
void setdebug(int debug)
set debug mode
float getdeltatime()
get delta time
bool url(const char *url, bool webapp=false, bool use_webbrowser=true)
open url
int gettextlayery(const char *layername, const char *string)
get y position of text follow layer position and attribute (build-in font is default)
int getmaxsizestartx()
get start point on x axis in maximum scene
void ifreset(const char *name="")
reset ifcount() and iftime(), maybe call in deinit function.
float getaccx()
get accelerometer x
const char * base64decode(const char *str)
base64 decode
int getscreentexturesizewidth()
get width on texture screensize
void _sin(const char *name, const char *value)
_sin value on variable
void voicestop()
stop voice recording.
int getgamefps()
get game fps
bool sharescreenshot(const char *mailto, const char *subject, const char *msg)
share current screenshot
const char * savescreenshot(bool silent=false)
save current screenshot to jpg format
void exit()
exit application
ifelse(test_expr, void *function1, void *function2)
if else condition
void gstruct(const char *name, int value)
define global structure
float getdpid()
get screen dpi density
bool voicestart(const char *savefilename)
start voice recording and removing savefilename from audio system before recording.
void psdrenderall()
adding all layers in current psd file to queue rendering.
const char * random_guid(bool with_letter=false)
get random GUID number
int getmaxsizestarty()
get start point on y axis in maximum scene
const char * getuuid()
get device UUID
void clear()
free current psd file
void textalign(int align)
set text alignment, !!!call this before draw text function!!!
void sub(const char *name, const char *value)
subtract value on variable
void textarea(const char *layername, const char *areaname, const char *string, int r=255, int g=255, int b=255, int a=255)
display text in area follow layer position and attribute (build-in font is default)
const char * getpsdfilename()
void setgamefps(int fps)
set game fps, default: 60
int getwinsizewidth()
get width on windows size Emulator only!!!
void setscreenupscale(bool active)
set screen to upscale
void text(int x, int y, const char *string)
display text on screen by build-in font
bool openloading(const char *filename, bool only_psd=true)
show loading screen when load psd file
void setstring(const char *name, const char *value)
set string on variable, don't skip space
void delay(int millisec)
delay cpu circle in milli second
bool strstr(const char *string, const char *keyword)
search string, case sensitive
bool _and(test_expr,...)
AND operation with if statement consists of a boolean expression followed by one or more statements.
const char * random_string_custom(int len, const char *string_custom)
get random string with custom string
const char * openfile()
openfile dialog.
int getmaxsizewidth()
get width on maximum scene
bool _or(test_expr,...)
OR operation with if statement consists of a boolean expression followed by one or more statements.
bool psd(const char *filename, bool clear=true, bool cache=true, bool snd=true)
load a new psd file
void alog(const char *msg)
log message, a msg is showing on log window
const char * urldecode(const char *str)
url decode
int getsizeupscalewidth(int ow, int oh, int maxw, int maxh)
get a new size upscale in width, calculate from original and max size.
void mod(const char *name, const char *value)
mod value on variable
void setbgcolor(int r, int g, int b, int a)
set background color
const char * getfileextension(const char *filename)
get extension from from full path.
void winsize(int width, int height)
windows size, Emulator only!!!
int lerp(int a, int b, float t)
lerp value as int, Computes the linear interpolation between a and b, if the parameter t is inside [0...
const char * strftime(const char *format)
Get time format.
void string(const char *name, const char *value)
define local variable as string
const char * getversion()
get version of ARSA Framework in a string format.
bool isset(const char *var)
Determine if a variable is considered set, this means if a variable is declared and is different than...
bool isspace(const char *var)
Determine if a variable is a whitespace.
bool isstring(const char *var)
Determine if a variable is a string.
int touchmax()
get touch maximum id.
bool isscreenupscale()
is screen upscale
const char * strcmp(const char *str1, const char *str2)
The strcmp() compares two strings character by character. If the strings are equal,...
const char * getpushfile()
void setlandscape()
set landscape mode, call before screensize()
const char * getfilebasename(const char *filename, bool keep_extension=true)
get filename from full path.
void gstring(const char *name, const char *value)
define global variable as string
const char * sha256(const char *filename_or_string)
get sha256
const char * getwritepath(const char *filename)
get write path with filename and extension
int getorient()
get current screen orientation
const char * getfiledir(const char *filename)
get directory from from full path.
int getscreensizeheight()
get height on screensize
int clamp(int value, int min, int max)
clamp value as int
void div(const char *name, const char *value)
divide value on variable
const char * getuserstring()
get user string
bool phonecall(const char *number)
phone call
void set(const char *name, const char *value)
set value on variable
const char * urlencode(const char *str)
url encode
float getaccy()
get accelerometer y
void _cos(const char *name, const char *value)
_cos value on variable
void addstring(const char *name, const char *value)
string cat, don't skip space
const char * md5(const char *filename_or_string)
get md5
void int(const char *name, int value)
define local variable as integer
void drawonce(bool clear=false, bool updateall=false)
drawing screen immediately!
bool touch(const char *state)
query touch state
void gint(const char *name, int value)
define global variable as integer
const char * random_string(int len)
get random string in lenght
const char * scanvar(const char *str)
scan string variable and math replacement
const char * getpsdfilenameprevious()
const char * version()
get version of thrid party libs in a string format.
const char * pickupgetlayername()
get layername from user pickup layer.
bool pickup(const char *state, const char *layername)
pickup on layername by state condition.
void setuserstring(const char *str)
set user string
void screensize(int width, int height, bool upscale=false)
int random()
get random number
const char * base64encode(const char *str)
base64 encode
void msgbox(const char *msg)
show message box
void arsalang(const char *src_name)
load external code, !!!use in Photoshop layer only!!!
int getmaxsizeheight()
get height on maximum scene
int getscreensizewidth()
get width on screensize
long gettime()
get virtual time
void proc(void *function1 >> void *function2 >> ... >> void *functionN)
short version of procedure().
void lstring(const char *name, const char *value)
define low variable as string
void touchclear()
touch clear buffer.
ifcount(const char *name, test_expr, int count) void *function
An if statement with count. reset call ifreset()
const char * getclipboard()
Get UTF-8 text from the clipboard.
int isdebug()
query this psd is on debug mode
void setclipboard(const char *text)
Put UTF-8 text into the clipboard.
const char * getredeemcode()
get current redeem code
float getzrot(float x1, float y1, float x2, float y2)
get z rotation between vector2d(x1,y1) and vector2d(x2,y2)
int gettextlayerx(const char *layername, const char *string)
get x position of text follow layer position and attribute (build-in font is default)
int getscreentexturesizeheight()
get height on texture screensize
const char * getgps()
get a gps location
long getrealtime()
get real time
void pickupclear()
clear pickup buffer.
bool touchid(int touch_id, const char *state)
query touch state by id
float getaccz()
get accelerometer z
bool isfloat(const char *var)
Determine if a variable is a float.
void float(const char *name, float value)
define local variable as float
void closeloading()
close loading screen when load psd file
const char * getpackage()
get application package
const char * strtok(const char *string, const char *token="")
Split string into tokens, DON'T USE ',' (comma) as token
const char * getplatform()
get current patform using.
const char * getthaipromptpay(const char *thaiid_or_mobile, const char *value)
get thai promptpay string
void gfloat(const char *name, float value)
define global variable as float
void gettextlayerfontx(const char *layername, const char *fontname, const char *string)
get x position of text with custom font follow layer position and attribute.
void mul(const char *name, const char *value)
multiply value on variable