-
Posts
514 -
Joined
-
Last visited
-
Days Won
9
thisdp last won the day on December 2 2021
thisdp had the most liked content!
About thisdp
- Birthday 12/11/1999
Member Title
- Chinese Section Moderator & Scripting Section Moderator
Details
-
Gang
middle
-
Location
home
-
Occupation
Programmer
-
Interests
programming
thisdp's Achievements

Playa Partner (27/54)
257
Reputation
-
I can say: well the same.
-
use dgsSetEnabled to disable the "click action" of a dgs element
- 1 reply
-
- 1
-
-
combine with rounded rectangle https://wiki.multitheftauto.com/wiki/DgsCreateRoundRect
-
You need to render it with dxDrawImage. Refer to the example https://wiki.multitheftauto.com/wiki/CreateBrowser
-
Here's a lot of trick to achieve that. besides what is mentioned by sFxMTA, we can also do one of the following methods. 1. dgsSetLayer(window,"top") 2. dgsSetProperty(theElementYouWantThemStayAsBackground,"changeOrder",false) 3. dgsSetParent(window,theElementYouWantThemStayAsBackground) 4. dgsSetLayer(theElementYouWantThemStayAsBackground,"bottom")
-
that is the exactly function
-
The "relative" is calculated according to "parent". For example local labelA = guiCreateLabel(100,100,400,200,"",false) local labelB = guiCreateLabel(0.1,0.2,0.5,0.5,"",true,labelB) for labelB, it's x = 0.1 * 400 y = 0.2 * 200 width = 0.5 * 400 height = 0.5 * 200 In this way, we can know that: x = relativeX * parentWidth y = relativeY * parentHeight width = relativeWidth * parentWidth height = relativeHeight * parentHeight If there's no parent, parentWidth and parentHeight will be screenWidth and screenHeight.
-
why not use dgsCreateLabel?
-
maybe try to change the randomseed by math.randomseed
-
maybe try DGS' blurbox ? https://github.com/thisdp/dgs/blob/master/plugin/BlurBox.lua wiki: https://wiki.multitheftauto.com/wiki/DgsCreateBlurBox
-
are you using wrong image ?
-
Maybe this? https://github.com/thisdp/dgs/blob/master/plugin/mask/maskTexture.fx
-
See the example on https://wiki.multitheftauto.com/wiki/WasEventCancelled wasEventCancelled is used after triggerEvent.