Blockland Forums > Modification Help

Adding image overlay/GUI to screen

Pages: (1/3) > >>

xS K I D z:

I'd like to have a .png image fill my entire screen after I trigger it within my addon. I've messed around with the mission editor(?) and looked at a few addons and could not find anywhere that explained how to do it exactly and simply.

PhantOS:

Check out the GUI editor. Keep in mind that only you will be able to see the image, nobody else, unless they download your addon

Crøwn:

More specifically, you'll want to create a GuiBitmapCtrl and use the setBitmap(image_path) method on it. From there you can add it to the PlayGUI (or whatever GUI you want) to have it appear in your game.

xS K I D z:


--- Quote from: Crøwn on March 02, 2018, 10:25:11 AM ---More specifically, you'll want to create a GuiBitmapCtrl and use the setBitmap(image_path) method on it. From there you can add it to the PlayGUI (or whatever GUI you want) to have it appear in your game.

--- End quote ---

Ah ok setBitmap is what I was looking for then :) So I can still save the gui as any name I want or do I have to save it as the default PlayGUI for example?

Crøwn:


--- Quote from: xS K I D z on March 02, 2018, 10:44:36 PM ---Ah ok setBitmap is what I was looking for then :) So I can still save the gui as any name I want or do I have to save it as the default PlayGUI for example?

--- End quote ---
Well that really depends on what you're trying to do. You can add a bitmap control to any GUI in Blockland to make your image appear. The PlayGUI example was just assuming you wanted to have the image on your screen while in a server. It doesn't have to be like that, you could put the image in a menu that you open with a keybind.

Pages: (1/3) > >>

Go to full version