Leo Messi Posted June 25, 2017 Share Posted June 25, 2017 Hello, when I was using GUIEDITOR script I noticed that there's another buttons into the gui Take a look How can I make like that? Please answer as fast as you can guys. Link to comment
WorthlessCynomys Posted June 25, 2017 Share Posted June 25, 2017 Those are gui labels. They made it a button by defining the source in onClientGUIClick. Link to comment
Storm-Hanma Posted June 25, 2017 Share Posted June 25, 2017 (edited) U can create ur own GUI panel buy that program u can make login panel for example or any jobs stuff panel those buttons are just for helps which give u info how to make a GUI ... And close means close that specific window they are label they work on click method !! Edited June 25, 2017 by Khadeer143 Link to comment
Leo Messi Posted June 25, 2017 Author Share Posted June 25, 2017 I know @Khadeer143 I just want to know how to make it, which function I should use. Link to comment
WhoAmI Posted June 25, 2017 Share Posted June 25, 2017 guiCreateLabel onClientGUIClick Link to comment
Leo Messi Posted June 25, 2017 Author Share Posted June 25, 2017 It's not label bro... I tried to make it like that. I need to use this events to make it changes color onClientMouseEnter onClientMouseLeave guiLabelSetColor(lbl ,r , g, b) also I can't set it in that place that I'm telling u guys.. just I need someone who understands me Link to comment
WorthlessCynomys Posted June 26, 2017 Share Posted June 26, 2017 That is a label. And to set it in the proper position, you can use: guiSetProperty() and set a background to the label, so you actually see where it is. Link to comment
WorthlessCynomys Posted June 26, 2017 Share Posted June 26, 2017 (edited) label = guiCreateLabel(x, y, x, y, "label", flase/true, parentElement) addEventHandler("onClientGUIClick", getRootElement(), function() if (source == label) then -- Do something end end ) Edited June 26, 2017 by StormFighter Code mode Link to comment
Storm-Hanma Posted June 26, 2017 Share Posted June 26, 2017 (edited) 11 hours ago, StormFighter said: label = guiCreateLabel(x, y, x, y, "label", flase/true, parentElement) addEventHandler("onClientGUIClick", getRootElement(), function() if (source == label) then -- Do something end end ) Code is correct !! Give some rights for example help on click help it shows all help information u created for help every GUI button will have some rights !for best way to learn visit mtasa wiki or YouTube if u need any thing to script u can pm me I vll make for u Edited June 26, 2017 by Khadeer143 Link to comment
Leo Messi Posted June 27, 2017 Author Share Posted June 27, 2017 :FP: ITS NOT A :OING LABEL!!!!!!!! Link to comment
WorthlessCynomys Posted June 27, 2017 Share Posted June 27, 2017 Okay. If it's not a label. Then what it is? Link to comment
Leo Messi Posted June 27, 2017 Author Share Posted June 27, 2017 (edited) if it's a label it cannot be added here.. Just take a look in the picture once again LOOK AT ITS POSITION, NORMAL LABEL CANNOT BE ADDED IN THIS POSITION. @Walid you know? Edited June 27, 2017 by majdxd Link to comment
Leo Messi Posted June 27, 2017 Author Share Posted June 27, 2017 After checking GUIEDITOR script I found this: guiWindowTitlebarButtonAdd(windowName, "Text", "left", functionHere) Link to comment
BabY Posted July 20, 2017 Share Posted July 20, 2017 (edited) On 6/28/2017 at 11:44, majdxd said: so guys, you can't? People tried to help you, and you were a douchbad to them and started yelling. It is a label, when it's hovered you change its color. When you hover away you reset its color. When it's clicked you invoke whatever function you want to be called. You set its position relatively, because you want to ensure it sticks to the edges of the main window. You set its ClippedByParent property to False so that the title bar doesn't hide it. Show more respect to those who try to help you, otherwise nobody will give a about you. EDIT: And that function signature you posted is just a ready-to-use one, but I bet its internals have all what we've been telling you. Edited July 20, 2017 by BabY 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