Bedrock - The Complete GUI Framework
#21
Posted 24 July 2014 - 04:31 AM
#22
#23
Posted 27 July 2014 - 09:57 PM
Anyway, I have a question about how it works. To make the program run, you supply a function to program:Run()
#24
Posted 28 July 2014 - 12:50 AM
InputUsername, on 27 July 2014 - 09:57 PM, said:
Anyway, I have a question about how it works. To make the program run, you supply a function to program:Run()
#25
Posted 10 August 2014 - 07:16 PM
Example: I have main.view and asdf.view, I made a button in main.view that has the function to take me to asdf.view and then in asdf.view I made a button that takes me back to main.view, but then the buttons and stuffs from main.view work. How do I make them work again without having to code over and over the things?
Also this: Is it fine if I use Bedrock on a public program?
#26
Posted 10 August 2014 - 09:50 PM
Win7yes, on 10 August 2014 - 07:16 PM, said:
Example: I have main.view and asdf.view, I made a button in main.view that has the function to take me to asdf.view and then in asdf.view I made a button that takes me back to main.view, but then the buttons and stuffs from main.view work. How do I make them work again without having to code over and over the things?
Also this: Is it fine if I use Bedrock on a public program?
You can add the function OnViewLoad, using it like this:
bedrock.OnViewLoad = function(name)
--name is the name of the view, e.g. main
-- bind your buttons here, etc
end
And yes, you're most welcome to use it on a public program.
#27
Posted 10 August 2014 - 10:29 PM
bedrock.OnViewLoad = function("main")
program:GetObject("Button1").OnClick = function(self, event, x, y
--I'm missing the "side" argument right?
-- Whatever the button does
end
--Moar Buttonz Stuff
end
It would Re-configurate the buttons?Is that what I need to do?
PS: The indentation (Or whatever you write it like, I don't remember now) is bad because I can't press "TAB" on the "Input your code here" window to create the tags.
Edit: I think I fixed it. (The indentation)
Edited by Win7yes, 10 August 2014 - 11:08 PM.
#28
Posted 11 August 2014 - 12:29 AM
Win7yes, on 10 August 2014 - 10:29 PM, said:
bedrock.OnViewLoad = function("main")
program:GetObject("Button1").OnClick = function(self, event, x, y
--I'm missing the "side" argument right?
-- Whatever the button does
end
--Moar Buttonz Stuff
end
It would Re-configurate the buttons?Is that what I need to do?
PS: The indentation (Or whatever you write it like, I don't remember now) is bad because I can't press "TAB" on the "Input your code here" window to create the tags.
Edit: I think I fixed it. (The indentation)
#29
Posted 12 August 2014 - 04:19 PM
Win7yes, on 10 August 2014 - 10:29 PM, said:
bedrock.OnViewLoad = function("main")
program:GetObject("Button1").OnClick = function(self, event, x, y
--I'm missing the "side" argument right?
-- Whatever the button does
end
--Moar Buttonz Stuff
end
It would Re-configurate the buttons?Is that what I need to do?
PS: The indentation (Or whatever you write it like, I don't remember now) is bad because I can't press "TAB" on the "Input your code here" window to create the tags.
Edit: I think I fixed it. (The indentation)
I think you mean:
bedrock.OnViewLoad = function(loadedView)
if (loadedView == "main") then
--init button
end
end
#30
Posted 12 August 2014 - 10:03 PM
InputUsername, on 12 August 2014 - 04:19 PM, said:
Win7yes, on 10 August 2014 - 10:29 PM, said:
bedrock.OnViewLoad = function("main")
program:GetObject("Button1").OnClick = function(self, event, x, y
--I'm missing the "side" argument right?
-- Whatever the button does
end
--Moar Buttonz Stuff
end
It would Re-configurate the buttons?Is that what I need to do?
PS: The indentation (Or whatever you write it like, I don't remember now) is bad because I can't press "TAB" on the "Input your code here" window to create the tags.
Edit: I think I fixed it. (The indentation)
I think you mean:
bedrock.OnViewLoad = function(loadedView) if (loadedView == "main") then --init button end end
Indeed, don't know why I wrote that.
#31
Posted 13 August 2014 - 02:12 AM
InputUsername, on 12 August 2014 - 04:19 PM, said:
Win7yes, on 10 August 2014 - 10:29 PM, said:
bedrock.OnViewLoad = function("main")
program:GetObject("Button1").OnClick = function(self, event, x, y
--I'm missing the "side" argument right?
-- Whatever the button does
end
--Moar Buttonz Stuff
end
It would Re-configurate the buttons?Is that what I need to do?
PS: The indentation (Or whatever you write it like, I don't remember now) is bad because I can't press "TAB" on the "Input your code here" window to create the tags.
Edit: I think I fixed it. (The indentation)
I think you mean:
bedrock.OnViewLoad = function(loadedView) if (loadedView == "main") then --init button end end
bedrock.OnViewLoad = function(loadedView) if loadedView == "main" then --init button end endLua doesn't do ()s around if statements.
#33
Posted 25 August 2014 - 09:47 PM
Sorry for the delay. Stuff happend and I wasn't able to code.
#34
Posted 27 August 2014 - 02:19 AM
#35
Posted 14 September 2014 - 06:33 PM
Dont ask.
#36
Posted 14 September 2014 - 09:53 PM
ashnwill, on 27 August 2014 - 02:19 AM, said:
Sorry for the late reply, I haven't been getting notifications for this topic for some reason.
You can use it in whatever you want, OneOS just happens to be built with it.
#37
Posted 29 September 2014 - 06:11 AM
#38
Posted 29 September 2014 - 06:41 AM
Starstruck_Studios, on 29 September 2014 - 06:11 AM, said:
I might upload a ZIP of OneOS though, people seem to be having issues.
#39
Posted 29 September 2014 - 06:55 AM
oeed, on 29 September 2014 - 06:41 AM, said:
Starstruck_Studios, on 29 September 2014 - 06:11 AM, said:
I might upload a ZIP of OneOS though, people seem to be having issues.
I got OneOS working.
I used the actual Minecraft Mod, not CCEmu.
(and I'm using CC on FTB Monster)
#40
Posted 20 February 2015 - 09:24 PM
(Note to self: Stay away from Bedrock; too hard to understand)
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











