PHP Code:
new GuiWindowCtrl("HatViewerPreviewMain") { profile = GuiBlueWindowProfile; clientrelative = true; width = 192; height = 144; clientextent = {width, height}; x = screenwidth / 2 - width / 2; y = screenheight / 2 - height / 2; text = "Preview window"; canresize = canminimize = canmaximize = visible = false; new GuiShowImgCtrl("HatViewerPreviewImage") { width = 192; height = 192; x = 0; y = 0; }
Why did you give the HatViewerPreviewImage a higher hight than the HatViewerPreviewMain?
Else I like it and I could try to mess with that on Delteria
|
0.o I don't have a clue. I must have been dozing off and added the same value as the height lol. The staff there are pretty hyped up on using it, so you'll have to experiment in a different code. The code took literally 15 minutes to make and another 5-10 minutes to tweak correctly. I'm planning on adding some tabs so you can view heads and bodies too.
As you can probably tell, I was being pretty lazy and quick while I was writing this. It was originally for staff on Delteria to use since they liked the idea when I brought it up in a Skype conversation. If I need to I'll rewrite it ;) I'm not usually this lazy with coding.