-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelp.php
More file actions
188 lines (167 loc) · 7.8 KB
/
help.php
File metadata and controls
188 lines (167 loc) · 7.8 KB
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<html lang="en" encoding="UTF-8">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>MagmaMc - Help</title>
<meta name="author" content="MagmaMc">
<meta name="description" content="Docs">
<meta name="keywords" content="docs, help">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="🌐 MagmaMc - pgzero online">
<meta name="twitter:description" content="Runs python code online">
<meta name="twitter:site" content="@SMLkaiellis">
<meta name="twitter:creator" content="@SMLkaiellis">
<meta name="twitter:image" content="./logo.gif">
<meta property="og:title" content="🌐 MagmaMc - Help">
<meta property="og:description" content="Docs">
<meta property="og:url" content="http://magma-mc.net/">
<meta property="og:site_name" content="magma-mc.net">
<meta property="og:type" content="website">
<meta content="#306998" data-react-helmet="true" name="theme-color">
<meta property="og:image" content="./logo.gif">
<meta content="image/gif" property="og:image:type">
<meta property="fb:app_id" content="100075697834863">
<meta http-equiv="Cache-control" content="no-cache">
<!-- Import -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.1/css/all.css" integrity="sha384-O8whS3fhG2OnA5Kas0Y9l3cfpmYjapjI0E4theH4iuMD+pLhbf6JI0jIMfYcK3yZ" crossorigin="anonymous">
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js" type="text/javascript"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<script src="./Base/main.js" type="text/javascript"></script>
<link rel="stylesheet" href="./Assets/css.css">
<link rel="stylesheet" href="./Assets/css/atom-one-dark.css">
<script src="./Assets/js/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
</head>
<script>
function locate() {
if (Cookies.get('LastOpen') === undefined) {
return '../Projects.php';
} else {
return '../?ID='+Cookies.get(`LastOpen`);
}
}
</script>
<body style="background: #1c1c1c; color: white;">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand">magma-mc.net</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-item nav-link " onclick="window.parent.location.href = locate()">Home</a>
<a class="nav-item nav-link active">Docs</a>
<a class="nav-item nav-link" onclick="window.parent.location.href = locate()">Your Projects</a>
</div>
</div>
</nav>
<div>
<header style="text-align: center">
<h1>Pygame Zero</h1>
</header>
</div>
<div>
<div class="col-xs-1">
<h2>Modules</h2>
<ul>
<div id="pygame">
<li>
<h5>Pygame</h5>
</li>
</div>
<div id="pgzero">
<li>
<h5>pgzero</h5>
</li>
</div>
<div id="json">
<li>
<h5>json</h5>
</li>
<pre>
<code class="language-plaintext">please note that json values can not be saved as int/float
</code>
</pre>
</div>
<div id="Custom_Modules">
<h3>Custom Modules</h3>
<div id="Cookies">
<li>
<h5>Cookies</h5>
</li>
<pre>
<code class="language-python"># Example of Cookies
import Cookies # Please note that Cookies will only change after reload
if Cookies.exists('hello') == False:
Cookies.set('hello', 'world')
else:
print(Cookies.get('hello'))
</code>
</pre>
</div>
<div id="JsForPy">
<li>
<h5>JsForPy</h5>
</li>
<pre>
<code class="language-python"># Example of JsForPy
import JsForPy as js
# Console
js.console.log("Hello There")
js.console.error("Error Message")
js.console.warn("Warn Message")
js.console.info("Info Message")
# Window
js.alert("Hello World")
js.prompt("Hello World")
js.location.href('Url')
</code>
</pre>
</div>
<div id="Filez">
<li>
<h5>filez</h5>
</li>
<p>Filez is used to save, read and scan files from the Projects Directory.</p>
<pre>
<code class="language-python"># Example of filez Read
import filez
file = filez.fread('AFolder/AFile.txt')
print(file)
</code>
</pre>
<pre>
<code class="language-python"># Example of filez Write
import filez
def Write(file, text):
filez.fwrite('Afolder/'+file, text, "c")
Write('FileA.txt', 'Hello')
Write('FileB.txt', 'There')
file = filez.fread('AFolder/FileA.txt')
file2 = filez.fread('AFolder/FileB.txt')
print(file, file2) # Prints hello There
</code>
</pre>
<pre>
<code class="language-python"># Example of filez Scan
import filez
folder = filez.scan('Afolder/')
for file in folder:
print(filez.read('Afolder/'+file))
</code>
</pre>
</div>
</div>
</ul>
</div>
<div class="col-xs-1">
<h2>Owners</h2>
<p>OwnersList is located in the base directory of the project.</p>
<p>To add people to the OwnersList (gives permission to edit and download the project) open the file called ownersList.ini and add their UserID to the list.</p>
<p>To make your project editible by anyone add the Word <mark>Global</mark> to ownersList file.</p>
</div>
</div>
</body>
</html>