Jump to content

Dgs Image Problem


syn0nym

Recommended Posts

So i have little problem with dgsCreateImage, so when you run this code and clicked on the image/red round rectangle, the text is not visible, so how to make the text keep visible when the image is clicked

loadstring(exports.dgs:dgsImportFunction())()

showCursor (true)
local x, y = dgsGetScreenSize()
local window = dgsCreateWindow ((x/2) - (400/2), (y/2) - (300/2), 400, 300, "test", false)
local rndRect = dgsCreateRoundRect (30, false, tocolor(225,0,0))
local img = dgsCreateImage (15, 20, 100, 50, rndRect, false, window)
local text = dgsCreateLabel (30, 25, 100, 20, "Text", false, window)

 

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...