Jump to content




Simple Screen Maker

api utility

23 replies to this topic

#1 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 10 April 2015 - 01:14 AM

My Screen API (Forum Post) is a nice tool, but it's very similar to the hundreds of other API's that create buttons for you


So I decided to give my API an interface!


Simple Screen Maker



Download:

pastebin get sw4PJVPK ssm

(Only works in an Advanced Computer)


Description:

This program lets you create Screens from my Screen API!

When you save your Screen, it makes a file that contains a each of your Objects/Click Areas in a function, ready to add to your program!
(Your program has to implement my Screen API to display the elements)

See the How to Use section below for more information


Screenshots

Updates


Coming 'Soon':
-Layers


How To Use:


Creating a Screen is easy!

1. Download the program
2. Draw and save your screen
3. Add my Screen API to your program (Get it here)
4. Add the functions that Simple Screen Maker created to your program

Hit h in the program to view a list of the controls

Bugs and Questions:

PROGRAMMING questions should go in the Ask-a-Pro forum
Just comment with any bugs or specific questions

Edited by HPWebcamAble, 18 January 2016 - 07:53 PM.


#2 minebuild02

  • Members
  • 97 posts

Posted 16 April 2015 - 04:31 PM

Can I use this in an IDE?

#3 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 16 April 2015 - 10:48 PM

View Postminebuild02, on 16 April 2015 - 04:31 PM, said:

Can I use this in an IDE?

Yes, just be sure to give me credit for that part

#4 Agent Silence

  • Members
  • 319 posts
  • Location[string "FindMe"]:23143: bad argument #1 to 'returnPos' (vector expected, got nil)

Posted 17 April 2015 - 01:42 AM

View PostHPWebcamAble, on 16 April 2015 - 10:48 PM, said:

View Postminebuild02, on 16 April 2015 - 04:31 PM, said:

Can I use this in an IDE?

Yes, just be sure to give me credit for that part
Speaking of such, I was thinking about using it in Guide 2

If you don't know what Guide is, click here

#5 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 17 April 2015 - 02:18 AM

View PostRequiem of Silence, on 17 April 2015 - 01:42 AM, said:

Speaking of such, I was thinking about using it in Guide 2

I can only guess that the IDE would give you the option to use my program to draw a menu

I have no idea how you would integrate this into your Guide program

It'll probably be ok, but what did you have in mind?


You guys ARE talking about the program itself, right? Not the code that it creates for you (Obviously you can use that)

#6 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 21 April 2015 - 01:42 AM

Update! Version 1.1

-Minor bug fixes, cleaned up code

Edited by HPWebcamAble, 05 January 2016 - 04:09 AM.


#7 Xanomes

  • Members
  • 4 posts

Posted 13 July 2015 - 01:54 PM

When I on server created file, then second file, ex.: screen:draw(name-of-first-file), then left the game and joined server, started my program, Craft OS said: "attempt to index ? (a nil value).

But without this, your program is nice and really helpfull... it wants only something for click event settings (when i toggle click on for object, then open settings what it will do when I will click the object).

#8 ebernerd

  • Members
  • 262 posts
  • LocationBoston, MA

Posted 17 July 2015 - 03:34 PM

I love this idea. If i were to make my own version of this that's like completely mine and completely unrelated to this but has a similar idea, would you still want credit, or no? Because it would be cool for a project i have in mind... ;)

#9 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 17 July 2015 - 06:39 PM

View PostMinecrosoft, on 17 July 2015 - 03:34 PM, said:

I love this idea. If i were to make my own version of this that's like completely mine and completely unrelated to this but has a similar idea, would you still want credit, or no? Because it would be cool for a project i have in mind... ;)

Glad you like it :)

Sure, you can make your own version, if its completely yours you don't have to give me credit, but if you really want to I won't complain.

I was actually working on Version 2 a while ago, but I had some problems with rendering (flickering), and I lost interest.
I might come back to it soon, we'll see.

#10 Waitdev_

  • Members
  • 432 posts
  • LocationWherever you want me to be

Posted 20 July 2015 - 05:01 AM

looks cool :D
i might actually try it in making some programs

#11 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 20 July 2015 - 05:43 AM

View PostWait_, on 20 July 2015 - 05:01 AM, said:

looks cool :D
i might actually try it in making some programs

Hope it works for you!

If not, I'd suggest trying my Screen API on its own.

#12 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 04 January 2016 - 03:33 AM

Update! Version 2.0

-Changed a few key bindings
-Tweaked how elements are created
-You can now import a background to use for positioning
-New save file format

#13 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 05 January 2016 - 04:03 AM

Update! Version 2.1

-Cleaned up the code
-Updated description
-Fixed buffer causing anything off the right of the screen to become invisible
*Headings should show up on pocket computers
*Objects and click areas show up when they are off the right edge
-Shortned a lot of text, most should fit on pocket computers

#14 dirtywastegash

  • Members
  • 6 posts

Posted 12 January 2016 - 04:19 AM

Hi there. Firsty must say this looks awesome. I'm really hoping it will help me to create some better looking programs as formatting and such is definately not my strong point.
No such luck at the moment.

I downloaded the file from pastebin using the command supplied but when i run ssm i get an error.
ssm:201: attempt to call nil

line 201 reads
local curBack = term.getBackgroundColor()


#15 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 12 January 2016 - 05:34 AM

View Postdirtywastegash, on 12 January 2016 - 04:19 AM, said:

ssm:201: attempt to call nil

That means you are using an older version of ComputerCraft!

You'll need at least CC 1.74 to use this program. One day, I'll get the program to check for you...


You should be able to use CCEmuRedux (an emulator, which runs without minecraft) with this program, then use the code (With my Screen API) in an older version of CC.

Edited by HPWebcamAble, 13 January 2016 - 12:09 AM.


#16 dirtywastegash

  • Members
  • 6 posts

Posted 13 January 2016 - 03:10 PM

Wow. Thank you for such a prompt reply.
Its a problem i keep running in to. Unfortunately my machine doesnt like running modded MC at any version higher than 1.6.4 which is a damn shame seeing as there is so many cool new features in CC now.
Still I was not aware there was even a CC emulator available. that is going to make my life so much easier that keep uploading files to my server via FTP.
I'm running CC 1.6.3 so hopefully things will work out. I will post here to let you know the outcome :)

#17 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 14 January 2016 - 03:41 AM

Update! Version 2.2

-Added state editing!
-Cleaned up the code
-More text shortened to fit on all screens
-Elements created with the program are compatible with my Screen API again (whoops)
*Cannot load saves from older versions

#18 Lupus590

  • Members
  • 2,011 posts
  • LocationUK

Posted 14 January 2016 - 11:26 AM

View PostHPWebcamAble, on 14 January 2016 - 03:41 AM, said:

*Cannot load saves from older versions

suggestion, separate program to port saves

#19 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 15 January 2016 - 12:14 AM

View PostLupus590, on 14 January 2016 - 11:26 AM, said:

suggestion, separate program to port saves

Takes about 3 seconds in a text editor:
In the save, find "colors" and replace it with "states" (no quotes)

If anyone has actually used the program and wants to port their save, this is all they have to do.
Sure, a little program would be pretty easy to write to do it, but ... has anyone even used it yet? ;)

#20 Lupus590

  • Members
  • 2,011 posts
  • LocationUK

Posted 15 January 2016 - 08:42 AM

if it's that simple then why not have a porter in the main program?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users