Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create text writable texture?
#1
How to create texture, in which I will be able to write any text?
For example I want to create login/register panel using textures, how I can do it ?
[Image: pjDBIfE.gif]
Reply
#2
Draw, Texture.

For example

local draw = Draw(2000, 2500, "Login : ");
local texture = Texture(1900, 2400, 1200, 2400, "MENU_INGAME.TGA");

function showLogin()
{
draw.visible = true;
texture.visible = true;
draw.top();
}
Reply
#3
So now I need to get when player click on texture, and then use OnKey to get inserted keys for update my draw?
[Image: pjDBIfE.gif]
Reply
#4
u need to create function that will check position draw and cursor position and if its equal then u just use onKey to change text in draw.
Reply
#5
If you don't want to write many lines of code, and knows some OOP basics, you can always use GUI Framework.
http://gothic-online.com.pl/forum/showth...p?tid=2094
Reply
#6
Thanks for replies and help Smile

Second question, Can someone give me wiki/documentation/instruction for GUI Framework ?
[Image: pjDBIfE.gif]
Reply
#7
i think there is no .. but i think u should start with something a bit easier to understand that GUI freamwork. U know..learn basics then start more advance things dog
Reply
#8
Well.. there was a wiki, but currently i'm not seeing any references to it. The only way to use this script is to understand what is going on in it. This can be difficult for you, as Quarchodron said, but you can try to analize the code, if you know Object Oriented Programming. If not, try to write something simpler (without GUI Framework).
Reply


Forum Jump:


Users browsing this thread: