openprograms / gopher-programs Goto Github PK
View Code? Open in Web Editor NEWGopher's programs, most notably GML, his gui library project.
Gopher's programs, most notably GML, his gui library project.
В программе есть конструкция while true do end
, которая отвечает за события в GML. Каким образом можно добавить туда callback, который мог бы исполняться по типу:
local gui = gml.create()
gui:onTimer(function() end)
Я пытался сделать это, добавляя в методах gml callback, но это не сильно помогло.
Зачем это нужно? У меня есть приложение, которое каждые 5 секунд должен выполнять modem.broadcast и обновлять значения экрана, после получения ответа. Я не хочу создавать ещё один бесконечный цикл в приложении, так как он может, наверное, вызвать некорректное поведение в gml.
Someone may want to include GML with their program, but they can't if it doesn't have a license. The DWTFYW license described in the README seems to only apply to gitrepo
, not GML; if it applies to both, that should be made more clear.a
Probably a bad title.
I tried a bunch of things to make a constantly-updating display (update displayed information every x) but it doesn't seem possible with the way things are done.
I tried adding a call in the main while loop but it pauses to wait for events, so that idea's out.
Am I completely looking past something? Or is there anything you can think of?
In the beginning of gmltest you explicitly require package. You shouldn't need to do this, since package should be available by default. Removing the line saves some RAM ;)
on line 430, seems like it's reading outside the screen somehow, not sure why.
Also, of course, styles on 1bit are making almost everything white on white. Add depth 1 styles.
anywhere text is on a light gray background, should be black text, not white.
While at it, add single line outline as unfocused border style.
if defaultStyle unset in gml.create, try to load again. If that fails, error and report it couldn't be found rather than crashing gracelessly
This is a truly amazing project. I noticed when running the gmltest program on the latest build of OpenComputers for Minecraft 1.7.10, the scrollbar is misaligned on the side of the listbox.
Environment:
OC 1.5.17.33
MC 1.7.10
Forge 10.13.4.1448
I just downloaded this I have no idea how to install it. I tried running the gmltest.lua in minecraft but it returns "attempt to index local 'gml' (a boolean value)"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.