comparison multipaint.pde @ 216:d3eba28c26e5

Some launcher / UI improvements.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 04 Sep 2018 15:29:10 +0300
parents b3579297e04e
children 9b715f7489b2
comparison
equal deleted inserted replaced
215:280d95196265 216:d3eba28c26e5
112 g_forced_width = mpUIForcedWidth > 0 ? mpUIForcedWidth : 0; 112 g_forced_width = mpUIForcedWidth > 0 ? mpUIForcedWidth : 0;
113 g_forced_height = mpUIForcedHeight > 0 ? mpUIForcedHeight : 0; 113 g_forced_height = mpUIForcedHeight > 0 ? mpUIForcedHeight : 0;
114 g_forced_palette = mpUIPalette ? mpUIPalette : ""; 114 g_forced_palette = mpUIPalette ? mpUIPalette : "";
115 g_animspeed = 1; 115 g_animspeed = 1;
116 116
117 mpHideGUI();
118
117 //normi 119 //normi
118 g_magpix[0] = 3; 120 g_magpix[0] = 3;
119 g_magpix[1] = 8; 121 g_magpix[1] = 8;
120 g_magpix[2] = 16; 122 g_magpix[2] = 16;
121 g_magpiy[0] = 3; 123 g_magpiy[0] = 3;
280 makecolor(262, 0, 0, 255); 282 makecolor(262, 0, 0, 255);
281 makecolor(263, 48, 48, 48); //backest UI background 283 makecolor(263, 48, 48, 48); //backest UI background
282 284
283 } 285 }
284 286
287
288 function mpDisplayGUI()
289 {
290 var velem = stGE("mpUI");
291 if (velem)
292 {
293 stClearChildren(velem);
294 velem.style.display = "block";
295 velem.style.background = "red";
296 velem.focus();
297 }
298 return velem;
299 }
300
301
302 function mpHideGUI()
303 {
304 var velem = stGE("mpUI");
305 if (velem)
306 {
307 velem.style.display = "none";
308 stClearChildren(velem);
309 }
310 return velem;
311 }
312
313
285 void mpSetTitle(String str) 314 void mpSetTitle(String str)
286 { 315 {
287 console.log("TITLE: '" + str + "'"); 316 console.log("TITLE: '" + str + "'");
288 } 317 }
289 318