Jump to content




Bedrock - The Complete GUI Framework


60 replies to this topic

#21 hbomb79

  • Members
  • 352 posts
  • LocationOrewa, New Zealand

Posted 24 July 2014 - 04:31 AM

This looks like it would be very helpful, Good job, You ever fail to produce amazing work.. If only I had the knowledge to use it :)

#22 Win7yes

  • Members
  • 110 posts

Posted 24 July 2014 - 06:42 AM

View Postoeed, on 24 July 2014 - 04:14 AM, said:

View PostWin7yes, on 24 July 2014 - 01:22 AM, said:

Is it ok if I put the files in a ZIP and upload the ZIP somewhere? (Somewhere like Google Drive. Or to be more specific, Google Drive)
Yea sure, I'd just like to see if I can figure out what the issue is.
Ok. Check your messages, I will send you a link to the ZIP file (Probably)

#23 InputUsername

  • Members
  • 231 posts
  • LocationThe Netherlands

Posted 27 July 2014 - 09:57 PM

First of all, this is great! Not sure if I'll be using it though... Might play around with it for a while.

Anyway, I have a question about how it works. To make the program run, you supply a function to program:Run()
Spoiler
so I was wondering if this function is run only once or every time the program loops? Looking at the source I suppose it only runs the code you supply once, is that true?

#24 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 28 July 2014 - 12:50 AM

View PostInputUsername, on 27 July 2014 - 09:57 PM, said:

First of all, this is great! Not sure if I'll be using it though... Might play around with it for a while.

Anyway, I have a question about how it works. To make the program run, you supply a function to program:Run()
Spoiler
so I was wondering if this function is run only once or every time the program loops? Looking at the source I suppose it only runs the code you supply once, is that true?
Yes it only runs once. You can handle events yourself though.

#25 Win7yes

  • Members
  • 110 posts

Posted 10 August 2014 - 07:16 PM

Oeed if I make a program with different "Pages" and I want to go back to the main one, how do I... Well, make the things from the main page work again?
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 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 10 August 2014 - 09:50 PM

View PostWin7yes, on 10 August 2014 - 07:16 PM, said:

Oeed if I make a program with different "Pages" and I want to go back to the main one, how do I... Well, make the things from the main page work again?
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 Win7yes

  • Members
  • 110 posts

Posted 10 August 2014 - 10:29 PM

So if I do
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 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 11 August 2014 - 12:29 AM

View PostWin7yes, on 10 August 2014 - 10:29 PM, said:

So if I do
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)
Pretty much, that looks like it should work.

#29 InputUsername

  • Members
  • 231 posts
  • LocationThe Netherlands

Posted 12 August 2014 - 04:19 PM

View PostWin7yes, on 10 August 2014 - 10:29 PM, said:

So if I do
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 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 12 August 2014 - 10:03 PM

View PostInputUsername, on 12 August 2014 - 04:19 PM, said:

View PostWin7yes, on 10 August 2014 - 10:29 PM, said:

So if I do
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 Win7yes

  • Members
  • 110 posts

Posted 13 August 2014 - 02:12 AM

View PostInputUsername, on 12 August 2014 - 04:19 PM, said:

View PostWin7yes, on 10 August 2014 - 10:29 PM, said:

So if I do
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
end
Lua doesn't do ()s around if statements.

#32 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 13 August 2014 - 02:21 AM

View PostWin7yes, on 13 August 2014 - 02:12 AM, said:

-snip
Lua doesn't do ()s around if statements.
It doesn't require them, but it will accept them. Sort of like semicolons ( ; )

Edited by KingofGamesYami, 13 August 2014 - 02:21 AM.


#33 Win7yes

  • Members
  • 110 posts

Posted 25 August 2014 - 09:47 PM

Well I just tried that and it doesn't even set the buttons up.
Sorry for the delay. Stuff happend and I wasn't able to code.

#34 tenshae

  • Members
  • 66 posts

Posted 27 August 2014 - 02:19 AM

Hm. Is this something that's OneOS exclusive or is it something like KDE and Gnome where you can include it in your OS as long as you credit?

#35 KeeganDeathman

  • Members
  • 61 posts

Posted 14 September 2014 - 06:33 PM

Ill be adding this to an interface for my company on my server.
Dont ask.

#36 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 14 September 2014 - 09:53 PM

View Postashnwill, on 27 August 2014 - 02:19 AM, said:

Hm. Is this something that's OneOS exclusive or is it something like KDE and Gnome where you can include it in your OS as long as you credit?

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 itzstarstruck

  • Members
  • 26 posts
  • LocationAus

Posted 29 September 2014 - 06:11 AM

Can you release a pastebin installer? I can't install OneOS so I can try this :(

#38 oeed

    Oversimplifier

  • Members
  • 2,095 posts
  • LocationAuckland, New Zealand

Posted 29 September 2014 - 06:41 AM

View PostStarstruck_Studios, on 29 September 2014 - 06:11 AM, said:

Can you release a pastebin installer? I can't install OneOS so I can try this :(
Well, the line of code in the first post is sort of the installer. This is for making programs really, it's not a standalone program.

I might upload a ZIP of OneOS though, people seem to be having issues.

#39 itzstarstruck

  • Members
  • 26 posts
  • LocationAus

Posted 29 September 2014 - 06:55 AM

View Postoeed, on 29 September 2014 - 06:41 AM, said:

View PostStarstruck_Studios, on 29 September 2014 - 06:11 AM, said:

Can you release a pastebin installer? I can't install OneOS so I can try this :(
Well, the line of code in the first post is sort of the installer. This is for making programs really, it's not a standalone program.

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 _removed

  • Members
  • 262 posts

Posted 20 February 2015 - 09:24 PM

I was looking for a textbox api and found it on the github repo.

(Note to self: Stay away from Bedrock; too hard to understand)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users