Jump to content

[HELP] GUI Images


Solaric

Recommended Posts

local yourTabPanel = guiCreateTabPanel( ... ) 
local tab = guiCreateTab( "fancyTab", yourTabPanel ) 
  
local imagePosX, imagePosY = 30, 50  -- relatively to tab 
local imageSizeX, imageSizeY = 75, 90 -- whatever 
  
local image = guiCreateStaticImage( imagePosX, imagePosY, imageSizeX, imageSizeY, "path/to/your/image.png", false, tab ) 

Link to comment
local yourTabPanel = guiCreateTabPanel( ... ) 
local tab = guiCreateTab( "fancyTab", yourTabPanel ) 
  
local imagePosX, imagePosY = 30, 50  -- relatively to tab 
local imageSizeX, imageSizeY = 75, 90 -- whatever 
  
local image = guiCreateStaticImage( imagePosX, imagePosY, imageSizeX, imageSizeY, "path/to/your/image.png", false, tab ) 

It works!

But tabPanel is on top.

Link to comment
local yourTabPanel = guiCreateTabPanel( ... ) 
local tab = guiCreateTab( "fancyTab", yourTabPanel ) 
  
local imagePosX, imagePosY = 30, 50  -- relatively to tab 
local imageSizeX, imageSizeY = 75, 90 -- whatever 
  
local image = guiCreateStaticImage( imagePosX, imagePosY, imageSizeX, imageSizeY, "path/to/your/image.png", false, tab ) 

It works!

But tabPanel is on top.

Just start editing coordinates and you will find the right one

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...