Open Hero9909 opened 5 years ago
I've never used that gui lib. it is probably an easy setup, but can you give me a very specific repro (even with ocvm params you use to start it, starting from a brand new vm) steps you take to copy the lib files, and start the os, just all the steps :) I don't want to spend time figuring out their lib nor doing something differently
local GUI = require("GUI")
--------------------------------------------------------------------------------
local application = GUI.application()
application:addChild(GUI.panel(1, 1, application.width, application.height, 0x2D2D2D))
-- Add menu object to application
local menu = application:addChild(GUI.menu(1, 1, application.width, 0xEEEEEE, 0x666666, 0x3366CC, 0xFFFFFF))
-- Add first item with black color. Attack a callback-function to it
menu:addItem("MineCode IDE", 0x0).onTouch = function()
GUI.alert("Hello world!")
end
-- Add context menu and few items to it
local contextMenu = menu:addContextMenu("File")
contextMenu:addItem("New")
contextMenu:addItem("Open").onTouch = function()
GUI.alert("Open item was pressed")
end
contextMenu:addSeparator()
contextMenu:addItem("Save")
contextMenu:addItem("Save as")
-- Add whatever you want
menu:addItem("Edit")
menu:addItem("View")
menu:addItem("About") --------------------------------------------------------------------------------
application:draw(true)
application:start()
If i try to install the GUI Lib the installation hangs and uses 100% of one core.
no error is thrown, might be relatet to emulation of OCEmu as the install works there after a few secs but drawing is much slower than an installtion in minecraft. got about 3 fps