[Tool/Web/Other] [SHOEBILL]Textdraw-System
#1

[SHOEBILL] Textdraw-System / GUI-System (v0.1f)


Videos
https://*********/9fnw4BdCeoM
https://www.youtube.com/watch?v=EiAyf3hbyhU

Why I publish it?
This source code was scripted about one year ago.
I've just published it in the german samp forum (Breadfish).
But now i've thought this maybe would be useful for others.

The system
It's coded in Java (Shoebill) and adds several features like Textdraw handling in object style and error handling. So on you should use this plugin without any other pawn-made textdraws because Shoebill doesn't support the detection of pawn-made textdraws currently so there are issues (caused by Shoebill, not by this plugin).
With the help of this plugin, you are able to create dynamic textdraw dialogs in seconds and handle them with an integrated site-managing-system. You can be as creative as you want. You can use the pre-created layouts of two dialog styles or you can create your own.
In addition to that you can create custom dialogs with the coded textdraw-objects like input boxes, labels and much more (with event handling).

Example of adding buttons to a dialog
Code:
Color[] color = { .... }; // Add colors into an array
for (int y = 0; y < color.length; y++) {
    Button button = Button.create(this, startX, startY + paddingY * y, width, "_", "Bar_Button_" + y);
    Color tmp = color[y];
    button.getButtonTextdraw().setBoxColor(tmp); // set the box color
    button.setClickHandler(handler -> { // on button is clicked
        // do smth here
    });
    button.toggleActivationEffect(false); // toggle activation effect
    this.addButton(button); // add the button to "this"
}
What are the requirements?
  • Shoebill
  • Java 8 (JDK)
  • Root or local server to run the server and a jvm engine

Download
https://github.com/Alf21/textdraw-system

Thanks for your attention!
Alf21
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)