Jump to content

thisdp

Scripting Moderators
  • Posts

    512
  • 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,352 profile views

thisdp's Achievements

Playa Partner

Playa Partner (27/54)

255

Reputation

  1. thisdp

    DGS

    combine with rounded rectangle https://wiki.multitheftauto.com/wiki/DgsCreateRoundRect
  2. You need to render it with dxDrawImage. Refer to the example https://wiki.multitheftauto.com/wiki/CreateBrowser
  3. 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")
  4. 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.
  5. maybe try to change the randomseed by math.randomseed
  6. maybe try DGS' blurbox ? https://github.com/thisdp/dgs/blob/master/plugin/BlurBox.lua wiki: https://wiki.multitheftauto.com/wiki/DgsCreateBlurBox
  7. are you using wrong image ?
  8. Maybe this? https://github.com/thisdp/dgs/blob/master/plugin/mask/maskTexture.fx
  9. See the example on https://wiki.multitheftauto.com/wiki/WasEventCancelled wasEventCancelled is used after triggerEvent.
  10. Can confirm there may exist some issue in dxCreateTexture. I have also encountered the same situation.
  11. It is too secure to prevent user from inputing... The problem that @MatrixGene mentioned is we can't input Chinese Characters into CEF. What we need is an input method handler just like guiEdit.
×
×
  • Create New...