syn0nym Posted July 7, 2022 Posted July 7, 2022 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)
Scripting Moderators thisdp Posted July 7, 2022 Scripting Moderators Posted July 7, 2022 use dgsSetEnabled to disable the "click action" of a dgs element 1
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