laserlaser Posted May 24, 2012 Share Posted May 24, 2012 (edited) Are you bored at default MTA GUI? You can change the your theme.But It doesn't change other player themes.And dont you want to other MTA GUI themes at other players? Or want to new actions.If you have this reasons, SDT_GUI resource is for you. SDT_GUI is a resource that makes MTA directx functions interacting with user. It was made to be an alternative to the default MTA gui, but also to provide some extra features that make creating user interface even more customizable and connvenient. At the moment there are more than 111 functions and 11 events available, though not every default GUI function was replaced. SDT_GUI comes with many powerful functions to make user interface user-friendly and good looking. Each of SDT_GUI elements can be modified or replaced with your own image. SDT_GUI is an open source. You can modify it how much you want, but you must always remind the author SDT_GUI v1.0 supported 3 theme: Lighter Black,Lighter Blue, OrangeYou can add or modify the themes.I will add lesson soon. dxEdit,dxMemo,dxGridList will add in v2.0 Screenshot (I will add video soon): Screen 1 (at ModLoader resource) Screen 2 (at ModLoader resource) Screen 3 (at ModLoader resource) Wiki: https://wiki.multitheftauto.com/wiki/DxGUI Download: Google Drive Folder Changelog: v1.1: Fixed, dxCreateStaticImage v1.2: Added, root pane drawings. Fixed, element visiblity drawings. v1.2.1: Added,dxProgressBar. v1.3: Fixed, progressBar default progress. v1.3.1: Fixed, onClickEvent.Added mouseEnter|Leave events for all SDT_GUI elements.Added "push" properties for SDT_GUI elements.It can customizable at 1.3.2 v1.3.2: Added event: onClientDXPropertyChange v1.3.3: Fixed window's move methods.Added image option to the themes. v1.3.4: guiAttachToDirectX added. v1.3.5: Added scrollbar, added new events. v1.3.6: Added spinners v1.3.7: Added spinners for Rootpanes. v1.3.8: Added listbox, added move event.Fixed some problems.Added doubleClick, click events for all elements. v1.3.9: Listbox functions completed.Scrollbar rootPane drawings fixed.Added listbox for rootpane. v1.4.0: SDT_GUI now has the exported functions.It wasn't a resource, but now It's resource.Also added many functions and events.ZOrder and its functions added. v1.4.1: ZOrder refresh states fixed. v1.4.2: You dont need the define the definitons anymore. Bugs fixed(static image, scrollbar, ...) v1.4.3: Added 11 new theme. Fixed Window movability. Increase the scrollbar period. Fixed some bugs. Fixed spinner width v1.4.4: Sath Metro [blue] and [Red] versions added.(Edited from Green version.) Change the project name SDT_GUI (Skyline's DirectX Tools GUI) ZOrder Bug fixing.Now like a CEGUI. Make compatible with other SDT Systems. Listbox Design changed. SDT_ prefix added for functions.You can use the functions both dx... and SDT_ (Example: dxCreateWindow, SDT_CreateWindow) SDT_GetThemes, dxGetThemes functions added. Deprecated functions removed. dxBringToFront and dxMoveToBack bugs fixed. WindowTitlePosition and TitleMoving removed. SetPosition, SetSize functions changed. Developed infrastructure for moving possibility for all components. Scrollbar fixed.StaticImage fixed. Added 'SDT_' prefix for all component properties Added 'SDT_GUI_' prefix for all component types. Developed render functions. Developed infrastructure for adding new components from different resources. First using 'SDT_ENGINE' failed.'SDT_ENGINE' is a engine for clipping but I cant import it into 'SDT_GUI' SDT_ListGetItems, dxListGetItems functions added. [*]v1.5.0: I hope I use rendertargets for clipping. [*]v1.5.0: I hope I can make editbox. Themes : -> Lighter Black -> Lighter Blue -> Orange -> Sath Metro (Green) -> Sath Metro (Blue) -> Sath Metro (Red) -> Crystal (Red) -> Crystal (Purple) -> Crystal (Pink) -> Crystal (Orange) -> Crystal (Green) -> Crystal (Blue) -> Crystal (Black) -> Crystal (Gold) -> Crystal (Glass) -> Crystal (Token White) Notices: SDT: Skyline's DirectX Tools Listbox isn't gridlist.It's one column based gridlist.Like in Java. Bugs: No bugs found.Contact me if you found. P.S: Sorry for bad english. Edited August 25, 2013 by Guest Link to comment
laserlaser Posted May 25, 2012 Author Share Posted May 25, 2012 Wiki page added.Editing the function templates. -laserlaser Link to comment
Stanley Sathler Posted May 26, 2012 Share Posted May 26, 2012 Oh, you're using Lighter Blue (made by me). I'm very grateful. Seems a good job, I'll try when I get sometime. Link to comment
laserlaser Posted May 26, 2012 Author Share Posted May 26, 2012 Thanks, and yes I like lighter blue.But I have a problem, in lighter black hover images looks good.But in lighter blue hover images is the same as normal button. Link to comment
laserlaser Posted May 27, 2012 Author Share Posted May 27, 2012 v1.3.3 Released.Some important bugs fixed. Link to comment
qaisjp Posted June 1, 2012 Share Posted June 1, 2012 1. THANK GOD YOU ARE USING LIGHTER BLUE. YOU GET +1 FROM ME FOR THAT. 2. It seems the radio and checkbox buttons are a little too big. 3. I moved it for you https://wiki.multitheftauto.com/wiki/Resource:DxGUI 5. I would tell you that you should add exports, and then people can put this at the start of the script: g = exports.dxGUI g:dxCreateWindow 6. Also I would name it guiCreateWindow instead... to make it easier and more adaptable. Afterall, both cannot be used.. and if my method above was used, none of the original functions would be overwritten (it would be g:guiCreateWindow, not guiCreateWindow) 7. open source? make a repo http://code.google.com/hosting/createProject there and choose Subversion 8. you didnt realise i skipped 4. 9. now your smiling 10. here take a cookie 1 Link to comment
UAEpro Posted June 9, 2012 Share Posted June 9, 2012 7. open source? make a repo [url=http://code.google.com/hosting/createProject]http://code.google.com/hosting/createProject[/url] there and choose Subversion Link to comment
laserlaser Posted June 10, 2012 Author Share Posted June 10, 2012 v1.3.5 released.You can see what's updated from main post. Link to comment
laserlaser Posted June 11, 2012 Author Share Posted June 11, 2012 Add textbox input, please. I'm working to make editbox.It just need drawings and caret index.Drawing is easy.But caret index drawings hard for me.I don't want to make editbox like vEnom's dxGUI.I want to make real editbox. Link to comment
laserlaser Posted June 14, 2012 Author Share Posted June 14, 2012 v1.4.0 released.It has export functions now.You cann see what's updated from the main post. Link to comment
laserlaser Posted June 15, 2012 Author Share Posted June 15, 2012 Version 1.4.1 is now available Link to comment
qaisjp Posted June 15, 2012 Share Posted June 15, 2012 Oye! You should atleast say thank you to me for giving you the focking idea! Link to comment
CapY Posted June 16, 2012 Share Posted June 16, 2012 Version 1.4.1 is now available Update the post title. Link to comment
qaisjp Posted June 16, 2012 Share Posted June 16, 2012 omg include this code instead of your current definitions code for i,v in pairs(exports.dxGUI) do _G[i] = function(...) return v(...) end end that should work. (that automatically makes all exports of dxGUI native) Link to comment
laserlaser Posted June 16, 2012 Author Share Posted June 16, 2012 omginclude this code instead of your current definitions code for i,v in pairs(exports.dxGUI) do _G[i] = function(...) return v(...) end end that should work. (that automatically makes all exports of dxGUI native) It won't work.Because some functions gets extra parameters.Like getThisResource().I could make if control, but it will be longer.Because I do definitions with Regex.Only 2 line Link to comment
qaisjp Posted June 16, 2012 Share Posted June 16, 2012 "some functions get extra parameters" ??? I used ... for a variable amount of arguments. Link to comment
laserlaser Posted June 16, 2012 Author Share Posted June 16, 2012 "some functions get extra parameters"??? I used ... for a variable amount of arguments. Yes, all creating functions gets getThisResource() parameter.Because we must destroy the all dxelements (belong to resource) when the resource stopped. Link to comment
qaisjp Posted June 16, 2012 Share Posted June 16, 2012 *facepalm* my code just loops all the functions to make this: function dxCreateWindow(...) return exports.dxGUI:dxCreateWindow(...) end Just simplified and appplied to all code. Just try it! Link to comment
laserlaser Posted June 16, 2012 Author Share Posted June 16, 2012 *facepalm*my code just loops all the functions to make this: function dxCreateWindow(...) return exports.dxGUI:dxCreateWindow(...) end Just simplified and appplied to all code. Just try it! Poff, you don't understand.If you use this form you must use dxCreateWindow(getThisResource(),x,y,w,h,...) like this. But my forms you can use: dxCreateWindow(x,y,w,h,...) You could make if control.But regex creating is more faster.Only 's paste and you get this form. Link to comment
Mefisto_PL Posted December 25, 2012 Share Posted December 25, 2012 This Error I have when I use this resource Link to comment
Sex* Posted December 25, 2012 Share Posted December 25, 2012 So if using this resource and saving settings the all players get that GUI? All players can change all players GUI? Or only admins can change it? Or is it only for that player that selects and saves? Link to comment
TheBite Posted February 2, 2013 Share Posted February 2, 2013 How to open a menu/panel for this script? 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