codeluaeveryday Posted November 9, 2012 Share Posted November 9, 2012 This code, it was the first output: GUIEditor = { tab = {}, button = {}, edit = {}, label = {}, } GUIEditor = { tabpanel = {} } local screenW, screenH = guiGetScreenSize() LoginPanel = guiCreateWindow((screenW - 283) / 2, (screenH - 359) / 2, 283, 359, "Login Panel", false) guiWindowSetMovable(LoginPanel, false) guiSetAlpha(LoginPanel, 1.00) guiSetProperty(LoginPanel, "CaptionColour", "FFF8B516") GUIEditor.tabpanel[1] = guiCreateTabPanel(10, 19, 264, 331, false, LoginPanel) GUIEditor.tab[1] = guiCreateTab("Login", GUIEditor.tabpanel[1]) GUIEditor.button[1] = guiCreateButton(168, 267, 91, 35, "Login", false, GUIEditor.tab[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.edit[1] = guiCreateEdit(92, 36, 158, 30, "", false, GUIEditor.tab[1]) GUIEditor.label[1] = guiCreateLabel(0, 36, 92, 30, "Username:", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 204, 98, 20) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[1], "center") GUIEditor.label[2] = guiCreateLabel(0, 5, 263, 18, "Login", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 227, 84, 21) guiLabelSetHorizontalAlign(GUIEditor.label[2], "center", false) guiLabelSetVerticalAlign(GUIEditor.label[2], "center") GUIEditor.label[3] = guiCreateLabel(-3, 16, 263, 15, "________________________________________", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 227, 84, 21) guiLabelSetHorizontalAlign(GUIEditor.label[3], "center", false) GUIEditor.tab[2] = guiCreateTab("Register", GUIEditor.tabpanel[1]) Link to comment
Remp Posted November 9, 2012 Author Share Posted November 9, 2012 Is that exactly as it was output, or did you change anything by hand at any point? If it was output like that, can you tell me the exact steps you did to make it happen? (from starting the gui editor to getting that result) It is erroring because the 'GUIEditor' table is getting defined twice, with the second one overwriting the first. I can't see any way this could ever happen with just regular code output (maybe if you loaded code in and something went horribly wrong, if that is the case i would need to see the gui code that you loaded). If you change the table definition to this instead it will work: GUIEditor = { tab = {}, button = {}, edit = {}, label = {}, tabpanel = {} } Link to comment
codeluaeveryday Posted November 10, 2012 Share Posted November 10, 2012 I did not modify anything. I added color to the window name, i added a few textboxes. The problem I believe is i added a position code with GUIEDITOR, and the error says that on line 698, ___PositionCode)___ tab was not defined, now I have all my other codes which are working fine, and this was my first output, could it be because of that? Link to comment
Baseplate Posted November 13, 2012 Share Posted November 13, 2012 Sorry for bumping, but whenever I start the resource and start creating the gui, when I wanna make for the gui a text or variable, it just crashes.. Link to comment
Remp Posted November 13, 2012 Author Share Posted November 13, 2012 Sorry for bumping, but whenever I start the resource and start creating the gui, when I wanna make for the gui a text or variable, it just crashes.. What crashes? MTA? Which mta version are you running? When exactly does it crash? (ie: when you click the menu option, when you enter a character, when you save the text, etc) csmit: I found the problem, i will update with a fix sometime this week. Thanks for the report! Link to comment
Baseplate Posted November 13, 2012 Share Posted November 13, 2012 MTA Crashes, I'm running the lastest version and when I click on save the text Link to comment
iPrestege Posted November 14, 2012 Share Posted November 14, 2012 I did not like the way To open it first GuiEditor better than this Link to comment
Baseplate Posted November 14, 2012 Share Posted November 14, 2012 Yup, old Guied dosent crash for me, so I kept using it Link to comment
iPrestege Posted November 14, 2012 Share Posted November 14, 2012 Yup, old Guied dosent crash for me, so I kept using it + Me too Idont Like The New One Link to comment
Castillo Posted November 14, 2012 Share Posted November 14, 2012 Well, I'm using the new version and works perfectly. Link to comment
Remp Posted November 14, 2012 Author Share Posted November 14, 2012 MTA Crashes, I'm running the lastest version and when I click on save the text There is not a whole lot that is done behind the scenes when you set element text, and nothing particularly jumps out at me as potentially causing a crash. I'll need some more info to stand a chance at figuring this out - To be clear, it happens when you click this button? - What explicit mta version are you running? (inside mta, press F8, type 'ver', hit enter and post the version number here) - What version of windows are you running? - Does it crash setting text for all the different gui element types, or only specific ones? - When you set the text, are you using multi-line or single line? (if you don't know, it defaults to single line) - Do you enter some text or do you set it to nothing? - Does it crash if you set the text on dx items? - Does it crash setting other options using the input boxes? (eg: setting a property on a gui element) Ultimately, unless it is something i can work around, a crash in mta will need to be fixed in mta itself Link to comment
iPrestege Posted December 24, 2012 Share Posted December 24, 2012 OutPut ^ . You Can,t Save The Panel in guieditor . Link to comment
angelberge Posted January 11, 2013 Share Posted January 11, 2013 I have problem with this. i'm new. Warning: Could not Get the image list from the server please check ACL permissions INFO: Gui editor requires ACL permissions: genera.ModifyOtherObjets to get .png files list Link to comment
gold4iter Posted January 12, 2013 Share Posted January 12, 2013 thanks) I work it resource Link to comment
gold4iter Posted January 13, 2013 Share Posted January 13, 2013 You did add resource to acl groups admin Link to comment
angelberge Posted January 14, 2013 Share Posted January 14, 2013 You did add resource to acl groups admin yes I add Link to comment
Guest Guest4401 Posted January 27, 2013 Share Posted January 27, 2013 I'm using 3.0.2 and I can't figure out how to create tabs in a tabpanel. Link to comment
Castillo Posted January 27, 2013 Share Posted January 27, 2013 Right click on the current tab, then click "parent", and then you can add tabs. Link to comment
Platin Posted January 31, 2013 Share Posted January 31, 2013 "The editor requires the ACL permissions: general.ModifyOtherObjects for some functions, and function.callRemote for update checking" I put this in.... ? Link to comment
mjau Posted February 2, 2013 Share Posted February 2, 2013 The GUI Editor made my life much much easier, but there is one bug. if you create a window, then a tabpanel inside the window. and add some tabs. then you press preview in resoulotion and untick it again, the tab panel fucks up. I can take a pciture but i think its like this for everyone. Link to comment
Diesulke Posted February 13, 2013 Share Posted February 13, 2013 Question: When i'll output the GUI i've made it gives coordinates like these: local Window = guiCreateWindow(673, 330, 584, 382, "Testing", true) And my friend gets coordinates like these: local Window = guiCreateWindow ( 0.25, 0.30, 0.5, 0.4, "Testing", true ) The problem is, everything works fine in GUIEditor, but when i'll start the GUI i've made in my server. It creates it out of my screen i guess. When i'll change the Window coordinates with the one of my friend, it shows in the middle of the screen. Is there any setting in GUIeditor for different output coordinates? Thanks, Link to comment
Castillo Posted February 13, 2013 Share Posted February 13, 2013 First one uses absolute positions, and the second uses relative. In the guieditor you can change the output type. 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