DutchCaffeine Posted June 9, 2008 Share Posted June 9, 2008 Would someone please post a source for a register/login script with GUI? Thanx for any replys. Login script NO WAY, you can create it on your own with this gui editor and the developers wiki! Link to comment
Hoss212 Posted August 11, 2008 Share Posted August 11, 2008 Hmm, I seem to be having a problem with this. It seems as it fails for large gui's or something because when I make a large gui with tons of elements and stuff the thing just fails and nothing will come up. As if I just place a couple buttons on there it works fine. Now I know it will fail to show up if you have certain characters like "-" in a variable but im uncertain about anything else. So R3mp if you know whats going on please help, thanks. Link to comment
Remp Posted August 11, 2008 Author Share Posted August 11, 2008 Ive never had any problems with larger GUIs. could you give me a more detailed explanation of what it is you're trying to make (which elements and which order) and your variable naming style? are you loading an existing GUI? are you using any of the "extra" options? do you get any errors (either in the chat or in debugscript)? Link to comment
Hoss212 Posted August 11, 2008 Share Posted August 11, 2008 I'll get a hold of you on IRC so you can look at my code. Thanks. Link to comment
Remp Posted August 11, 2008 Author Share Posted August 11, 2008 new version uploaded based on Hoss212's report that fixes an issue with quotes inside strings https://community.multitheftauto.com/index.html?p ... ils&id=141 Link to comment
Cardell Posted September 26, 2008 Share Posted September 26, 2008 Is there a way you can print code for the whole GUI? Link to comment
Gamesnert Posted September 26, 2008 Share Posted September 26, 2008 Is there a way you can print code for the whole GUI? /guiprint or /guioutput? Or do you mean with working buttons? In that case: no. Link to comment
Cardell Posted September 26, 2008 Share Posted September 26, 2008 Is there a way you can print code for the whole GUI? /guiprint or /guioutput? Or do you mean with working buttons? In that case: no. I open my GUi, type /guiprint and its blank, And /guioutput it only has -- --- ---- in the lines Link to comment
Gamesnert Posted September 26, 2008 Share Posted September 26, 2008 Is there a way you can print code for the whole GUI? /guiprint or /guioutput? Or do you mean with working buttons? In that case: no. I open my GUi, type /guiprint and its blank, And /guioutput it only has -- --- ---- in the lines Wait... You OPEN your GUI? GUI editor only works if you load the GUI into the editor, or create it with it. To load it into the editor, open your to copy GUI, right click "Load GUI"(right click, but OUT OF THE GUI!), click on your GUI you want to load. Link to comment
Cardell Posted September 26, 2008 Share Posted September 26, 2008 How Do you Load a GUI? Link to comment
Gamesnert Posted September 26, 2008 Share Posted September 26, 2008 How Do you Load a GUI? ...To load it into the editor, open your to copy GUI, right click "Load GUI"(right click, but OUT OF THE GUI!), click on your GUI you want to load. Link to comment
Cardell Posted September 26, 2008 Share Posted September 26, 2008 How Do you Load a GUI? ...To load it into the editor, open your to copy GUI, right click "Load GUI"(right click, but OUT OF THE GUI!), click on your GUI you want to load. how i open copy gui Link to comment
Gamesnert Posted September 26, 2008 Share Posted September 26, 2008 How Do you Load a GUI? ...To load it into the editor, open your to copy GUI, right click "Load GUI"(right click, but OUT OF THE GUI!), click on your GUI you want to load. how i open copy gui ... What are you talking about? Link to comment
Cardell Posted September 26, 2008 Share Posted September 26, 2008 Doesnt it save your functions? Link to comment
Gamesnert Posted September 27, 2008 Share Posted September 27, 2008 Doesnt it save your functions? Like for when you click a button? I already said no. Link to comment
drody Posted June 22, 2009 Share Posted June 22, 2009 how i put variables on this ? mean , when i press a button this will dow something GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Checkbox = {} GUIEditor_Edit = {} GUIEditor_Window[2] = guiCreateWindow(308,181,395,288,"HUD",false) getcar_1 = guiCreateButton(276,26,94,49,"Spawn car 1",false,GUIEditor_Window[2]) GUIEditor_Button[2] = guiCreateButton(216,33,73,0,"",false,GUIEditor_Window[2]) getcar_2 = guiCreateButton(276,90,94,49,"Spawn car 2",false,GUIEditor_Window[2]) getcar_3 = guiCreateButton(276,155,94,49,"Spawn car 3",false,GUIEditor_Window[2]) GUIEditor_Button[5] = guiCreateButton(276,214,94,49,"Spawn car 4",false,GUIEditor_Window[2]) GUIEditor_Checkbox[1] = guiCreateCheckBox(329,368,0,0,"",false,false) checkbox1 = guiCreateCheckBox(9,22,117,16,"Get warefare",false,false,GUIEditor_Window[2]) guiCheckBoxSetSelected(checkbox1,true) checkbox3 = guiCreateCheckBox(10,41,91,23,"/goto enable",false,false,GUIEditor_Window[2]) GUIEditor_Edit[2] = guiCreateEdit(11,94,95,24,"Car health",false,GUIEditor_Window[2]) car healt = guiCreateProgressBar(112,94,107,24,false,GUIEditor_Window[2]) Link to comment
Remp Posted June 22, 2009 Author Share Posted June 22, 2009 use addEventHandler (http://development.mtasa.com/index.php? ... entHandler) and onClientGUIClick (http://development.mtasa.com/index.php? ... ntGUIClick) for example, this code calls the function "ClickedButton" and will output a message to the chat when you click on the button "GUIEditor_Button[2]": function ClickedButton() outputChatBox("You clicked the button.") end addEventHandler("onClientGUIClick",GUIEditor_Button[2],ClickedButton,false) You can then put whatever code you want in the function (such as for spawning vehicles) Also, your variable "car healt" is invalid and will error. Variable names cannot have spaces in, replace it with an underscore or compact it to a single word (eg: car_health or carhealth) Link to comment
Jammie Posted June 28, 2009 Share Posted June 28, 2009 Hi!! I have a question, how do you save that output code? because if i change that F1 display (delete button "map") and then i say: Output Code then he go to my Output Txt File... and what now ????? if i Reconnect then comes back to old one.. how can i save the output code!! please help me! thnx!! Link to comment
Remp Posted June 28, 2009 Author Share Posted June 28, 2009 the guieditor will only create the usable gui code for you, it wont actually implement it on your server You need to find the resource file you want to edit and put the code (from guieditor_output.txt) into it, if you're unsure how to do this i suggest reading some of the documentation available on the wiki: Introduction to Scripting, Introduction to Scripting GUI Link to comment
XetaQuake Posted August 14, 2009 Share Posted August 14, 2009 Hey R3mp, i have a little question. When i create a tab-panel using the GUI Editor without adding an Tab, it looks like this: As you can see, there is no Tab, just a Tab-Panel. But when i export the Code and build it in my script, it looks like this: Now, there is a Tab named "Tab" above the Tab-Panel, but i don't want them. I tried everything to remove this "Tab"-Element, but if i remove this or set it transparent, every children will get this state too. Can you say me, why is this "Tab" not visible in Gui Editor (until i export them) - i want to remove it. Link to comment
Remp Posted August 14, 2009 Author Share Posted August 14, 2009 When you create a tabpanel with the editor it automatically adds 1 tab to the panel. this is done because tabpanels alone dont trigger onClientMouseEnter/Exit (but tabpanels with tabs do), so we cannot tell when the cursor is on them and consequently cannot draw the appropriate right click menu, leaving you with a blank tabpanel that you cant add anything to, modify or remove (this is also why you cant set the variable name of a tabpanel, among other things) Ive got no idea why the first tab doesnt actually show up in the editor, ive looked at it before and suspect its a timing bug but if i try to hack around it i risk creating more problems coincidentally, MTA also wont allow you to create tabpanels without tabs. if you do so it will just add a blank tab, so the best advice i can give you is that you use a blank gridlist instead of a tabpanel to create a background element Link to comment
XetaQuake Posted August 16, 2009 Share Posted August 16, 2009 A gridlist looks different then a tabpanel, but thanks for that Idea. I'm using it now. Link to comment
Remp Posted August 24, 2009 Author Share Posted August 24, 2009 (edited) Ive updated the resource to work around the bug introduced in 1.0 that stops the guieditor generating any output, if you do not update, the editor will not work with mta 1.0 this is not an ideal solution and will be reverted as soon as the bug within mta is fixed, if you find any more bugs stemming from this please tell me Edited August 26, 2009 by Guest Link to comment
Izanagi Posted August 26, 2009 Share Posted August 26, 2009 how do you guys export it? I can't seem to make it work, I get '--- ---- ---' etc etc in the output file ;/ Link to comment
Remp Posted August 26, 2009 Author Share Posted August 26, 2009 are you using the latest version (2.0)? A bug introduced in mta 1.0 blocks all previous guieditor versions from generating any output if you are, do you get any output in the print window? (right click -> print code) 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