CC: Tweaked

CC: Tweaked

42M Downloads

Turtle and images?

Minecraft2p0 opened this issue ยท 4 comments

commented

Is it possible to include images or icons in extended Turtles?

commented

I'm afraid I don't quite know what you mean here. Are you referring to displaying images on the computer screen? Or the fancy decals one could apply with ComputerCraftEdu?

commented

Thank you for your prompt reply.

I wrote a startup program to access all of my Turtle programs. So far, this has worked using single-color buttons that open menus for me. I would rather have small pictures instead of the single-color buttons.

commented

So ComputerCraft/CC:Tweaked doesn't have support for 'standard' image formats like PNG and whatever. However, you can do somewhat decent icons if you're comfortable with pixel art. For instance, here's some examples from Opus OS

image

The easiest way to do that is to use the paint program to draw something, and then blittle to shrink it down to something a little smaller - you may lose some detail, due to the limitations of blittle, but it's normally pretty good.

Then you can draw the icon to the screen, and treat it as a button.

commented

This is fantastic and exactly what I was looking for. Thank you very much and happy programming.