Jump to content




How to use Bedrock (Bedrock Documentation)


  • You cannot reply to this topic
83 replies to this topic

#61 cdel

  • Banned
  • 496 posts
  • LocationMelbourne, Australia

Posted 26 March 2015 - 02:16 AM

Thanks :)

#62 cdel

  • Banned
  • 496 posts
  • LocationMelbourne, Australia

Posted 26 March 2015 - 11:08 AM

I am trying to launch another bedrock program within another bedrock program I have already created, how would I acomplish this? currently it will only show the view loaded in the first program, not the view from the second, even though it is using program.loadView().

#63 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 26 March 2015 - 08:03 PM

View Postcdel, on 26 March 2015 - 11:08 AM, said:

I am trying to launch another bedrock program within another bedrock program I have already created, how would I acomplish this? currently it will only show the view loaded in the first program, not the view from the second, even though it is using program.loadView().

Code?

#64 cdel

  • Banned
  • 496 posts
  • LocationMelbourne, Australia

Posted 26 March 2015 - 10:36 PM

Sorry just scratched using bedrock, hence why I no longer have the code on hand.

#65 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 27 March 2015 - 05:49 AM

Well, it depends on how you want to run that program. Another Bedrock program should be self contained, so a simple shell.run should work. Is it something else, like a manager to run programs specifically made for your Bedrock "parent" program?

#66 Rougeminner

  • Members
  • 151 posts

Posted 28 March 2015 - 03:48 AM

When i launched OneOS V2 to look at the Bedrock code and i noticed that there where a lot more arguments in the table for small things like splash screens and buttons there where % signs and all sorts of things that i didn't read about in your guide when and if you get the can you explain more of those "Strange arguments"? if you could that would be GREAT if you a can't it will take longer but i will figure it out.

BEST API i have ever seen. Thanks

View Postcdel, on 26 March 2015 - 11:08 AM, said:

I am trying to launch another bedrock program within another bedrock program I have already created, how would I acomplish this? currently it will only show the view loaded in the first program, not the view from the second, even though it is using program.loadView().

It sounds like you are wanting to make the equal to an HTML Iframe. is this correct?

#67 cdel

  • Banned
  • 496 posts
  • LocationMelbourne, Australia

Posted 28 March 2015 - 04:15 AM

View PostMKlegoman357, on 27 March 2015 - 05:49 AM, said:

Well, it depends on how you want to run that program. Another Bedrock program should be self contained, so a simple shell.run should work. Is it something else, like a manager to run programs specifically made for your Bedrock "parent" program?

I was using dofile, which luanches in the same environment I believe, hence why they conflicted.


#68 roombascj

  • Members
  • 8 posts

Posted 03 April 2015 - 03:17 PM

How do i use open file windows and save file windows?

#69 Monthkiller

  • Members
  • 35 posts

Posted 14 April 2015 - 12:51 AM

Uhh, just a question, but is it normal for Bedrock refusing to run programs via shell.run?
Because i've been trying to do that, and says No such program when i try to run and glitches the display

program:GetObject('InkApp').OnClick = function(self,event,side,x,y)
  shell.run('/sys/Programs/Ink/program')
end


#70 oeed

    Oversimplifier

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

Posted 14 April 2015 - 04:11 AM

View PostMonthkiller, on 14 April 2015 - 12:51 AM, said:

Uhh, just a question, but is it normal for Bedrock refusing to run programs via shell.run?
Because i've been trying to do that, and says No such program when i try to run and glitches the display

program:GetObject('InkApp').OnClick = function(self,event,side,x,y)
  shell.run('/sys/Programs/Ink/program')
end

Yeah that won't work. Bedrock controls drawing the entire screen. You could quit the program or pause it somehow though.

#71 Monthkiller

  • Members
  • 35 posts

Posted 14 April 2015 - 10:55 AM

View Postoeed, on 14 April 2015 - 04:11 AM, said:

View PostMonthkiller, on 14 April 2015 - 12:51 AM, said:

Uhh, just a question, but is it normal for Bedrock refusing to run programs via shell.run?
Because i've been trying to do that, and says No such program when i try to run and glitches the display

program:GetObject('InkApp').OnClick = function(self,event,side,x,y)
  shell.run('/sys/Programs/Ink/program')
end

Yeah that won't work. Bedrock controls drawing the entire screen. You could quit the program or pause it somehow though.

Ok i'll try using that or try wrapping the function that program:Run runs. Thanks for the info
Edit 1: Wrapping works, still broken.
Edit 2: Got it working, but i need to redraw the screen when exiting.

Edited by Monthkiller, 14 April 2015 - 08:38 PM.


#72 oeed

    Oversimplifier

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

Posted 15 April 2015 - 12:22 AM

View PostMonthkiller, on 14 April 2015 - 10:55 AM, said:

Edit 2: Got it working, but i need to redraw the screen when exiting.

What do you mean? Why do you need to redraw if it's exited?

#73 puzzletime

  • Members
  • 35 posts

Posted 30 April 2015 - 10:32 PM

Can I override draw events to make custom widgets?

#74 Rougeminner

  • Members
  • 151 posts

Posted 05 July 2015 - 04:18 AM

How can i use the transparency?

#75 oeed

    Oversimplifier

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

Posted 05 July 2015 - 05:52 AM

View PostRougeminner, on 05 July 2015 - 04:18 AM, said:

How can i use the transparency?

As in make something completely see through? Simply use colours.transparent instead of, for example, colours.grey.

#76 Rougeminner

  • Members
  • 151 posts

Posted 12 July 2015 - 04:31 PM

I will now take said survey: does this answer make me feel stupid: Yup! could I have probably found this information out myself:Yup! could I have probably had a lick of commonsense and guessed that the answer would have been that simple: Yup! :D

Thanks oeed

Edited by Rougeminner, 13 July 2015 - 06:59 AM.


#77 Rougeminner

  • Members
  • 151 posts

Posted 13 July 2015 - 06:57 AM

Is there a wiki on Bedrock... there are somethings that just need documentaion and not a tutorial. like how to turn off bedrock without turing off the computer?

#78 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 13 July 2015 - 07:10 AM

View PostRougeminner, on 13 July 2015 - 06:57 AM, said:

Is there a wiki on Bedrock... there are somethings that just need documentaion and not a tutorial. like how to turn off bedrock without turing off the computer?

I think it's:

program:Quit()

...to quit a program, if that's what you mean.

#79 oeed

    Oversimplifier

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

Posted 13 July 2015 - 09:14 AM

View PostRougeminner, on 13 July 2015 - 06:57 AM, said:

Is there a wiki on Bedrock... there are somethings that just need documentaion and not a tutorial. like how to turn off bedrock without turing off the computer?

MKlegoman357 has the solution there for Bedrock.

Bedrock did have terrible documentation though. We will be having much better documentation for Silica, I'm about to start it as we speak. The code is also very heavily commented, I'd guess maybe about a sixth of all lines are comments. Bedrock had about 4 comments.

#80 Rougeminner

  • Members
  • 151 posts

Posted 13 July 2015 - 04:00 PM

Cool! i can't wait for the computercraft release for Silica is out its a whole new level for GUI framework that i didn't think was possible.

Thanks MKLegoman

Edited by Rougeminner, 13 July 2015 - 04:03 PM.






2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users