Gothic Online Forums
[0.1.*] Dialog Box - Printable Version

+- Gothic Online Forums (https://archive.gothic-online.com)
+-- Forum: Scripting (English) (https://archive.gothic-online.com/forum-11.html)
+--- Forum: Resources (https://archive.gothic-online.com/forum-14.html)
+---- Forum: Scripts (https://archive.gothic-online.com/forum-17.html)
+---- Thread: [0.1.*] Dialog Box (/thread-2071.html)



[0.1.*] Dialog Box - Marcel - 16.05.2017

[Image: iDLEZUJ.png]

official link link has expired

Creating a new dialog
Code:
//In client-script:
Dialog.create(id, ...), eg. Dialog.create(0, "Option 1", "Option 2");

//In event handler on server (file server-scripts/dialogbox.nut):
function dialogBoxEvent(pid, id, position){
    if(id==0){
        switch(position){
            case 0: // code
            case 1: // code
        }
    }
}
script to any use
//update: better centering, fixed bug while destroy



RE: [0.1.*] Dialog Box - Marcel - 18.02.2018

has anyone this script? because user want it, i don't have.


RE: [0.1.*] Dialog Box - Quarchodron - 18.02.2018

In some old script i saw this so maybe that is what u looking for. https://pastebin.com/cnQQqGPz