Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit 180e624

Browse files
committed
Added Mac workaround
1 parent f92b56d commit 180e624

File tree

2 files changed

+100
-0
lines changed

2 files changed

+100
-0
lines changed

client.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
exec("./EventScriptEditorProfiles.cs");
1616
exec("./EventScriptEditorWindow.gui");
1717

18+
exec("./workarounds.cs");
19+
1820
// Declare keybinds
1921
CreateBind("EventScript", "Copy", EventScriptClient_copy);
2022
CreateBind("EventScript", "Paste", EventScriptClient_paste);

workarounds.cs

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
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

Comments
 (0)