glowdemon1 Posted October 4, 2013 Posted October 4, 2013 Hi, I'm looking to turn my buttons into something more stylish, I have tried using guiSetProperty to make them rectangular and change the colour, unfortunately this didn't go as expected. Anyone kind enough to explain this or even give an example ? Also would I be able to set padding around buttons and editfields ? Like in CSS ( padding:15px 45px; )
Moderators Citizen Posted October 5, 2013 Moderators Posted October 5, 2013 You have to create your own CEGUI skin you can find the 3 skins that are already in MTA here: C:\Program Files (x86)\MTA San Andreas 1.3\skins (on my computer at least) But if you put your new CEGUI skin in ur game directory you will be the only one who would be able to use/see it. I remember that I read a long time ago that MTA would add functions to let the servers to use their own CEGUI skin. (btw I didn't find that function, so it probably not done yet) If you already saw some great GUI (Graphic User Interface) on some servers, that's because they made their own GUI with the dx functions. There should be a resource (not sure but it would be an awesome resource) that would let you load your own CEGUI skins. Best regards, Citizen
HunT Posted October 5, 2013 Posted October 5, 2013 If the photoshop is you friend u can make the images for simulation the button Create image Mouse enter / leave
glowdemon1 Posted October 5, 2013 Author Posted October 5, 2013 Thanks both of you, my guess would be to use PS and let images act like buttons.
Moderators Citizen Posted October 5, 2013 Moderators Posted October 5, 2013 Yeah it should be the easiest way. A lot of servers do that.
Ab-47 Posted October 6, 2013 Posted October 6, 2013 (edited) Thanks both of you, my guess would be to use PS and let images act like buttons. You can also try DX functions, like dxDrawRectangle and dxDrawText. Edited October 6, 2013 by Guest
Ab-47 Posted October 6, 2013 Posted October 6, 2013 It's dxDrawText actually. I swear, I was tired lol. Thanks
Moderators Citizen Posted October 6, 2013 Moderators Posted October 6, 2013 You can also try DX functions Yeah that's what I said ...
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