Ahmed Ly Posted August 19, 2017 Share Posted August 19, 2017 1 hour ago, Skully said: @thisdp Is the combobox working? I'm getting this error everytime I try to make one. dgs\functions.lua:239: attempt to index field '?' (a nil value) This is the code I'm testing it with; addEventHandler("onClientResourceStart", resourceRoot, function() mainWindow = exports.dgs:dgsDxCreateWindow(0.65, 0.59, 0.22, 0.14, "ComboBox Window", true) testCombo = exports.dgs:dgsDxCreateComboBox(0.09, 0.27, 0.52, 0.54, true, mainWindow) exports.dgs:dgsDxComboBoxAddItem(testCombo, "Test Item") end) I'm on update 2.75. the code should be working Link to comment
Scripting Moderators thisdp Posted August 20, 2017 Author Scripting Moderators Share Posted August 20, 2017 On 2017/8/19 at 11:39, Skully said: @thisdp Is the combobox working? I'm getting this error everytime I try to make one. dgs\functions.lua:239: attempt to index field '?' (a nil value) This is the code I'm testing it with; addEventHandler("onClientResourceStart", resourceRoot, function() mainWindow = exports.dgs:dgsDxCreateWindow(0.65, 0.59, 0.22, 0.14, "ComboBox Window", true) testCombo = exports.dgs:dgsDxCreateComboBox(0.09, 0.27, 0.52, 0.54, true, mainWindow) exports.dgs:dgsDxComboBoxAddItem(testCombo, "Test Item") end ) I'm on update 2.75. I tested, it works. Link to comment
Skully Posted August 20, 2017 Share Posted August 20, 2017 Just now, thisdp said: I tested, it works. Did you test with the latest from the GitHub? I didn't change anything and I'm using the one from there. Link to comment
Scripting Moderators thisdp Posted August 20, 2017 Author Scripting Moderators Share Posted August 20, 2017 (edited) 2 minutes ago, Skully said: Did you test with the latest from the GitHub? I didn't change anything and I'm using the one from there. use /updatedgs to update to the latest version. It seems dgs get the width and height of a dgs-dxgui , but the dgs-dxgui is not existing. 11 minutes ago, Skully said: Did you test with the latest from the GitHub? I didn't change anything and I'm using the one from there. and dgsDxGridListGetSelectedItem returns -1 as guiGridListGetSelectedIte was so, if not selected. Edited August 20, 2017 by thisdp Link to comment
Semih2281 Posted August 21, 2017 Share Posted August 21, 2017 (edited) if i change the design of the lib completely, like outlined button etc. and type updatedgs will it overwrite my designed button and change it back to default? Edited August 21, 2017 by Semih2281 1 Link to comment
Scripting Moderators thisdp Posted August 22, 2017 Author Scripting Moderators Share Posted August 22, 2017 15 hours ago, Semih2281 said: if i change the design of the lib completely, like outlined button etc. and type updatedgs will it overwrite my designed button and change it back to default? Well. You can use dgsDxGUISetProperty to change the style (color,image,font...). But if you change the code of DGS, plz don't use updatedgs again. Because it will overwrite what you have changed. 1 Link to comment
Malone. Posted August 23, 2017 Share Posted August 23, 2017 GUI Need Few Edits it's so bigger, try to low it , you should making it more small . Link to comment
Scripting Moderators thisdp Posted August 23, 2017 Author Scripting Moderators Share Posted August 23, 2017 3 hours ago, Malone. said: GUI Need Few Edits it's so bigger, try to low it , you should making it more small . waht do you mean? Link to comment
Malone. Posted August 23, 2017 Share Posted August 23, 2017 the Size is so bigger the window check it in the screenshot you put it. Link to comment
Administrators Lpsd Posted August 23, 2017 Administrators Share Posted August 23, 2017 1 hour ago, Malone. said: the Size is so bigger the window check it in the screenshot you put it. If your recent posts are anything to go by, you're probably using this resource incorrectly. Care to share a better explanation or provide screenshots yourself of the problem you're having? 1 Link to comment
maksam07 Posted August 24, 2017 Share Posted August 24, 2017 Edit the wiki https://wiki.multitheftauto.com/wiki/DgsDxCreateWindow row = 0 change to row = 1 Because the lines begin with one (at least in the latest versions) Link to comment
Scripting Moderators thisdp Posted August 25, 2017 Author Scripting Moderators Share Posted August 25, 2017 (edited) On 2017/8/24 at 13:51, maksam07 said: Edit the wiki https://wiki.multitheftauto.com/wiki/DgsDxCreateWindow row = 0 change to row = 1 Because the lines begin with one (at least in the latest versions) Thanks. Row and Column in dgs start from 1, because I use table and table count #mytable. Edited August 25, 2017 by thisdp Link to comment
DmitrySkripak Posted August 27, 2017 Share Posted August 27, 2017 (edited) How to put dgsDxCreateWindow Over all elements? property AlwayOnTop doesn`t work. Thank you Edited August 27, 2017 by DmitrySkripak Link to comment
maksam07 Posted August 28, 2017 Share Posted August 28, 2017 14 hours ago, DmitrySkripak said: How to put dgsDxCreateWindow Over all elements? property AlwayOnTop doesn`t work. Thank you dgsDxGUIBringToFront Link to comment
Scripting Moderators thisdp Posted August 28, 2017 Author Scripting Moderators Share Posted August 28, 2017 21 hours ago, DmitrySkripak said: How to put dgsDxCreateWindow Over all elements? property AlwayOnTop doesn`t work. Thank you AlwayOnTop is not dgs property. 21 hours ago, DmitrySkripak said: How to put dgsDxCreateWindow Over all elements? property AlwayOnTop doesn`t work. Thank you DGS = exports.dgs window = DGS:dgsDxCreateWindow(...) addEventHandler("onClientDgsDxBlur",root,function() if source == window then DGS:dgsDxGUIBringToFront(window) end end) addEventHandler("onClientDgsDxGUICreate",root,function() DGS:dgsDxGUIBringToFront(window) end) Link to comment
Yung_Lungs Posted August 28, 2017 Share Posted August 28, 2017 @thisdp hello can you paste there examples for Font functions? Link to comment
DmitrySkripak Posted August 28, 2017 Share Posted August 28, 2017 4 hours ago, thisdp said: AlwayOnTop is not dgs property. DGS = exports.dgs window = DGS:dgsDxCreateWindow(...) addEventHandler("onClientDgsDxBlur",root,function() if source == window then DGS:dgsDxGUIBringToFront(window) end end) addEventHandler("onClientDgsDxGUICreate",root,function() DGS:dgsDxGUIBringToFront(window) end) 11 hours ago, maksam07 said: dgsDxGUIBringToFront Oh, thank you )) Link to comment
anchor Posted August 30, 2017 Share Posted August 30, 2017 (edited) how to destroy many elements that have no parent? maybe there is a function like getResourceGUIElement ? Edited August 30, 2017 by anchor Link to comment
Scripting Moderators thisdp Posted August 31, 2017 Author Scripting Moderators Share Posted August 31, 2017 (edited) 18 hours ago, anchor said: how to destroy many elements that have no parent? maybe there is a function like getResourceGUIElement ? Added: dgsGetDxGUIFromResource dgsGetDxGUINoParent To know the detail. See update log: http://angel.mtaip.cn:233/dgsUpdate/ Edited August 31, 2017 by thisdp 2 Link to comment
anchor Posted August 31, 2017 Share Posted August 31, 2017 woow nice thanks! it would be useful Link to comment
Scripting Moderators thisdp Posted August 31, 2017 Author Scripting Moderators Share Posted August 31, 2017 (edited) 2 minutes ago, anchor said: woow nice thanks! it would be useful np. Make Dx easier to use is my target. Edited August 31, 2017 by thisdp 1 Link to comment
anchor Posted August 31, 2017 Share Posted August 31, 2017 (edited) the custom cursor seems to be weird, and there is 2 cursor on it Edited August 31, 2017 by anchor Link to comment
Scripting Moderators thisdp Posted August 31, 2017 Author Scripting Moderators Share Posted August 31, 2017 4 hours ago, anchor said: the custom cursor seems to be weird, and there is 2 cursor on it do you open /debugdgs ? 1 Link to comment
Scripting Moderators thisdp Posted August 31, 2017 Author Scripting Moderators Share Posted August 31, 2017 (edited) 38 minutes ago, anchor said: yes That is why XD. In the bottom of dgs-dxedit, there is a gui-edit for typing (So that we can use Ctrl+V ,IME and other languages). But I rewrite the edit's function. Edited August 31, 2017 by thisdp Link to comment
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