OpenMods / OpenPeripheral-Addons

An addon for OpenPeripheral, adding physical blocks and items to the game
MIT License
11 stars 10 forks source link

Glasses object anchors? #69

Closed applejag closed 9 years ago

applejag commented 9 years ago

I've been searching like a madman but I can't find how to change the anchors of an object?

I was reading the changelog of OpenPeripherals Addon from 0.2.0 to 0.3.1 here (link) and this is one important change I saw:

- anchors (allow positions elements in screen corners and middle)

I am currently using Direwolf20 1.7.10 pack v1.4.1 which includes OpenPeripherals Addon v0.3.1 and I can not find a method anywhere that would change any anchors. I have been looking around each object type but with no luck.

I even looked at the source code (link) to see if there is something I missed, and I found methods called setScreenAnchor, setObjectAnchor, and setAlignment. Now I am not experienced with java so excuse me if I'm wrong but shouldn't I be able to access them from within computercraft?

image

Maybe I'm totally wrong with this? In the changelog it specifies that it's possible to modify anchors for elements on the screen, I just presumed that meant the glasses but maybe it's for something else? Like some API for java addons? Or maybe it's for the item selector peripheral?


Tl;dr:

I want to change the anchors for my terminal glasses objects but I can't find the methods. Help! :scream:

boq commented 9 years ago

Yeaaaah, sorry for that. Known problem.

You can either downgrade to 0.3, use this or wait until I release (end of this week maybe? I'm terrible at estimations...).

applejag commented 9 years ago

Dangit, was really hoping to start using this. Oh well.

I was watching this script (link) and got confused that maybe they were using a newer non-released version...

Is openperipherals serverside only? Cause I'm playing on a server and I can ask the owner to update/downgrade a mod but if it requires everyone to do it then no-go

boq commented 9 years ago

Well, theoretically OpenPeripheral-Addons is needed on both client and server, but this file is 100% compatible with released version, and just needs to be replaced on server.

applejag commented 9 years ago

Cool thank yooo