1
0

FLOOR,IF THEN @LABEL,ボタン入力を実�

This commit is contained in:
otya128
2015-08-20 16:13:27 +09:00
parent e02fd58838
commit 86eee04de3
4 changed files with 69 additions and 22 deletions

View File

@@ -108,7 +108,7 @@ class BuiltinFunction
}
static int BUTTON(PetitComputer p, DefaultValue!(int, false) mode)
{
return 0;
return p.button;
}
static void VISIBLE(PetitComputer p, DefaultValue!(int) console, DefaultValue!(int) graphic, DefaultValue!(int) BG, DefaultValue!(int) sprite)
{
@@ -192,6 +192,10 @@ class BuiltinFunction
double val = str.to!double;
return val;
}
static double FLOOR(double val)
{
return val.floor;
}
static wstring MID(wstring str, int i, int len)
{
//挙動未定