Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class VisualConfiguration
- {
- constructor()
- {
- title_DrawVisual = createDraw("Welcome to visual configuration menu", "FONT_OLD_10_WHITE_HI.TGA", 50, 400, 255, 255, 255);
- vism_isShown = false;
- }
- function show()
- {
- if (!vism_isShown)
- {
- setDrawVisible(title_DrawVisual, true);
- globalChat.hide();
- vism_isShown = true;
- }
- }
- function hide()
- {
- if (vism_isShown)
- {
- setDrawVisible(title_DrawVisual, false);
- globalChat.show();
- vism_isShown = false;
- }
- }
- vism_isShown = false;
- title_DrawVisual = null;
- };
- visConf <- VisualConfiguration();
- addEvent("onKey", function(key, letter)
- {
- if (key == KEY_V)
- {
- if (visConf.vism_isShown)
- {
- visConf.hide();
- addMessage(255, 255, 0, "VISMENU HIDDEN");
- }
- else
- {
- visConf.show();
- addMessage(255, 255, 0, "VISMENU SHOWN");
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement