![]() |
How to create text writable texture? - Printable Version +- Gothic Online Forums (https://archive.gothic-online.com) +-- Forum: Scripting (English) (https://archive.gothic-online.com/forum-11.html) +--- Forum: Scripting Help (https://archive.gothic-online.com/forum-12.html) +--- Thread: How to create text writable texture? (/thread-2327.html) |
How to create text writable texture? - Mattwell - 25.01.2018 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 ? RE: How to create text writable texture? - Quarchodron - 25.01.2018 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(); } RE: How to create text writable texture? - Mattwell - 25.01.2018 So now I need to get when player click on texture, and then use OnKey to get inserted keys for update my draw? RE: How to create text writable texture? - Quarchodron - 25.01.2018 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. RE: How to create text writable texture? - Patrix - 25.01.2018 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/showthread.php?tid=2094 RE: How to create text writable texture? - Mattwell - 25.01.2018 Thanks for replies and help ![]() Second question, Can someone give me wiki/documentation/instruction for GUI Framework ? RE: How to create text writable texture? - Quarchodron - 25.01.2018 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 RE: How to create text writable texture? - Patrix - 25.01.2018 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). |