Jump to content

thisdp

Scripting Moderators
  • 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

Recent Profile Visitors

5,424 profile views

thisdp's Achievements

Playa Partner

Playa Partner (27/54)

257

Reputation

  1. use dgsSetEnabled to disable the "click action" of a dgs element
  2. thisdp

    DGS

    combine with rounded rectangle https://wiki.multitheftauto.com/wiki/DgsCreateRoundRect
  3. You need to render it with dxDrawImage. Refer to the example https://wiki.multitheftauto.com/wiki/CreateBrowser
  4. 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")
  5. 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.
  6. maybe try to change the randomseed by math.randomseed
  7. maybe try DGS' blurbox ? https://github.com/thisdp/dgs/blob/master/plugin/BlurBox.lua wiki: https://wiki.multitheftauto.com/wiki/DgsCreateBlurBox
  8. are you using wrong image ?
  9. Maybe this? https://github.com/thisdp/dgs/blob/master/plugin/mask/maskTexture.fx
  10. See the example on https://wiki.multitheftauto.com/wiki/WasEventCancelled wasEventCancelled is used after triggerEvent.
×
×
  • Create New...