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.
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?
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.
Actually I got it to show up in-game :) Thanks. But now I would like it to resize itself according to other player's screen resolutions so it's not getting cut off for being too big or being too small an image for the screen coverage. I thought I could do this by using the getExtent method on PlayGui and then use the width and height return from that to resize the bitmap. But I'm having trouble figuring it out as it gives me an error saying "PlayGui::getExtent--wrong number of arguments" or some such. Any idea how I would fix this? I'm using this reference (GuiControl - Page 298): http://greekmods.webs.com/docs/Appendix%20A%20-%20Quick%20References.pdf
PlayGui::getExtent(%this) is the definition of the function. It requires an object %this to be called. Most of the time you are using an object's method you can just call it right on the object like this: playGui.getExtent();. The function that I normally use to get the resolution of the client's screen is getRes() though.
Add-Ons/Item_TeleTest/Item_TeleTest.cs (99): PlayGui::getExtent - wrong number of arguments.Add-Ons/Item_TeleTest/Item_TeleTest.cs (99): usage: Get the width and height of the control.BackTrace: ->[sportBallsPackage]ServerCmdUseTool->ServerCmdUseTool->ItemData::onUse->periTestImage::onMount
function periTestImage::onMount(%this,%obj,%slot){ PlayGui.getExtent(); echo(%this);}
getExtent returns a value. %this returns the periTestImage weaponImage you are packaging it inside.You'd probably want to do echo(PlayGui.getExtent()); if you want to echo the extent data.or you can do %extent = PlayGui.GetExtent(); if you want to keep the extent on a local variable