I'm learning how to do a button. Do you know any very simple tutorials or example maps? I did some searching but I found only more advanced button things.
I have an idea that at beginning of map two buttons appears and player can press 1 or 2. If player presses button 1 then "trigger1" happens and if presses button 2 "trigger2" happens.
Ok. Solved this by myself. That was actually very simple but I messed with more complicated dialog things before I found a thing called "screen button". Hope this helps people to do a basic button! =)
I made more advanced version. It has background and when you press button1 or button2 it hides both buttons and background. This version also uses data table to save background - not "last created" thing.
Just one thing, with screen buttons they are displayed for everyone. So if you try to make a multiplayer map you'll need to use dialog buttons. I can explain that tomorrow if you like, going to bed now.
I'm learning how to do a button. Do you know any very simple tutorials or example maps? I did some searching but I found only more advanced button things.
I have an idea that at beginning of map two buttons appears and player can press 1 or 2. If player presses button 1 then "trigger1" happens and if presses button 2 "trigger2" happens.
Ok. Solved this by myself. That was actually very simple but I messed with more complicated dialog things before I found a thing called "screen button". Hope this helps people to do a basic button! =)
I made more advanced version. It has background and when you press button1 or button2 it hides both buttons and background. This version also uses data table to save background - not "last created" thing.
Just one thing, with screen buttons they are displayed for everyone. So if you try to make a multiplayer map you'll need to use dialog buttons. I can explain that tomorrow if you like, going to bed now.
I'm going to try that dialog button thing again too. I'm working single player map so I haven't really dealt with multiplayer issues.
Edited post. I deleted earlier "dialog" button training files because I noticed problem on them.
Ok. This version is final =) It has 3 "dialog" buttons that work fine.
Any idea how to set text size on "button" or "label"? If I change size of the button the text doesn't scale for its new size.
When you are editing the text for the label you can also press a button on that little window that allows you to edit text (color, font, size).
Edited post...
Thanks Mogranlocky! I didn't understand to press "Apply" buttons first...
Anyway this works fine =)