Jump to content




Sapi - Screen Api. Connect Monitors Together!

api peripheral

9 replies to this topic

#1 Vilsol

  • Members
  • 194 posts
  • LocationStudy: United Kingdom Native: Latvia

Posted 20 September 2013 - 05:04 PM

sAPI

Hello everyone. I present to you sAPI. It is used to connect multiple screens in a single one and use it as a whole. It has all the same commands that a monitor peripheral does, and it uses full x, y coordinate system, which means that you have to write your code as if the screen was one huge.

Planned Features:
  • Event handler, which would return the screens coordinates.
  • Drawing of different shapes.
  • Different monitor size support.
API:
Spoiler

Example Program:
Spoiler


#2 robotica34

  • Members
  • 28 posts
  • Locationpcapi.location

Posted 21 September 2013 - 03:12 AM

Three words:
This. Is. Amazing.

#3 Ristyo

  • Members
  • 31 posts
  • LocationIn my computer house located in a random village, programming.

Posted 21 September 2013 - 04:44 AM

I haven't tried this, but sapi means cow in my country's language.

#4 Vilsol

  • Members
  • 194 posts
  • LocationStudy: United Kingdom Native: Latvia

Posted 21 September 2013 - 09:25 AM

View PostRistyo, on 21 September 2013 - 04:44 AM, said:

I haven't tried this, but sapi means cow in my country's language.

I don't know why but I can't change it to sAPI it changes back to Sapi.

#5 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 21 September 2013 - 09:44 AM

View PostVilsol, on 21 September 2013 - 09:25 AM, said:

I don't know why but I can't change it to sAPI it changes back to Sapi.

Your answer

#6 Vilsol

  • Members
  • 194 posts
  • LocationStudy: United Kingdom Native: Latvia

Posted 21 September 2013 - 09:46 AM

View Posttheoriginalbit, on 21 September 2013 - 09:44 AM, said:

View PostVilsol, on 21 September 2013 - 09:25 AM, said:

I don't know why but I can't change it to sAPI it changes back to Sapi.

Your answer

I've had an IP board before and I had this problem as well. It was in setting something like force lowercase or something.

#7 Larsg310

  • New Members
  • 1 posts

Posted 22 September 2013 - 04:13 AM

Very nice if you yould need a HUGE monitor for your program.

#8 mrdawgza

  • Members
  • 110 posts
  • LocationSouth Africa

Posted 24 September 2013 - 11:43 AM

This is good, I like it. I would use it in multiple worlds or on a server.

#9 Vilsol

  • Members
  • 194 posts
  • LocationStudy: United Kingdom Native: Latvia

Posted 24 September 2013 - 11:50 AM

Updates!

Added:
  • sAPI.slowPrintText(text, delay)
    Same as sAPI.printText, but you can set the delay between each character.
  • sAPI.clearLine(y)
    Clears the specified line.
  • sAPI.setTextScale(scale)
    Sets the scale on the entire screen.
Updates:
  • sAPI.printText(text)
    Now it tries dividing by spaces.


#10 distantcam

  • Members
  • 139 posts
  • LocationChunk 0

Posted 10 November 2013 - 11:39 AM

I'm having trouble hooking this up.

How do you get the monitors id?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users