glowdemon1 Posted October 4, 2013 Share 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; ) Link to comment
Moderators Citizen Posted October 5, 2013 Moderators Share 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 Link to comment
HunT Posted October 5, 2013 Share Posted October 5, 2013 If the photoshop is you friend u can make the images for simulation the button Create image Mouse enter / leave Link to comment
glowdemon1 Posted October 5, 2013 Author Share Posted October 5, 2013 Thanks both of you, my guess would be to use PS and let images act like buttons. Link to comment
Moderators Citizen Posted October 5, 2013 Moderators Share Posted October 5, 2013 Yeah it should be the easiest way. A lot of servers do that. Link to comment
Ab-47 Posted October 6, 2013 Share 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 Link to comment
Castillo Posted October 6, 2013 Share Posted October 6, 2013 It's dxDrawText actually. Link to comment
Ab-47 Posted October 6, 2013 Share Posted October 6, 2013 It's dxDrawText actually. I swear, I was tired lol. Thanks Link to comment
Moderators Citizen Posted October 6, 2013 Moderators Share Posted October 6, 2013 You can also try DX functions Yeah that's what I said ... 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