-
Notifications
You must be signed in to change notification settings - Fork 0
/
rus.mbm
132 lines (110 loc) · 3.9 KB
/
rus.mbm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
// ==================JsMobileBasic Library================= *
var MB_RUS = {
name: 'Руссификатор для JsMobileBasic',
author: 'PROPHESSOR',
version: '1.0',
description: 'Библиотека руссификации для JsMobileBasic',
url: 'http://prophessor.16mb.com'
}
// ==================JsMobileBasic Library================= *
//=== Константы ===//
const ПИ = PI;
//=== Операторы ===//
//Графические
очиститьЭкран = cls;
задатьЦвет = setColor;
задатьТолщинуЛиний = setLineWidth;
залитьКвадрат = fillRect;
рисоватьКвадрат = drawRect;
залитьЭкран = fillScreen;
стеретьОбласть = clearRect;
рисоватьЛинию = drawLine;
рисоватьОкружность = drawArc;
рисоватьТочку = drawPlot;
залитьОкружность = fillArc;
загрузитьГель = gelLoad;
рисоватьГель = drawGel;
рисоватьТекст = drawString;
задатьРазмерШрифта = setFontSize;
задатьШрифт = setFont;
рисовать4Угольник = drawRect4;
залить4Угольник = fillRect4;
рисоватьТреугольник = drawTriangle;
залитьТреугольник = fillTriangle;
линейныйГрадиент = makeLinearGradient;
радиальныйГрадиент = makeRadialGradient;
текстура = makeTexture;
вывести = println;
ввести = input;
дебаг = отладка = debug;
лог = log;
выход = exit;
игратьЗвук = playSound;
остановитьЗвук = pauseSound;
//Math
корень = sqrt;
модуль = abs;
рандом = random;
синус = sin;
косинус = cos;
тангенс = tan;
котангенс = ctg;
арксинус = asin;
арккосинус = acos;
арктангенс = atan;
остаток = mod;
логарифм = log;
експонента = exp;
степень = pow;
ограничить = limit;
минимум = min;
максимум = max;
радианы = rad;
градусы = deg;
//Строки
длина = len;
вСтроку = str;
вЧисло = val;
верхнийРегистр = upper;
нижнийРегистр = lower;
вырезать = mid;
символ = chr;
кодСимвола = asc;
разбить = split;
заменить = replace;
вДробь = float;
//System
подключить = include;
//Значения
ширинаЭкрана = screenWidth;
высотаЭкрана = screenHeight;
получитьХмыши = getMouseX;
получитьУмыши = getMouseY;
получитьКоличествоКликов = getLeftClicksCount;
получитьКоличествоПравыхКликов = getRightClicksCount;
получитьИмяМодуля = getModuleName;
получитьАвтораМодуля = getModuleAuthor;
получитьОписаниеМодуля = getModuleDescription;
получитьСтраницуМодуля = getModuleUrl;
получитьВерсиюМодуля = getModuleVersion;
//Интерфейс
менюДобавить = menuAdd;
менюДобавитьРазделитель = menuAddSeparator;
менюБарДобавить = menuBarAdd;
менюОтобразить = menuShow;
менюБарОтобразить = menuBarShow;
менюТрейДобавить = menuTrayAdd;
буферОбмена = getClipboard;
задатьБуферОбмена = setClipboard;
очиститьБуферОбмена = clearClipboard;
//Файлы
/*
сохранитьДанные = saveData;
загрузитьДанные = readData;
локальноСохранитьДанные = localSaveData;
локальноЗагрузитьДанные = localReadData;
выполнить = exec;
выполнитьФайл = execFile;
*/
полныйЭкран = fullScreen;
console.info('Руссификатор операторов загружен!');