![Version 0.0.1](https://camo.githubusercontent.com/0d98ee7c08f8cb1a0549fa2f987c140e370e82ea754c85020bb0215269f69b0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d302e302e312d677265656e2e737667)
Transformice-Window-Framework
- Copy the content of the twf.lua before all your code.
- Enjoy availables functions. :3
Examples of availables functions (proto) :
- Create a new popup (if id exists it will update the one with this id) :
twf.ui.createPopup(int id, string title, string content, string targetPlayer,
array buttons, boolean closable, int x, int y, int width,
int height, hex backgroundColor, hex borderColor,
double backgroundAlpha, boolean fixedPos);
- Remove a popup (nil in targetPlayer will remove for all) :
twf.ui.removePopup(int id, string targetPlayer);
twf.ui.createLabel(int id, string text, string targetPlayer, int x, int y);
Examples of availables triggers :
- Trigger when player want to close a popup :
function eventTextAreaCallback (textAreaId, playerName, callback)
twf.trigger.popupClose(textAreaId, playerName, callback);
-- Your code goes here.
end
More features for later !