Solaric Posted July 4, 2016 Share Posted July 4, 2016 Im trying to add image to tab panel and tabs.. How can I add it. (I only can use guiCreateStaticImage with png file) Thanks! Link to comment
DakiLLa Posted July 5, 2016 Share Posted July 5, 2016 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
Solaric Posted July 6, 2016 Author Share Posted July 6, 2016 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
Fox261098 Posted July 7, 2016 Share Posted July 7, 2016 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
Solaric Posted July 7, 2016 Author Share Posted July 7, 2016 Tab more opaque than image Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now