Resource:RDX: Difference between revisions
Jump to navigation
Jump to search
OfficialMr3b (talk | contribs) |
OfficialMr3b (talk | contribs) (→Notes) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
=== Download === | |||
Github Source: https://github.com/Mr3bOfficial/rdx | |||
===How to Use=== | ===How to Use=== | ||
First you need to add to the top of your code ''loadstring(exports. | First you need to add to the top of your code ''loadstring(exports.rdx:import())()'' then you have to change some codes as showing in examples | ||
===Notes=== | ===Notes=== | ||
1 - You need to change the resolution from '' | 1 - You need to change the resolution from ''rdx/config/data.lua'' to your resolution.<br> | ||
2 - Do not change any thing in '' | 2 - Do not change any thing in ''rdx/server-side/update.lua'' or ''rdx/update.cfg''.<br> | ||
3 - To update the resource you need to type ''/update- | 3 - To update the resource you need to type ''/update-rdx''.<br> | ||
==Functions== | ==Functions== | ||
* [[dxDrawText| | * [[dxDrawText|dxText]] | ||
* [[dxDrawImage| | * [[dxDrawImage|dxImage]] | ||
* [[dxDrawRectangle| | * [[dxDrawRectangle|dxRectangle]] | ||
* [[RoundedRectangle| | * [[RoundedRectangle|dxRoundedRectangle]] | ||
* [[isMouseInPosition| | * [[isMouseInPosition|dxIsInPosition]] | ||
* [[dxDrawCircle|dxCircle]] | |||
* [[dxDrawImageSection|dxImageSection]] | |||
* [[guiCreateWindow|guiWindow]] | |||
* [[guiCreateButton|guiButton]] | |||
* [[guiCreateMemo|guiMemo]] | |||
* [[guiCreateLabel|guiLabel]] | |||
* [[guiCreateCheckBox|guiCheckBox]] | |||
* [[guiCreateEdit|guiEdit]] | |||
* [[guiCreateProgressBar|guiProgress]] | |||
* [[guiCreateRadioButton|guiRadioButton]] | |||
* [[guiCreateGridList|guiGridList]] | |||
* [[guiCreateTabPanel|guiTabPanel]] | |||
* [[guiCreateTab|guiTab]] | |||
* [[guiCreateStaticImage|guiImage]] | |||
* [[guiCreateScrollBar|guiScrollBar]] | |||
* [[guiCreateScrollPane|guiScrollPane]] | |||
* [[guiCreateComboBox|guiComboBox]] | |||
==Example== | ==Example== | ||
<section show="true" name="Client" class="client"> | <section show="true" name="Client" class="client"> | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
loadstring(exports. | loadstring(exports.rdx:import())() | ||
addEventHandler("onClientRender", root, | addEventHandler("onClientRender", root, | ||
function() | function() | ||
dxRectangle(468, 279, 430, 211, tocolor(255, 255, 255, 255), false) | |||
dxText("Hello this is Mr3b", 468, 279, 898, 307, tocolor(0, 0, 0, 254), 1.00, "default", "center", "center", false, false, false, false, false) | |||
dxImage(622, 338, 123, 92, ":guieditor/images/examples/mtalogo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) | |||
end | end | ||
) | ) |
Latest revision as of 20:32, 5 January 2023
Download
Github Source: https://github.com/Mr3bOfficial/rdx
How to Use
First you need to add to the top of your code loadstring(exports.rdx:import())() then you have to change some codes as showing in examples
Notes
1 - You need to change the resolution from rdx/config/data.lua to your resolution.
2 - Do not change any thing in rdx/server-side/update.lua or rdx/update.cfg.
3 - To update the resource you need to type /update-rdx.
Functions
- dxText
- dxImage
- dxRectangle
- dxRoundedRectangle
- dxIsInPosition
- dxCircle
- dxImageSection
- guiWindow
- guiButton
- guiMemo
- guiLabel
- guiCheckBox
- guiEdit
- guiProgress
- guiRadioButton
- guiGridList
- guiTabPanel
- guiTab
- guiImage
- guiScrollBar
- guiScrollPane
- guiComboBox
Example
Click to collapse [-]
Clientloadstring(exports.rdx:import())() addEventHandler("onClientRender", root, function() dxRectangle(468, 279, 430, 211, tocolor(255, 255, 255, 255), false) dxText("Hello this is Mr3b", 468, 279, 898, 307, tocolor(0, 0, 0, 254), 1.00, "default", "center", "center", false, false, false, false, false) dxImage(622, 338, 123, 92, ":guieditor/images/examples/mtalogo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end )
See Also
- dxConvertPixels
- dxCreateFont
- dxCreateRenderTarget
- dxCreateScreenSource
- dxCreateShader
- dxCreateTexture
- dxDrawCircle
- dxDrawImage
- dxDrawImageSection
- dxDrawLine
- dxDrawLine3D
- dxDrawMaterialLine3D
- dxDrawMaterialPrimitive
- dxDrawMaterialPrimitive3D
- dxDrawMaterialSectionLine3D
- dxDrawPrimitive
- dxDrawPrimitive3D
- dxDrawRectangle
- dxDrawText
- dxDrawWiredSphere
- dxGetBlendMode
- dxGetFontHeight
- dxGetMaterialSize
- dxGetPixelColor
- dxGetPixelsSize
- dxGetPixelsFormat
- dxGetStatus
- dxGetTextSize
- dxGetTextWidth
- dxGetTexturePixels
- dxIsAspectRatioAdjustmentEnabled
- dxSetAspectRatioAdjustmentEnabled
- dxSetBlendMode
- dxSetPixelColor
- dxSetRenderTarget
- dxSetShaderValue
- dxSetShaderTessellation
- dxSetShaderTransform
- dxSetTestMode
- dxSetTextureEdge
- dxSetTexturePixels
- dxUpdateScreenSource