|
| 1 | +// ================= |
| 2 | +// EventScript Client |
| 3 | +// Author: McTwist (9845) |
| 4 | +// Date: 2018-01-27 |
| 5 | +// |
| 6 | +// Workaround fixes to solve issues regarding strange phenomena |
| 7 | +// on either platform |
| 8 | + |
| 9 | +// ================= |
| 10 | +// Mac keybind workaround |
| 11 | +// Enabled for all platforms for convenience |
| 12 | +// Creates buttons for copy, paste and editor |
| 13 | +// ================= |
| 14 | +if (isObject(EventScriptWrenchButtons)) |
| 15 | + EventScriptWrenchButtons.delete(); |
| 16 | + |
| 17 | +new GuiSwatchCtrl(EventScriptWrenchButtons) { |
| 18 | + profile = "GuiDefaultProfile"; |
| 19 | + horizSizing = "left"; |
| 20 | + vertSizing = "bottom"; |
| 21 | + position = "700 3"; |
| 22 | + extent = "61 19"; |
| 23 | + minExtent = "8 2"; |
| 24 | + enabled = "1"; |
| 25 | + visible = "1"; |
| 26 | + clipToParent = "1"; |
| 27 | + color = "0 104 176 4"; |
| 28 | + |
| 29 | + new GuiBitmapButtonCtrl() { |
| 30 | + profile = "BlockButtonProfile"; |
| 31 | + horizSizing = "right"; |
| 32 | + vertSizing = "bottom"; |
| 33 | + position = "0 0"; |
| 34 | + extent = "16 19"; |
| 35 | + minExtent = "8 2"; |
| 36 | + enabled = "1"; |
| 37 | + visible = "1"; |
| 38 | + clipToParent = "1"; |
| 39 | + command = "EventScriptClient_copy(true);"; |
| 40 | + text = "C"; |
| 41 | + groupNum = "-1"; |
| 42 | + buttonType = "PushButton"; |
| 43 | + bitmap = "base/client/ui/button2"; |
| 44 | + lockAspectRatio = "0"; |
| 45 | + alignLeft = "0"; |
| 46 | + alignTop = "0"; |
| 47 | + overflowImage = "0"; |
| 48 | + mKeepCached = "0"; |
| 49 | + mColor = "255 255 255 255"; |
| 50 | + }; |
| 51 | + new GuiBitmapButtonCtrl() { |
| 52 | + profile = "BlockButtonProfile"; |
| 53 | + horizSizing = "right"; |
| 54 | + vertSizing = "bottom"; |
| 55 | + position = "20 0"; |
| 56 | + extent = "16 19"; |
| 57 | + minExtent = "8 2"; |
| 58 | + enabled = "1"; |
| 59 | + visible = "1"; |
| 60 | + clipToParent = "1"; |
| 61 | + command = "EventScriptClient_paste(true);"; |
| 62 | + text = "P"; |
| 63 | + groupNum = "-1"; |
| 64 | + buttonType = "PushButton"; |
| 65 | + bitmap = "base/client/ui/button2"; |
| 66 | + lockAspectRatio = "0"; |
| 67 | + alignLeft = "0"; |
| 68 | + alignTop = "0"; |
| 69 | + overflowImage = "0"; |
| 70 | + mKeepCached = "0"; |
| 71 | + mColor = "255 255 255 255"; |
| 72 | + }; |
| 73 | + new GuiBitmapButtonCtrl() { |
| 74 | + profile = "BlockButtonProfile"; |
| 75 | + horizSizing = "right"; |
| 76 | + vertSizing = "bottom"; |
| 77 | + position = "40 0"; |
| 78 | + extent = "16 19"; |
| 79 | + minExtent = "8 2"; |
| 80 | + enabled = "1"; |
| 81 | + visible = "1"; |
| 82 | + clipToParent = "1"; |
| 83 | + command = "EventScriptClient_openEditor(false);"; |
| 84 | + text = "E"; |
| 85 | + groupNum = "-1"; |
| 86 | + buttonType = "PushButton"; |
| 87 | + bitmap = "base/client/ui/button2"; |
| 88 | + lockAspectRatio = "0"; |
| 89 | + alignLeft = "0"; |
| 90 | + alignTop = "0"; |
| 91 | + overflowImage = "0"; |
| 92 | + mKeepCached = "0"; |
| 93 | + mColor = "255 255 255 255"; |
| 94 | + }; |
| 95 | +}; |
| 96 | + |
| 97 | +WrenchEvents_Window.add(EventScriptWrenchButtons); |
| 98 | + |
0 commit comments